{"id":51167067,"url":"https://github.com/navapbc/ai-academy","last_synced_at":"2026-06-26T20:30:23.095Z","repository":{"id":361933796,"uuid":"1252701805","full_name":"navapbc/ai-academy","owner":"navapbc","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-17T16:26:09.000Z","size":1290,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T17:24:50.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/navapbc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T19:32:00.000Z","updated_at":"2026-06-17T15:59:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/navapbc/ai-academy","commit_stats":null,"previous_names":["navapbc/ai-academy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/navapbc/ai-academy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navapbc%2Fai-academy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navapbc%2Fai-academy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navapbc%2Fai-academy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navapbc%2Fai-academy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navapbc","download_url":"https://codeload.github.com/navapbc/ai-academy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navapbc%2Fai-academy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34832916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"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":[],"created_at":"2026-06-26T20:30:21.095Z","updated_at":"2026-06-26T20:30:23.097Z","avatar_url":"https://github.com/navapbc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nava AI Academy\n\nAn internal AI-literacy training platform for Nava.\n\n## Overview\n\nNava AI Academy is an internal training platform that teaches the Nava AI Literacy\nSkills Matrix (Stages 1–2). It pairs a structured curriculum with interactive labs,\nbacked by Claude via API and a Supabase data layer. The app runs locally in\ndevelopment and is deployed to a Nava subdomain.\n\n## Getting Started\n\n### Prerequisites:\n1. **Node.js:** v18 or higher.\n\n### Installation:\n```bash\nnpm install\nnpm run dev\n```\n\n### Local Development\n\nThe full stack is three pieces: the Supabase backend, the Edge Functions (the\nClaude proxy), and the Vite frontend. **Docker Desktop must be running.**\n\n**One-time setup** (skip if your `.env` files already exist — see\n[Local development — setup \u0026 configuration](#local-development--setup--configuration)\nfor what goes in them):\n\n```bash\nnpm install\ncp .env.example .env                                   # frontend + Supabase + Google SSO vars\ncp supabase/functions/.env.example supabase/functions/.env  # set ANTHROPIC_API_KEY here\n```\n\n**Run the full stack** — use three terminals; terminals 2 and 3 stay running:\n\n```bash\n# Terminal 1 — local Supabase stack (Postgres + Auth + Studio)\nnpx supabase start\n\n# Terminal 2 — Edge Functions (the server-side Claude proxy; AI features 503 without it)\nnpx supabase functions serve --env-file supabase/functions/.env\n\n# Terminal 3 — frontend\nnpm run dev\n```\n\nThen open **http://localhost:3000**. Studio (browse the DB) is at\n**http://127.0.0.1:54323**.\n\nUseful extras:\n\n```bash\nnpx supabase status      # show local URLs + keys; confirm services are Up\nnpx supabase stop        # stop the stack (preserves DB data)\nnpm run lint             # tsc --noEmit \u0026\u0026 eslint\nnpm test                 # vitest run\n```\n\n\u003e Sign-in is Google SSO restricted to `@navapbc.com`. For local work without\n\u003e Google configured, use the dev-only email/password fallback with the seeded\n\u003e demo user `demo@navapbc.com` / `demo-password`.\n\n## Local development — setup \u0026 configuration\n\nThe app uses a fully local Supabase backend (Postgres + Auth + Studio) run via\nthe Supabase CLI and Docker.\n\n**Prerequisites:** [Docker Desktop](https://www.docker.com/products/docker-desktop/)\nrunning, plus `npm install`.\n\nAI features (Playground, Prompt Lab) talk to Claude through a Supabase Edge\nFunction (`supabase/functions/chat`). The `ANTHROPIC_API_KEY` is held\n**server-side** in that function's runtime env and is never exposed to the\nbrowser — the client only ever calls the Edge Function.\n\n```bash\n# 1. Copy the env template (it is gitignored) and fill in values below.\ncp .env.example .env\n\n# 2. Start the local Supabase stack (first run pulls Docker images).\n#    Run from the repo root so the CLI auto-loads .env (it needs GOOGLE_CLIENT_ID\n#    / GOOGLE_SECRET to enable Google sign-in — see \"Google SSO\" below).\nnpx supabase start\n#    Copy the printed API URL + anon key into VITE_SUPABASE_URL and\n#    VITE_SUPABASE_ANON_KEY in .env.\n\n# 3. Set your Anthropic API key for the Edge Function (server-side only).\ncp supabase/functions/.env.example supabase/functions/.env\n#   then set ANTHROPIC_API_KEY=sk-ant-... in that file (it is gitignored).\n\n# 4. Serve the Edge Functions with that env file (leave running).\nnpx supabase functions serve --env-file supabase/functions/.env\n\n# 5. In another terminal, run the app.\nnpm run dev\n```\n\n### Google SSO (sign-in)\n\nSign-in is **Google SSO restricted to `@navapbc.com`**. Access is enforced in two\nlayers that don't trust the browser: a client guard in `src/lib/auth.tsx` that\nsigns out any non-`navapbc.com` session, and a `before insert on auth.users`\ndatabase trigger (the `restrict_auth_email_domain` migration) that rejects the\nrow outright. Google's `hd` hint is UX only, not a boundary.\n\nTo enable Google sign-in locally:\n\n1. In [Google Cloud Console](https://console.cloud.google.com/apis/credentials),\n   create an **OAuth 2.0 Client ID** of type **Web application**. A personal/dev\n   Google Cloud project is fine for local work; the production client lives in\n   the Nava Google org and is wired up at deploy time.\n2. Add this **Authorized redirect URI**:\n   `http://127.0.0.1:54321/auth/v1/callback` (the local Supabase auth endpoint).\n3. Put the client id/secret in your gitignored `.env`:\n   ```bash\n   GOOGLE_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com\n   GOOGLE_SECRET=your-google-oauth-client-secret\n   ```\n   The Supabase CLI substitutes these into `supabase/config.toml`\n   (`[auth.external.google]`) on `supabase start`. `GOOGLE_SECRET` is server-side\n   only — never VITE-prefix it; it is never exposed to the browser.\n\n**Local dev fallback:** the email/password form (shown only in dev) signs in the\nseeded demo user `demo@navapbc.com` / `demo-password`, so you can work locally\nwithout configuring Google.\n\nGet an Anthropic API key from\n[console.anthropic.com](https://console.anthropic.com/settings/keys). The\nfunction defaults to Claude Haiku 4.5 (cheapest current model); override the\ndefault with `ANTHROPIC_MODEL` in the same env file, or per request via the\nin-app model selector.\n\nUseful commands:\n- `npx supabase status` — show local URLs/keys (Studio is at http://127.0.0.1:54323).\n- `npx supabase db reset` — re-apply migrations + seed against a fresh local DB.\n- `npx supabase stop` — tear the stack down.\n\n## Configuration\n\nYou can customize the company name, logo, and core mission in `src/branding.ts`:\n\n```typescript\nexport const BRANDING = {\n  name: \"Your Company\",\n  fullName: \"Your Company Name LLC\",\n  tagline: \"Your tagline here\",\n  // ...\n};\n```\n\n## Curriculum Structure\n\n- **Phase 1: Foundations** (Decoding the black box, Privacy).\n- **Phase 2: The Art of Control** (Prompt Engineering, System Personas).\n- **Phase 3: The Lab** (Setting up Ollama, Hardware requirements).\n- **Phase 4: Synthesis** (Building real-world use cases).\n\n## License \u0026 Legal\n\nThis project is licensed under the **PolyForm Noncommercial License 1.0.0**. \n- **Personal/Internal Use:** Permitted.\n- **Modification:** Permitted for internal/non-commercial use.\n- **Resale for Profit:** **Prohibited.**\n\nFor more details, see [LICENSE](LICENSE) and [CONTRIBUTING.md](CONTRIBUTING.md).\n\n---\n*Built with React, Vite, and ❤️ for Secure AI.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavapbc%2Fai-academy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavapbc%2Fai-academy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavapbc%2Fai-academy/lists"}