The ANS project website, built with Astro and deployed as static HTML to GitHub Pages.
Use Node.js 24 LTS and npm.
npm ci --ignore-scripts
npm run devThe development server runs at http://127.0.0.1:4321.
| Command | Purpose |
|---|---|
npm run format |
Format source files |
npm run verify |
Check formatting and types, build, and validate local links and metadata |
npm run build |
Generate the static site in dist/ |
npm run preview |
Serve the production build locally |
src/pages/*.md: project information, governance, community, quickstart, and privacy.src/pages/*.astro: homepage, specification index, implementation directory, and protocol overview.src/pages/news/: the News index and one filter page per tag in use.src/data/site.ts: navigation, specification links, and SDK listings.src/data/news.ts: items and tags on the News page, sorted newest first. CONTRIBUTING.md defines what qualifies.src/layouts/: shared page layouts.src/styles/global.css: site styles.public/: static assets.
Enable GitHub Pages with GitHub Actions as the source. Pushes to main run
validation and deploy through the github-pages environment. The deployment
workflow can also be run manually.
The workflow reads the site's URL from GitHub Pages. For a local build,
SITE_URL sets the canonical origin and base path; the default is https://ansinfo.ai/.
SITE_URL=https://agentnameservice.github.io/ans-site/ npm run build
SITE_URL=https://agentnameservice.github.io/ans-site/ npm testPage views are counted with GoatCounter when
SITE_ANALYTICS_ID holds the site's GoatCounter code, the CODE in
https://CODE.goatcounter.com. The deployment workflow reads it from the
SITE_ANALYTICS_ID repository variable under Settings → Secrets and
variables → Actions → Variables. When the variable is unset, the default, the
build emits no analytics script and npm test fails if any script is present.
When it is set, npm test requires exactly that GoatCounter script, plus a
noscript image fallback that reports only the page path, on every page and
still rejects any other script.
SITE_ANALYTICS_ID=ansinfo npm run build
SITE_ANALYTICS_ID=ansinfo npm testSee CONTRIBUTING.md for contribution requirements. Licensed under Apache-2.0.