Skip to content

CarlosEduJs/ogx

Repository files navigation

OGX

OGX Banner

High-performance Open Graph image generation with Tailwind CSS.

Generate dynamic OG images in 60ms with full Tailwind support, built-in caching, and seamless framework integration.

npm version License: MIT

Features

  • 60ms render time - Blazing fast image generation
  • 🎨 Tailwind-first - Use Tailwind classes directly
  • 🔄 85x faster caching - Smart cache with 0.7ms cached renders
  • 🎯 Framework adapters - Next.js, React, and more
  • 🌙 Dark mode ready - Built-in color scheme support

Quick Start

npm install @ogxjs/next @ogxjs/core
// app/og/route.tsx
import { ogxResponse } from '@ogxjs/next';

export async function GET(req: Request) {
  return ogxResponse({
    preset: 'docs',
    title: 'Hello OGX',
    description: 'High-performance OG images',
    colorScheme: 'dark',
  }, req);
}

Packages

Documentation

Visit ogx.dev for full documentation, examples, and playground.

Examples

Performance

Preset Render Time Cached
Minimal ~60ms ~0.7ms
Social ~693ms ~0.7ms

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT © Carlos Eduardo

About

Create OGs to your liking. Customize them, use your creativity.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors

Languages