@token-kit/og
v0.0.3
Published
token-kit opengraph image generator
Downloads
87
Readme
@token-kit/og
Generate open graph image for tokens. This package can be used in hono or nextjs app.
Forked from hono-og.
Installation
npm i @token-kit/og
Usage
import axios from "axios";
import { Hono } from "hono";
import { ImageResponse } from "@token-kit/og";
const app = new Hono();
const chainId = 185;
const contract = "0x80A6da00140C4798bAba3b3f362839b6f87b6fc6";
const tokenId = 1;
app.get("/", () => {
return new ImageResponse({
chainId,
contract,
tokenId,
});
});