Skip to content

About

The landing page for Open Model Gateway

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

omg-website

The landing page for Open Model Gateway (OMG), a self-hosted, open-source (MIT) gateway that puts cloud and self-hosted AI models behind one OpenAI- and Anthropic-compatible API, with workspaces, stacked budgets, exact cost accounting, single sign-on and audit. The site is served at https://omg.bitop.dev; the documentation lives in its own repository and site, https://docs.omg.bitop.dev.

It's one long page plus a 404 page, with no pricing, sign-up, forms, cookies, tracking or third-party requests. The text describes OMG v0.10.0 (released 2026-11-02, tag v0.10.0 of the gateway repository) and is checked against that tag's README, CHANGELOG.md, docs/roadmap.md, docs/architecture.md, docs/releases/ and the feature docs in docs/, with UI names from apps/web/src. Only shipped behaviour is described as shipped; planned work appears only as planned, as docs/roadmap.md lists it.

lib/site.ts holds the version, the release day (null until the tag exists; the footer and sitemap show it), the version the "What's new" section counts from (previousVersion), the release links (GitHub release, changelog, upgrade notes, and the release pages on the docs site), the published image (repository, tag, digest from the release's open-model-gateway-<tag>.digest.txt asset, and the cosign certificate identity .github/workflows/image.yml@refs/tags/<tag> with the GitHub Actions OIDC issuer) and the repository links, all pinned to the release tag. When moving to a new tag, check that every pinned path exists: git -C ../open-model-gateway ls-tree -r --name-only <tag>.

The repositories now live under bitop-dev (gateway transfer #623). Current gateway images publish to ghcr.io/bitop-dev/open-model-gateway (currentImageRepository in lib/site.ts). The featured v0.10.0 image predates the transfer: keep its ghcr.io/ncecere/open-model-gateway reference, digest and ncecere/open-model-gateway cosign identity together. Moving a source repository does not move its old container packages or rewrite signatures. Historical licence attribution and shared brand-token provenance remain as written.

Sections: hero, the problem, how it works, features, operations, the dashboard (screenshots), what's new, self-host, and open source and project status. "What's new" is a short themed summary of everything since previousVersion (four themes, each linking its docs page, plus the breaking changes operators must act on when upgrading), not one card per release: fold a new release into the themes and the feature cards rather than adding to a chain.

Naming. The page leads with "Open Model Gateway" (title, hero, metadata) and uses "OMG" only as a short form after it. The text names no competing products; providers the gateway connects to (OpenAI, Anthropic, AWS Bedrock, OpenRouter, vLLM, SGLang, Ollama) are named because they are what it connects to. Examples use generic names (gateway.example.edu, campus/chat). scripts/postbuild.mjs fails the build if a page uses a forbidden name or "OMG" before "Open Model Gateway".

Stack

  • Next.js 16 (App Router) with output: "export": next build writes plain static files to out/.
  • React 19, TypeScript 5.9, Tailwind CSS 4.
  • Inter Variable, self-hosted from @fontsource-variable/inter.
  • Node 22 and npm; every version is pinned in package-lock.json.
  • nginx (alpine, pinned by digest) in the container.

Brand tokens: app/brand.css

app/brand.css holds OMG's colours (light by default, and dark), radii, shadows and font stacks, taken from the dashboard's Bitop theme (apps/web/src/components/ui/themes/neutral.css and styles/tokens.css in the gateway repository), and maps them to Tailwind v4 theme variables (bg-brand-surface, text-brand-muted, bg-brand-primary, text-brand-link, rounded-card, shadow-brand-2 and so on). A docs site should use the same file, byte for byte, so the two sites look like one product; change it in both repositories together and check with cmp.

Components and app/globals.css use only the Tailwind names (in CSS through --theme(--color-brand-…)), never the raw token variables, so a new brand.css drops in without other changes. The theme follows the system (prefers-color-scheme); data-theme="dark|light" or class="dark|light" can force one.

Logo, favicon and Open Graph card

The logo is "Portal": a tunnel seen slightly off-axis, two light bands receding to an indigo core, on a dark tile. Its source, exports and usage rules are in ../omg-assets/logo/ (logo/portal/, logo/README.md).

  • components/logo.tsx is the only place the site draws the logo (header and footer): the mark as inline SVG (mark-small.svg, 28 px, aria-hidden) beside the name as live text. omg-docs draws it identically; change both together.
  • lib/mark.json holds the mark as inner SVG markup on its 64 grid: svg is mark-small.svg (read by components/logo.tsx), svgRegular is mark.svg (read by scripts/og-image.mjs). If the logo changes, copy both from ../omg-assets/logo/portal/ again, run npm run og, and commit.
  • npm run og (scripts/og-image.mjs) copies favicon.ico, favicon.svg, png/apple-touch-icon.png, png/icon-192.png and png/icon-512.png unchanged from ../omg-assets/logo/portal/ (set LOGO_DIR to read from elsewhere) and draws public/og.png (1200x630: the mark and name, the headline and, once that slot is filled, the admin-usage screenshot) in the brand's dark colours. Rerun it when the logo or the screenshot changes and commit the results.

Screenshots

The page has 8 named screenshot slots in its dashboard section, listed in lib/slots.json with their alt text and captions. A slot without an image shows a clearly marked placeholder with the expected file name. The images in public/images/ were taken on v0.6.0; they are being retaken on v0.10.0 under the same slot names. Alt text was updated from apps/web/src at v0.10.0 where the UI changed (admin-usage, admin-limits, workspace-keys, workspace-logs); check those against the new captures.

npm run images   # copy the screenshots that exist into public/images as WebP, record their sizes
npm run og       # rebuild the Open Graph card and icons

Commit the results (public/images/, lib/screenshots.json, public/og.png, icons). Screenshots come from a fictional demo installation in ../omg-assets/screenshots/; set SCREENSHOTS_DIR to read from another directory. For each slot the script looks for file (or the slot's own name) and, if that's missing, the slot's interimFile, recording "interim": true in lib/screenshots.json. When the captures arrive, check each slot's alt text and caption against its image: they were written from the gateway's docs, before any capture existed.

Slot Shows
admin-usage Admin › Usage & costs, Overview tab: settled, held and unknown cost (also used by public/og.png)
admin-limits Admin › Settings › Defaults & limits, including the key issuance rows
workspace-models Workspace › Models
workspace-keys Workspace › API keys, with the 24-hour issuance count and key safety badges
workspace-logs Workspace › Logs › Requests, with the Refresh action
admin-connections Admin › Connections
admin-key-safety Admin › Records › Key safety
batch-detail A batch page

Local development

npm ci
npm run dev      # http://localhost:3000

Build

npm test
npm run typecheck
npm run build    # static export to out/, then scripts/postbuild.mjs

scripts/postbuild.mjs hashes the inline scripts Next.js writes into the HTML and puts them in the Content-Security-Policy (build/security-headers.conf), so script-src needs no 'unsafe-inline'. It fails the build if the output loads a script, style sheet, font, image or frame from another origin, if the page text uses a forbidden name, or if "OMG" appears before "Open Model Gateway".

To run the production image locally, read-only like in a cluster:

npm run docker   # builds the image and serves it on http://127.0.0.1:8080

Container image and deployment

.github/workflows/publish.yaml builds the site on every pull request and push. On main it also builds and pushes a multi-arch (linux/amd64, linux/arm64) image, with every action pinned by commit SHA:

  • ghcr.io/bitop-dev/omg-website:<full commit SHA>
  • ghcr.io/bitop-dev/omg-website:latest

The image is nginx serving out/:

  • runs as user 101, listens on port 8080, and answers GET /healthz with ok;
  • works with a read-only root filesystem: the pid file and temp paths are under /tmp, so mount an emptyDir (or tmpfs) there;
  • sends security headers (CSP, nosniff, X-Frame-Options: DENY, Referrer-Policy, Permissions-Policy, COOP);
  • caches hashed assets under /_next/static/ for a year (immutable), other assets for an hour, and revalidates pages on every request.

Deployment lives outside this repository. New GHCR packages start private; make the package public, or pull it with a registry credential.

Homelab handoff: after this change is merged and the main publish succeeds, update the website deployment from ghcr.io/ncecere/omg-website to ghcr.io/bitop-dev/omg-website, selecting that publish's full commit SHA (or resolved digest). Confirm the new package is public or accessible with the deployment's pull credentials, then check GET /healthz and the source links at https://omg.bitop.dev. The old website package stays at its old path; source changes alone do not update the running site.

Dependabot opens one grouped pull request a week each for npm, GitHub Actions and the Docker base images.

Licence

About

The landing page for Open Model Gateway

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages