1.1.0 • Published 11 months ago

@poap-xyz/frames v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@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.

0.4.1-beta-v0

11 months ago

0.5.5-beta-v0

11 months ago

0.4.0-beta-v0

1 year ago

1.1.0

1 year ago

0.2.9-beta-v0

1 year ago

0.3.0-beta-v2

1 year ago

0.3.0-beta-v1

1 year ago

0.3.0-beta-v0

1 year ago

0.3.0-beta-v3

1 year ago

0.2.8-beta-v0

1 year ago

0.2.7-beta-v1

1 year ago

0.2.7-beta-v0

1 year ago

0.2.6-beta-v0

1 year ago

0.2.5-beta-v0

1 year ago

0.2.4-beta-v0

1 year ago

0.2.1-beta-v7

1 year ago

0.2.1-beta-v8

1 year ago

0.2.1-beta-v3

1 year ago

0.2.1-beta-v4

1 year ago

0.2.1-beta-v5

1 year ago

0.2.1-beta-v6

1 year ago

0.2.1-beta-v1

1 year ago

0.2.1-beta-v2

1 year ago

1.0.0

1 year ago

0.0.3-beta-v4

1 year ago

0.0.3-beta-v3

1 year ago

0.0.3-beta-v5

1 year ago

0.0.1

1 year ago