A prescriptive standard defining the structure, content, and quality requirements for Solution Architecture Documents (SADs).
Website: archstandard.org
npm install
npm run dev # Local dev server at localhost:4321
npm run build # Production build to ./dist/- A Cloudflare account (free tier is sufficient)
- This repo pushed to GitHub (already done:
github.com/andibing/archstandard)
- Go to Cloudflare Dashboard
- Select your account from the left sidebar
- Navigate to Workers & Pages in the left sidebar
- Click Create (top right)
- Select the Pages tab
- Click Connect to Git
- If prompted, authorise Cloudflare to access your GitHub account
- Select the andibing/archstandard repository
- Click Begin setup
Set the following build configuration:
| Setting | Value |
|---|---|
| Project name | archstandard |
| Production branch | main |
| Framework preset | Astro |
| Build command | npm run build |
| Build output directory | dist |
Under Environment variables, add:
| Variable | Value |
|---|---|
NODE_VERSION |
20 |
Click Save and Deploy.
The first build takes 1-2 minutes. You can watch the build log in real time.
Once complete, your site will be live at:
https://archstandard.pages.dev
- In your Cloudflare Pages project, go to Custom domains
- Click Set up a custom domain
- Enter
archstandard.org - Follow the DNS configuration instructions:
- If the domain is already on Cloudflare DNS: it will auto-configure
- If elsewhere: add a CNAME record pointing to
archstandard.pages.dev
- Also add
www.archstandard.orgas a redirect to the apex domain
After DNS propagation (usually minutes, up to 48 hours):
https://archstandard.orgshould serve the site- SSL certificate is automatic
- Every push to
mainwill auto-deploy
| Issue | Fix |
|---|---|
| Build fails with Node error | Ensure NODE_VERSION=20 is set in environment variables |
| Build fails with Wrangler error | Ensure Framework preset is set to Astro (not None) |
| Build succeeds but 404 | Check build output directory is dist |
| Custom domain not working | Check DNS propagation with dig archstandard.org |
| Old content showing | Cloudflare caches aggressively; try purging cache in the dashboard |
.
├── src/
│ ├── content/docs/ # All standard pages (.mdx)
│ │ ├── index.mdx # Landing page
│ │ └── standard/ # Standard sections (0-7)
│ ├── assets/ # Images and SVGs
│ └── styles/custom.css # Custom styles
├── public/
│ └── templates/ # Downloadable SAD templates (MD, YAML, JSON)
├── schema/
│ └── ads.schema.json # JSON Schema for validation
├── astro.config.mjs # Site configuration and sidebar
└── package.json
| Command | Action |
|---|---|
npm install |
Install dependencies |
npm run dev |
Start dev server at localhost:4321 |
npm run build |
Build production site to ./dist/ |
npm run preview |
Preview production build locally |
npm run generate:templates |
Regenerate all SAD templates from JSON Schema |
npm run generate:diagrams |
Regenerate SVG diagrams from Mermaid sources |
npm run generate |
Run all generators |
The JSON Schema (schema/ads.schema.json) is the master definition. All templates are generated from it:
schema/ads.schema.json <-- edit this
|
v
npm run generate:templates
|
├── public/templates/sad-template.json
├── public/templates/sad-template.yaml
└── public/templates/sad-template.md
- Edit the schema (
schema/ads.schema.json) — add fields, change enums, update descriptions - Regenerate templates — run
npm run generate:templates - Review the output — check the generated templates look correct
- Update the standard pages — if you added a new section, update the corresponding
.mdxpage insrc/content/docs/standard/ - Commit and push — Cloudflare auto-deploys on push to
main
SVG diagrams are generated from Mermaid source files:
src/assets/diagrams/*.mmd <-- edit these
|
v
npm run generate:diagrams (requires @mermaid-js/mermaid-cli)
|
└── src/assets/*.svg
Install the Mermaid CLI first: npm install -g @mermaid-js/mermaid-cli
This project uses a dual licence:
| What | Licence | File |
|---|---|---|
| Standard content (MDX pages, templates, schema, examples, guidance) | CC BY 4.0 | LICENSE-CONTENT |
| Source code (JavaScript, CSS, Astro config, build scripts) | MIT | LICENSE-CODE |
Author: Andi Chandler. You are free to share and adapt both the standard and the code for any purpose, including commercial use, provided you give appropriate credit.