Welcome, Agent. This document is your single source of truth for the MindFull project's architecture, philosophy, and operational standards. Adhere to these guidelines strictly to maintain project integrity.
MindFull is a professional, high-performance, and privacy-first Hugo theme for mental health and wellness. It balances a static, secure frontend with a lightweight Node.js CMS for authentication and secure logic.
| Component | Technology | Role |
|---|---|---|
| Frontend | Hugo (Extended) | Static Site Generation |
| CSS | Tailwind CSS 3.4+ | Utility-first styling |
| Backend | Node.js + Express | CMS & Auth Logic |
| Database | SQLite | Privacy-focused storage |
| Search | Pagefind | Static, FOSS search |
| Proxy | Express + Ngrok | Unified dev gateway |
Important
Zero hardcoded user-facing text in HTML.
- All global labels must live in
data/labels.json. - All page-specific content must live in
content/*.mdfrontmatter. - Layouts (
layouts/) must only contain structural logic and data references.
- Documentation Source: Lives in
_docs_src/. - Virtual Mount: Mounted to
/docsONLY during development viahugo.toml. - Production Build Isolation:
npm run buildphysically moves_docs_src/to prevent leakage.
- DOM Access: No
innerHTMLorinnerText. UsetextContentandcreateElementonly. - Redirection: All client-side navigation must pass through
window.safeRedirect(path). - SSO: Secrets are strictly server-side. Frontend only handles redirects.
| Command | Action | Ports |
|---|---|---|
npm run dev |
Launch development environment | 1313, 3000, 1314 |
npm run pubdev |
Launch public proxy via Ngrok | 4242 |
npm run test |
Execute full QA suite | N/A |
npm run build |
Generate production build | N/A |
| Property | Value |
|---|---|
| Status | PRODUCTION READY & HARDENED |
| Version | 1.5.0 |
| Last Audit | January 27, 2026 |
- Phase 1-6: Visuals, Quizzes, Moods, Tooling, Security, UX.
- Phase 7: Real OAuth 2.0 Backend (Google/GitHub).
- Phase 8: FOSS Search (Pagefind) & Analytics (Umami).
- Phase 9: Unified Proxy Gateway for Public Dev.
- Phase 10: Multi-Site Documentation Architecture.
- CMS Admin UI: Implement a secure dashboard for therapists to manage courses.
- Payments: Integrate a privacy-conscious payment flow (Stripe/Mock).
- Media: Add Lesson Video Embed support via secure Markdown shortcodes.
Last Updated: January 27, 2026