Skip to content

Offline local-synthetic image engine ($0, no cloud key) - #21

Open
raoulbia-ai wants to merge 1 commit into
stuinfla:mainfrom
raoulbia-ai:feat/local-synthetic-images
Open

raoulbia-ai wants to merge 1 commit into
stuinfla:mainfrom
raoulbia-ai:feat/local-synthetic-images

Conversation

@raoulbia-ai

Copy link
Copy Markdown

Part 2 of 3 for #19 (local, offline runs).

Add an offline local-synthetic image engine. When no cloud image engine is available (no OpenAI/Grok key, or their probes fail), the hero/section rasters are rendered deterministically from the brand palette with sharp — a seeded SVG palette-gradient.

Tests: tests/local-synthetic-images.test.mjs (2, incl. a behavioural run producing real PNGs + a $0 slot with no cloud keys). sharp is already a project dependency. Independent of the other two PRs for #19.

When no cloud image engine is available (no OpenAI/Grok key, or their
probes fail), the hero and section rasters are rendered deterministically
from the brand palette with sharp — a seeded SVG palette-gradient plus
soft translucent shapes, stable across re-runs. It is clearly labelled
'local-synthetic' and recorded as $0 in the cost slot, never a faked
gpt-image receipt. Auto-selected only as a fallback so hosted runs with a
valid key are untouched; EXPLAINMYREPO_LOCAL_IMAGES=1 forces it for
deliberately offline builds.
@netlify

netlify Bot commented Sep 14, 2026

Copy link
Copy Markdown

👷 Deploy request for explainmyrepo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 3e56048

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant