Skip to content

Latest commit

 

History

History

og

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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