Skip to content

Repository Structure

text
neemias/
├── app/              # SPA frontend (React + Vite + Dexie)
│   └── src/
│       ├── app/      # Pages, contexts, components, UI
│       ├── db/       # Dexie schema + repositories
│       └── modules/  # auth, attendance, reports, students, sync, users
├── workers/          # Cloudflare Workers backend (active)
│   └── src/
│       ├── db/       # D1 wrapper + query helpers
│       ├── modules/  # auth (password, session tokens), idempotency
│       ├── middleware/ # auth guard, CORS, CSP, handler wrapper
│       ├── routes/   # endpoint handlers
│       ├── schemas.ts
│       ├── router.ts # route handlers
│       └── index.ts  # entrypoint
├── packages/         # Shared workspace packages
│   ├── permissions/  # RBAC (roles + permissions)
│   ├── plugin-registry/ # Plugin contract + registry
│   ├── schemas/      # Zod entity schemas + utilities
│   └── seed-data/    # Development seed data
├── migrations/       # D1 SQL migrations
├── docs/             # Documentation portal (VitePress)
├── .specs/           # Spec-driven development docs
├── scripts/          # Deploy and automation scripts
├── pnpm-workspace.yaml
└── wrangler.toml     # Workers + D1 configuration (workers/)

Workspaces

WorkspaceDescription
app/Frontend SPA (React + Vite + shadcn/ui)
workers/Active backend (Cloudflare Workers + D1)
packages/permissionsRBAC roles and permissions
packages/schemasZod entity schemas + utilities
packages/plugin-registryPlugin contract and registry
packages/seed-dataDevelopment seed data

Distributed under MIT License.