Turn a learning goal into a reviewable course or learning path, build one lesson at a time, and revise it without losing study history. Existing manual authoring, flashcards, quizzes and configured practices remain available.
See the local v1 operating guide for onboarding, recovery, quotas, backup and rollback boundaries.
Coursekind v1.0.0 is the first local-use release. Clone https://github.com/fakoli/coursekind.git. See the release notes for validation and operating limits.
- Flashcard Decks: Create, review, rate and filter module flashcards with persistent personal progress
- Quizzes: AI-generated quizzes to test your knowledge
- Course Authoring: Create structured courses with modules, content, and assessments
- Learning Paths: Organize courses into learning paths for guided learning
- AI-Powered Content: Generate editable module content, flashcards and quizzes with Anvil or an explicitly selected external provider; image generation is unavailable
- Progress Tracking: Track explicit study events, sessions, streaks and personal course/path completion
- Admin Console: User management and token administration (admin role)
- Notifications: Saved email/SMS preferences and truthful provider availability; delivery requires a configured transport
See the user journey and UI validation catalog for the expected course, module, study, learning-path, sharing, statistics, and AI-model workflows, adopted policies, and acceptance boundaries. The 26 October baseline audit separates real rendered evidence, mocked external integrations, durable tests, timings and remaining limits. The browser acceptance suite runs in GitHub Actions against isolated synthetic storage and reports each journey independently.
The historical 25 October walkthrough records outcomes, timings, evidence, and issues for all 40 journeys. The AI workspace proposal outlines one workflow for planning, generating, and revising paths, courses, and modules.
Shared lesson HTML is sanitized, and Mermaid diagrams use strict mode. Scripts, iframes, event handlers, inline CSS and unsafe link protocols are removed from rendered output; standard Markdown, tables, code and protected images remain usable.
| Layer | Technology |
|---|---|
| Frontend | React + TypeScript (Vite) |
| Backend | Python 3.12 / FastAPI (qualified runtime) |
| Data Models | Pydantic v2 |
| Content | Markdown files |
| Persistence | JSON or SQLite, one application process |
| AI | Anvil Serving router (self-hosted, OpenAI-compatible) |
- Python 3.12 (qualified runtime)
- Node.js 22.12+ or 24 LTS (CI tests 22 and 24)
- uv (Python package manager)
cd backend
uv sync --locked --dev --python 3.12
# Copy and configure environment
cp .env.example .env
# Edit .env with your settings (ANVIL_ROUTER_BASE_URL, ANVIL_ROUTER_TOKEN, etc.)
# Run development server (port 8010 to match frontend proxy)
uv run --locked --python 3.12 uvicorn main:app --reload --port 8010cd frontend
npm ci
npm run devThe app will be available at http://localhost:5173.
On fakoli-mini, the production-style test stack is exposed only to the
Tailscale tailnet. FastAPI and the Node host bind to loopback; Tailscale Serve
terminates HTTPS on port 4443. Existing Serve routes on ports 443, 8443, and
9120 are left unchanged.
# Build the frontend, start the loopback services, and configure Tailscale Serve
./scripts/start-tailnet.sh
# Run the full HTTPS E2E: register, login, Anvil health, text generation,
# course/module persistence, and structured flashcard generation
uv run --no-project python scripts/e2e-tailnet.py
# Stop the processes and remove only the :4443 Tailscale Serve route
./scripts/stop-tailnet.shTailnet URL: https://fakoli-mini.tail4378d.ts.net:4443/
Create a .env file in the project root (or backend/ directory):
# Required
DEBUG=true
JWT_SECRET=your-secret-key
# AI (Anvil Serving router - self-hosted, OpenAI-compatible)
ANVIL_ROUTER_BASE_URL=https://fakoli-dark.tail4378d.ts.net/v1
ANVIL_ROUTER_TOKEN=your-router-token
ANVIL_MODEL=llm.primary # text generation route
ANVIL_VISION_MODEL=vision.general # image/vision route
# Storage
STORAGE_BACKEND=json # or sqlite for workspace support
STORAGE_PATH=./data
# Workspace gates
WORKSPACE_ENABLED=true
WORKSPACE_REVIEW_ENABLED=false
# Optional backend-only advisory review: TYPESAFE_API_KEY
# Optional: Notifications
MAILGUN_API_KEY=...
MAILGUN_DOMAIN=...The router credential is server-side only. Anvil llm.primary is the default; Settings supports available Anvil models and explicitly selected OpenAI, Gemini or Anthropic using the user's saved API key. External provider success has zero Anvil debit, but external billing may apply. There is no silent fallback. Never place credentials, including optional TYPESAFE_API_KEY, in Vite variables or browser code.
Workspace transactions are qualified for JSON and SQLite in a single process. The legacy Supabase adapter is not a qualified workspace backend. New additive workspace records require no destructive migration of existing learning data.
/coursekind
/docs
architecture.md # API specs, data models
implementation.md # Development guide
/backend
/api/routes # FastAPI route handlers
/models # Pydantic models
/services # Business logic
/storage # Storage backends
main.py # FastAPI app
/frontend
/src
/api # API client functions
/components # React components
/hooks # Custom React hooks
/pages # Page components
/content
/courses # Markdown course content
Base URL: /api/v1 | 74+ total endpoints
| Resource | Endpoints | Purpose |
|---|---|---|
/auth |
6 | Registration, login, tokens |
/courses |
7 | Course CRUD and discovery |
/courses/.../modules |
7 | Module CRUD and reordering |
/paths |
9 | Learning path management |
/generate |
5 | AI content generation |
/admin |
4 | User management (admin only) |
/auth/ai-connection |
1 | Shared Anvil router health |
/decks |
8 | Flashcard CRUD |
/reviews |
3 | Spaced repetition tracking |
/quiz |
3 | Quiz generation/submission |
/progress |
3 | Stats and session history |
/ai |
4 | Explanations, hints, examples |
/uploads |
3 | Image upload and serving |
See docs/architecture.md for full API specs.
# Backend
cd backend
env -u DEBUG uv run --locked --python 3.12 pytest tests/ -q
# Frontend
cd frontend
npm run test# Backend
uv run ruff check backend/
# Frontend
npm run lint --prefix frontendApache-2.0 - See LICENSE for details.
The local Codex subscription prototype is deferred after failed isolation qualification and has no executable provider path. Historical AI-06 evidence is retained; the active browser suite contains the original 40 IDs. Stored subscription selections require explicit replacement in Settings, with no fallback.