GithubHelp home page GithubHelp logo

sanwebinfo / og-image Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 310 KB

Simple API to Generate the OG image for website and blogs.

License: MIT License

JavaScript 3.21% TypeScript 86.86% CSS 9.93%
api next nextjs13 og-image og-image-generator typescript vercel vercel-og

og-image's Introduction

Vercel OG

build-test

Simple API to Generate the OG image for website and blogs.

Features

  • Next.JS
  • Vercel Edge Functions
  • Typescript
  • Next API Routes
  • @vercel/og Module for Generate og image

Modification

  • API: /src/app/api/og/route.jsx Modify the og image generation according to your needs.

How to use?

http://localhost:3000/api/og?title=sanweb

Installation ๐Ÿ“ฆ

  • Required node.js LTS version (18 or 20)
  • pnpm package manager
npm install -g pnpm
  • Clone this repo or Download
git clone https://github.com/sanwebinfo/og-image
cd og-image
pnpm install
  • Test the site
pnpm dev
  • Build a site
pnpm build
  • Test the Production build
pnpm start

Free Deploy

Deploy with Vercel

Reference

LICENSE

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.