Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@poap-xyz/frames

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poap-xyz/frames

Frames module for the poap.js library

  • 0.2.1-beta-v2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
542
increased by165.69%
Maintainers
5
Weekly downloads
 
Created
Source

@poap-xyz/frames

License: MIT

@poap-xyz/frames is a package to help with the development of Farcaster Frames.

Features

  • Generate the frame meta tags
  • Generate the frame HTML markup

Installation

NPM

npm install @poap-xyz/frames

Yarn

yarn add @poap-xyz/frames

Usage

Meta tags

const frame = useMemo(() => new Frame({ ... });
return (
  <>
    <NextSeo
      title="Hello World"
      description="..."
      openGraph={{ images: [...] }}
      additionalMetaTags={frame.toMetaTags()}
    />
    <div>...</div>
  </>
)

HTML render

// /api/frame.ts
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
  const frame = new Frame({ ... });
  return res.status(200).send(frame.render());
}

Examples

For example scripts and usage, please check the examples.

Contributing

We welcome contributions! Please see the CONTRIBUTING.md file for guidelines.

License

@poap-xyz/frames is released under the MIT License.

FAQs

Package last updated on 13 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc