GithubHelp home page GithubHelp logo

meldiron / almost-bannerbear Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 4.0 4.29 MB

Function to dynamically generate OG images for your web app.

Home Page: https://og-image-generator.appwrite.global/

License: MIT License

JavaScript 33.80% HTML 66.20%
appwrite

almost-bannerbear's Introduction

Cover

⚡ Node.js OG Image Generator Function

Function to dynamically generate OG images for your web app.

🧰 Usage

GET /

Returns HTML website with form to build your OG image HTML tag.

Response

Sample 200 Response:

<!doctype html> ...

HTML page

GET /image.png

Returns PNG of generated OG image.

Parameters

Name Description Location Type Sample Value
title Page title URL String Hello World
url URL of page to genrate subtitle FormURL String /template
icon Icon name from Heroicons to use in OG image design URL String globe-alt

Response

200 Response:

(image buffer)

⚙️ Configuration

Setting Value
Runtime Node (18.0)
Entrypoint src/main.js
Build Commands npm install
Permissions any
Timeout (Seconds) 15

🔒 Environment Variables

THEME

Toggle between dark and light theme for OG image.

Question Answer
Required No
Sample Value dark or light
Default Value dark

BRAND_COLOR

Hex color of your brand to personalize OG image color scheme.

Question Answer
Required No
Sample Value #3b82f6
Default Value #f02e65

BRAND_NAME

Name of your company used when generating OG image.

Question Answer
Required No
Sample Value Appwrite
Default Value Website

📽️ Demo

demo.mp4

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.