GithubHelp home page GithubHelp logo

sanwebinfo / og-image Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 384 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

og-image's People

Contributors

mskian avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

og-image's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @types/node to ^20.12.12

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/actions/prepare/action.yml
  • pnpm/action-setup v3.0.0
  • actions/setup-node v4.0.2
.github/workflows/build.yml
  • actions/checkout v4.1.5
.github/workflows/deploy.yml
  • actions/checkout v4.1.5
  • pnpm/action-setup v3.0.0
  • actions/setup-node v4.0.2
npm
package.json
  • @vercel/og ^0.6.2
  • next 14.2.3
  • react ^18.3.1
  • react-dom ^18.3.1
  • slugify ^1.6.6
  • @types/node ^20.12.11
  • @types/react ^18.3.2
  • @types/react-dom ^18.3.0
  • autoprefixer ^10.4.19
  • eslint ^9.2.0
  • eslint-config-next 14.2.3
  • postcss ^8.4.38
  • tailwindcss ^3.4.3
  • typescript ^5.4.5

  • Check this box to trigger a request for Renovate to run again on this repository

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.