Skip to content

Commit 728afa4

Browse files
committed
feat: add @hanzo/og programmatic OG image package
Shared package for generating OpenGraph/social images across all Hanzo sites. Supports 6 layout variants (page, model, code, stat, split, minimal) with inline styles for next/og ImageResponse compatibility. Includes HANZO_AI_THEME and HANZO_INDUSTRIES_THEME brand presets.
1 parent 2d97555 commit 728afa4

File tree

6 files changed

+611
-0
lines changed

6 files changed

+611
-0
lines changed

packages/og/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@hanzo/og",
3+
"version": "1.0.0",
4+
"description": "Programmatic OpenGraph image generation for Hanzo sites",
5+
"main": "./src/index.ts",
6+
"types": "./src/index.ts",
7+
"peerDependencies": {
8+
"next": ">=14.0.0",
9+
"react": ">=18.0.0"
10+
},
11+
"keywords": ["og", "opengraph", "social", "seo", "hanzo"]
12+
}

packages/og/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export { createOgImageResponse } from './response.js'
2+
export { renderOgImage } from './render.js'
3+
export type { OgConfig } from './types.js'
4+
export { HANZO_AI_THEME, HANZO_INDUSTRIES_THEME, HANZO_BRAND_SVG, HANZO_H_SVG, MODALITY_COLORS } from './theme.js'

0 commit comments

Comments
 (0)