raystack / raystack/chronicle

feat: make OG image appearance configurable via theme/config

Open
#135 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2
Forks
1
Avg merge
12h 29m
Merged PRs (30d)
12

Description

Problem

`src/server/routes/og.tsx` has all visual properties hardcoded:

  • Background: `#0a0a0a`
  • Text color: `#fafafa`
  • Font: Inter (fetched from Google)
  • Title size: 56px
  • Dimensions: 1200x630

Site owners using a brand with different colors/fonts get generic-looking social previews.

Also, the output is SVG which many social platforms (Twitter/X, LinkedIn) don't render — should convert to PNG.

Suggested Fix

  • Read colors/font from theme config or a new `og` config section
  • Convert SVG → PNG using Sharp (already a dependency)
  • Cache generated images with content-based keys

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/server/routes/og.tsx and inspect how theme/config is structured, then verify the existing Sharp dependency. Define the configuration and caching behavior before changing the generator. Done means configurable colors and fonts, PNG output at the stated dimensions, and content-based caching.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.