@astropress-diy/astropress
v0.0.3
Published
Low-carbon Astro web app framework for relatively simple sites run by individuals and small organizations.
Maintainers
Readme
@astropress-diy/astropress
A web application framework for editorial, informational, and campaign sites built on Astro. Ships a headless admin panel, a REST API, and a SQLite runtime. Host applications compose these into their own Astro sites — Astropress is not a hosted service or a SaaS.
cargo install astropress-cli
astropress new my-site
cd my-site && astropress devOpen http://localhost:4321/ap-admin and log in.
When to use it
- You need a real content admin without building one yourself
- You want a Git-friendly static export path (GitHub Pages, Netlify, Vercel)
- Your editors should not need Git for everyday publishing
- You want a privacy-first, self-hosted stack with no third-party analytics by default
- You need a CMS that runs at the edge (Cloudflare Pages + D1)
Deployment targets
| App host | Content services | Notes |
|---|---|---|
| github-pages | none | Static output; SQLite at build time |
| cloudflare-pages | cloudflare | D1 + R2; full edge deployment |
| vercel or netlify | supabase | Postgres + Storage |
| render-web | appwrite | Self-hosted backend services |
Adapter status
| Adapter | Status | |---|---| | SQLite (local) | Full — reference implementation | | Cloudflare D1 + R2 | Full | | Supabase (Postgres + Storage) | Full | | Appwrite | Full | | Neon | Full | | Turso | Full |
Security
- Argon2id password hashing
- KMAC256 API token hardening
- ML-DSA-65 webhook signatures
- CSRF protection on all admin form actions
- Content Security Policy headers
- Rate limiting on auth endpoints
CLI
The Astropress CLI (astropress new, astropress dev, astropress doctor, astropress import) is a separate Rust binary. Install from crates.io:
cargo install astropress-cliOr download a pre-built binary from the Releases page (Linux x64/arm64, macOS x64/arm64, Windows x64).
AI agent integration
The @astropress-diy/mcp package exposes Astropress content operations as MCP tools so AI agents (Claude, Cursor, etc.) can read and write content directly.
Multi-site
The @astropress-diy/nexus package provides a single control plane over multiple Astropress sites — aggregate content, trigger redeployments, and monitor health from one place.
Documentation
License
MIT — see LICENSE.
