Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 563 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 563 Bytes

@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,
  });
});