{"id":37227870,"url":"https://github.com/ahliweb/awcms","last_synced_at":"2026-03-08T06:01:35.442Z","repository":{"id":330054980,"uuid":"1111448389","full_name":"ahliweb/awcms","owner":"ahliweb","description":"AWCMS (AhliWeb Content Management System) — an enterprise-grade, multi-tenant, ABAC-secured CMS built with React, Supabase, and modern web architecture.","archived":false,"fork":false,"pushed_at":"2026-01-11T22:39:42.000Z","size":2236,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T02:25:18.641Z","etag":null,"topics":["abac","audit-log","cloudflare","cms","cms-framework","enterprise-cms","headless-cms","multi-tenant","postgresql","react","rls","saas","security","supabase","vite","workflow-engine"],"latest_commit_sha":null,"homepage":"https://ahliweb.co.id","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahliweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-07T00:28:05.000Z","updated_at":"2026-01-11T17:55:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ahliweb/awcms","commit_stats":null,"previous_names":["ahliweb/awcms"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ahliweb/awcms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahliweb%2Fawcms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahliweb%2Fawcms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahliweb%2Fawcms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahliweb%2Fawcms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahliweb","download_url":"https://codeload.github.com/ahliweb/awcms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahliweb%2Fawcms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28442270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abac","audit-log","cloudflare","cms","cms-framework","enterprise-cms","headless-cms","multi-tenant","postgresql","react","rls","saas","security","supabase","vite","workflow-engine"],"created_at":"2026-01-15T03:24:45.217Z","updated_at":"2026-03-08T06:01:35.432Z","avatar_url":"https://github.com/ahliweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWCMS Monorepo\n\nWelcome to the AWCMS monorepo. AWCMS is a **multi-tenant CMS platform** with admin, public, mobile, and IoT clients backed by Supabase.\n\n## Status Snapshot (2026-03-08)\n\n- Active Node runtime validated: `v22.22.0` (minimum remains `\u003e=22.12.0`).\n- The 2026-03-08 documentation and repository-integrity audit cycle is active via `docs/dev/documentation-audit-plan.md` and `docs/dev/documentation-audit-tracker.md`.\n- Public portal and edge-runtime docs are aligned to Astro static output plus Cloudflare Workers as the primary edge HTTP layer.\n- MCP topology from `mcp.json` currently includes `cloudflare`, `context7`, `github`, and `supabase`.\n- Supabase migration parity baseline is `118` root migrations and `118` mirrored admin/CI migrations.\n- Repair and verification workflows are scripted via `scripts/repair_supabase_migration_history.sh`, `scripts/verify_supabase_migration_consistency.sh`, and `scripts/verify_supabase_function_consistency.sh`.\n\n## Documentation Authority\n\nThis repository follows a strict documentation hierarchy aligned with the **Context7 MCP** (Model Context Protocol):\n\n1. **[SYSTEM_MODEL.md](SYSTEM_MODEL.md)** - **Single Source of Truth**: stack versions, architecture constraints, security mandates\n2. **[AGENTS.md](AGENTS.md)** - agent execution rules, Context7 references, implementation patterns\n3. **[README.md](README.md)** - canonical monorepo entrypoint and operational overview\n4. **[DOCS_INDEX.md](DOCS_INDEX.md)** - canonical documentation map and topic routing\n5. **Implementation Guides** - specific how-to documentation in `docs/`\n\n\u003e **For AI Agents**: Always follow `AGENTS.md` and `SYSTEM_MODEL.md` as primary authorities.\n\n## Project Structure\n\n| Directory | Description | Tech Stack |\n| --- | --- | --- |\n| `awcms/` | Admin Panel | React 19.2.4, Vite 7.2.7, Supabase |\n| `awcms-public/primary/` | Public Portal | Astro 5.17.1 (static), React 19.2.4 |\n| `awcms-mobile/primary/` | Mobile App | Flutter 3.38.5 |\n| `awcms-esp32/primary/` | IoT Firmware | ESP32, PlatformIO |\n| `awcms-ext/` | External Extensions | JavaScript modules |\n| `awcms-edge/` | Worker API \u0026 Edge Logic | Cloudflare Workers, Hono |\n| `supabase/` | Migrations and transitional Supabase functions | Supabase CLI |\n| `awcms-mcp/` | MCP Integration | Model Context Protocol tools |\n| `openclaw/` | AI Gateway | OpenClaw multi-tenant AI routing |\n\n## Current Stack Versions (Core)\n\n- **React**: 19.2.4 (Admin + Public)\n- **Vite**: 7.2.7 (Admin)\n- **Astro**: 5.17.1 (Public) - *Requires Node.js \u003e=22.12.0*\n- **TailwindCSS**: 4.1.18\n- **Supabase JS**: 2.93.3 (Admin + Public)\n- **React Router DOM**: 7.10.1\n- **TipTap**: 3.13.0\n- **Puck**: 0.21.0\n- **OpenClaw**: 2026.2.21-2 (AI Gateway)\n- **Node.js**: \u003e= 22.12.0 (managed via nvm)\n\n## Quick Start\n\n### For Developers\n\n1. Read **[SYSTEM_MODEL.md](SYSTEM_MODEL.md)** - Understand the architecture (5 min)\n2. Follow **[Developer Setup Guide](docs/dev/setup.md)** - Get running (10 min)\n3. Reference **[AGENTS.md](AGENTS.md)** - Coding standards and patterns\n\n### Per-Component Guides\n\n- **Admin Panel**: [Guide](docs/dev/admin.md)\n- **Public Portal**: [Guide](docs/dev/public.md)\n- **Mobile App**: [Guide](docs/dev/mobile.md)\n- **IoT Firmware**: [Guide](docs/dev/esp32.md)\n\n## Documentation\n\n- **[SYSTEM_MODEL.md](SYSTEM_MODEL.md)**: Authoritative system architecture and tech stack\n- **[AGENTS.md](AGENTS.md)**: AI agent guidelines and coding standards\n- **[DOCS_INDEX.md](DOCS_INDEX.md)**: Central navigation for all documentation\n- **[docs/README.md](docs/README.md)**: Detailed wiki and concepts\n- **[docs/dev/documentation-audit-plan.md](docs/dev/documentation-audit-plan.md)**: Context7-driven doc audit workflow\n- **[docs/dev/documentation-audit-tracker.md](docs/dev/documentation-audit-tracker.md)**: Phase progress, drift register, and reconciliation backlog\n- **[docs/dev/context7-benchmark-playbook.md](docs/dev/context7-benchmark-playbook.md)**: Structured benchmark response playbook and reusable templates\n\n## Database \u0026 Migrations\n\n- Canonical timestamped migrations live in `supabase/migrations/` and are mirrored in `awcms/supabase/migrations/` for CI/Admin tooling compatibility.\n- Non-migration SQL files must be kept outside migration folders (for example `supabase/manual/`).\n- Local workflow:\n  - `npx supabase migration list --local`\n  - `npx supabase db push --local`\n- Linked/remote workflow:\n  - `npx supabase migration list --linked`\n  - `npx supabase db push --linked`\n- If migration history is out of sync, use `scripts/repair_supabase_migration_history.sh` (dry-run by default, `--apply` to execute).\n- Validate migration health after apply/repair with `scripts/verify_supabase_migration_consistency.sh` (`--linked` for remote checks).\n\n## Context7 MCP Integration\n\nThis repository uses Context7 for AI-assisted development. Key library IDs:\n\n- `supabase/supabase-js` - Database operations\n- `supabase/cli` - Migration and deployment workflows\n- `vitejs/vite` - Build tooling  \n- `withastro/docs` - Public portal framework\n- `cloudflare/cloudflare-docs` - Worker and binding guidance\n- See [AGENTS.md](AGENTS.md) for complete list\n\n## MCP Topology (OpenCode)\n\n- Repo config: `mcp.json`\n- Runtime client config: `~/.config/opencode/opencode.json`\n- Active servers:\n  - Context7: `https://mcp.context7.com/mcp`\n  - Supabase (local): `node awcms-mcp/dist/index.js`\n  - Cloudflare (remote): api/docs/bindings/observability/builds/radar/browser endpoints\n  - GitHub (local): `scripts/start_github_mcp.sh` (Docker-based `github/github-mcp-server`)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahliweb%2Fawcms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahliweb%2Fawcms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahliweb%2Fawcms/lists"}