No description
  • HTML 39.1%
  • CSS 36.3%
  • JavaScript 23.5%
  • Dockerfile 1.1%
Find a file
X27 1a5f22f6ab
Some checks failed
Build and publish image / build (push) Failing after 13s
Tag images by commit and semver instead of date
Builds from main publish latest, main and sha-<commit>. A pushed vX.Y.Z
tag also publishes X.Y.Z, X.Y and X. The workflow no longer creates
date-named releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:11:30 +01:00
.forgejo/workflows Tag images by commit and semver instead of date 2026-11-23 00:11:30 +01:00
.dockerignore Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
about.html Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
app.js Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
compose.yml Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
Dockerfile Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
favicon.svg Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
index.html Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
nginx.conf Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
projects.js Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00
README.md Tag images by commit and semver instead of date 2026-11-23 00:11:30 +01:00
style.css Add X27-Website with a publishable container image 2026-11-22 23:38:10 +01:00

X27-Website

The website for XlabsX27, the brand X27 publishes open-source projects under. It shows the projects on git.xlabsx27.com and puts the X27 Toolbox install command front and centre.

Plain HTML, CSS and ES modules. No framework, no build step.

Files

File What it is
index.html Home page: hero with the copy pill, featured cards, projects, images and packages
about.html About page: principles, how it's built, links. Served at /about too
style.css Red and black design, dark only
app.js Copy buttons, project grid and filters, live data, scroll reveal, and the sun button that refuses light mode
projects.js All content: projects, images, packages, the toolbox command. Edit this to change the page
nginx.conf Static serving, security headers, and a proxy for Forgejo's repo search
Dockerfile Unprivileged nginx (uid 101, port 8080) with a healthcheck
compose.yml Runs the image read-only, with all capabilities dropped
.forgejo/workflows/publish-image.yml Builds and publishes the image

Live data

The page renders the list in projects.js first, then asks Forgejo's /api/v1/repos/search for stars, last update and language. Public repos that aren't in projects.js show up under Other. Add a repo to HIDDEN to leave it out.

Forgejo sends no CORS headers, so the browser can't call it from another origin. nginx proxies /api/v1/repos/search (GET only, no cookies) to Forgejo. Under python3 -m http.server there is no proxy, so the page keeps the built-in list.

Run locally

python3 -m http.server 8080          # static only, built-in data
docker compose up --build            # with the live-data proxy, on port 8080
PORT=8099 docker compose up --build  # another host port

Image

Every push to main (and a weekly rebuild) publishes a multi-arch image (amd64, arm64) to git.xlabsx27.com/x27/x27-website, tagged latest, main and sha-<commit>. Pushing a tag like v1.2.0 publishes 1.2.0, 1.2 and 1 as well.

Deploy with the compose.yml here, or:

docker run -d --name x27-website -p 8080:8080 --read-only --tmpfs /tmp \
  --cap-drop ALL --restart unless-stopped git.xlabsx27.com/x27/x27-website:latest

The workflow needs a PUBLISH_TOKEN secret (repo or org Settings → Actions → Secrets): a Forgejo access token for X27 with the write:package scope.