Generate open graph image for tokens. This package can be used in hono or nextjs app.
Forked from hono-og.
npm i @token-kit/og
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,
});
});