0.0.4 • Published 8 months ago

@token-kit/og v0.0.4

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
8 months ago

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

8 months ago

0.0.3

8 months ago

0.0.2

10 months ago

0.0.1

10 months ago