Skip to content

About

SpaceCorps Organization Hub and Developer Portal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

spacecorps.tech

The company site of SpaceCorps Technology AB: https://spacecorps.tech. Static HTML built with Vite+ (vp) and pnpm, served by Caddy in a Docker container (Sliplane).

Layout

Path What
index.html, about.html, contact.html, privacy.html, developers.html, 404.html, blog/*.html The pages. Generated by scripts/gen.mjs (shell, home sections, inner pages) from data/ and content/blog/; edit those, run pnpm run gen, commit both. Vite+ builds them as entry points.
src/ main.js (theme switch, CLI search, starfield, click wave) and styles/ (site.css, vendored tokens.css). Bundled, minified and hashed by Vite+.
data/ clis.json (the 24 CLI directory entries) and stats.json (real GitHub numbers; refresh with pnpm run stats, needs the gh CLI).
public/ Copied to the site root as is: img/ (game art as webp), blog/media, icons, og-image, and the agent-facing files below. public/fonts/ is generated at build (Geist, from @fontsource-variable) and git-ignored.
status/ The recorder and read API behind the players-online chart on https://play.spacecorps.tech/status/: a Rust service with one SQLite file, its own Dockerfile. The chart page itself lives in the SpaceCorps/play repository; /status.html here is a 301 to it. See status/README.md.
deploy/Caddyfile Caddy config: /healthz, /api/status/* proxied to the status service (STATUS_UPSTREAM; the play site reads it cross-origin), /status.html 301 to the play site, text/markdown content types, caching, 404 page.
Dockerfile Node 24 builds with pnpm, Caddy serves dist/ on port 80.
.github/workflows/docker.yml Builds the image on every PR and push to main and smoke-tests /healthz, /, /llms.txt and a 404.
docs/REDIRECTS.md Plan for spacecorpstechnology.com, spacecorps.eu and spacecorps.online.

Design system

Colours, radii and type come from the SpaceCorps design system, @spacecorps/components (SpaceCorps/storybook, Storybook at https://storybook.spacecorps.tech). src/styles/tokens.css is its :root and .dark token blocks, vendored; refresh with pnpm run sync-tokens. Dark mode follows the visitor's system setting (src/main.js toggles the .dark class; a manual choice is kept in localStorage).

The site does not install the React package: it is a static site with no React components, and the package is restricted on GitHub Packages, which would put a token into every build. If a page ever needs a component, follow "Consuming from another SpaceCorps site" in the storybook README (.npmrc scope plus a Docker build secret).

Agent-facing files and SEO (single source: this repo)

Served from the site root and maintained only here:

  • Hand-written: llms.txt (including "When to use SpaceCorps"), index.md (Markdown of the home page), blog/getelec-spaceemit.md, pricing.md, openapi.json (the hosted spaceemit API), robots.txt, .well-known/ (security.txt, api-catalog per RFC 9727, ard.json, agent-skills/spacecorps/SKILL.md).
  • Generated by scripts/gen.mjs (commit them with the pages): the other pages' Markdown twins (about.md, blog/obop.md, ...), sitemap.xml (with lastmod from each page's updated date or the post's date), blog/feed.xml (RSS), blog/llms.txt, .well-known/agent-skills/index.json (carries the SKILL.md sha256), and the schema.org JSON-LD in every page (Organization with address and contact points, WebSite, BlogPosting, BreadcrumbList, VideoGame with a free Offer, WebAPI).
  • deploy/Caddyfile serves the Markdown twin to Accept: text/markdown (with Vary: Accept), to /?mode=agent and at <page>.html.md; a 404 asked for in Markdown gets 404.md; every response carries a Link header (sitemap, llms.txt, OpenAPI, API catalog).

There is deliberately no MCP server card, sandbox or API-key service: none of those exist (the old advertised MCP endpoint returned 404). Add them only when the service is real. When a page's content changes, bump its updated date in scripts/gen.mjs (posts: add <!--updated:YYYY-MM-DD-->).

Develop, build, run

pnpm install
pnpm run dev            # vp dev
pnpm run build          # fonts + gen + vp build -> dist/
pnpm run stats          # refresh data/stats.json from GitHub, then regenerate pages
docker build -t spacecorps-tech .
docker run --rm -p 8080:80 spacecorps-tech   # http://localhost:8080, health at /healthz

Deploy (Sliplane)

Create a Sliplane service from this repository's Dockerfile (port 80, health check /healthz), then add the custom domain spacecorps.tech and the DNS record Sliplane shows. DNS and Sliplane configuration are made by hand; see docs/REDIRECTS.md for the other domains.

The players-online chart (on the play site) needs a second service, the status recorder (status/Dockerfile, build context status/, a volume at /data, port 8090; see status/README.md), and the environment variable STATUS_UPSTREAM on the site service set to its address. Without the variable the site works as before and /api/status/* answers 502.

Cleanup needed in the play repository (SpaceCorps/play)

Do not edit from here; these duplicate or contradict this site and should go from play:

  • Duplicated "agent surface" files that describe a fictional MCP server, sandbox and API keys: agent/, agent-instructions.md, agent-plugin.json, agent-plugins.json, ai-plugin.json, api/, api.json, ask, ask.json, auth.md, developers*, docs*, health*, keys*, plugin.json, pricing.md, sandbox*, server.json, v1/, v1.json, openapi.*.
  • In llms.txt, llms-full.txt and index.md: the Model Context Protocol (MCP) lines (https://spaceemit-api.sliplane.app/mcp returns 404, and that host is the spaceemit API, not the game), the sandbox, API-key and pricing links, and every https://spacecorps.github.io/play/ canonical URL (becomes https://play.spacecorps.tech/). The generator is scripts/marketing/sitedocs.py in the game repository.
  • robots.txt / sitemap.xml mentions of spacecorps.github.io.
  • The root robots.txt of the old site listed play/sitemap.xml; this site's sitemap does not, because play.spacecorps.tech is its own host.

About

SpaceCorps Organization Hub and Developer Portal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages