Most starter kits are forks. This one was built from the first line. Every decision documented, every trade-off recorded.
From scratch, but systematically
The whole starter kit was built through the OpenSpec-native workflow:
every change has its own change with proposal.md, design.md and tasks.md. The specification is written before the implementation, and quality is checked continuously ... not at the end.
Key ADRs
| # | Decision | Choice | Why |
|---|---|---|---|
| ADR-1 | From-scratch vs fork | From scratch | No legacy baggage, auditable line by line |
| ADR-2 | One DB vs per-module | Per-module SQLite | Model isolation, natural module addition |
| ADR-3 | Framework vs zero-dep | Zero-dependency | Production without vendor/, full control |
| ADR-4 | Routing | #[Route] attributes | Action scanning, route-name → URL generation |
| ADR-5 | Frontend baseline | Chrome 70 + fallbacks | The same strategy as the cascade theme |
Security by default
- Strict CSP with per-request nonce
- DB-backed rate limiting
- CSRF on all state-changing POSTs
- Admin role gate on
/mark/*
The starter kit remains a collection of decisions, not a framework. Each ADR is a door you can open or close. The architecture is transparent, you see every choice because you made it.
A decision recorded is a decision remembered. A decision undocumented is a decision lost.
→ OpenSpec workflow: how changes are structured → Anatomy of a change: from proposal to implementation
Sources
- PHP Manual: official PHP documentation
- PHP-FIG, PSR Standards: PHP standards
- OWASP Cheat Sheet Series: security best practices
- Nativa Minimal Documentation: official getting started guide
- W3C, Web Standards: web standards
Comments (0)
No comments yet — be the first to react.