Start Study Desk V2: remove V1 sources, add backend foundation

V1 remains intact on main and in history. This branch replaces it with a new
application: node:sqlite storage with migrations, scrypt auth and sessions,
content/SRS/attempt/stats services, document extraction and chunking, a
provider-neutral AI layer (OpenAI, Anthropic, Gemini, OpenAI-compatible,
Ollama), the generation pipeline and the tool-using assistant.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-11 08:16:41 -07:00
parent 7bd0a9aad4
commit 3e74ecd843
268 changed files with 17740 additions and 55423 deletions

View file

@ -1,48 +1,61 @@
{
"name": "study-app",
"version": "0.1.0",
"name": "study-desk",
"version": "2.0.0",
"private": true,
"type": "module",
"description": "Study Desk V2 - a self-hosted, single-user study platform with quizzes, spaced-repetition flashcards, documents, and AI.",
"engines": {
"node": ">=24"
},
"scripts": {
"predev": "prisma migrate deploy",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"dev": "concurrently -k -n api,web -c blue,magenta \"npm:dev:server\" \"npm:dev:web\"",
"dev:server": "tsx watch --clear-screen=false server/main.ts",
"dev:web": "vite",
"build": "npm run build:web && npm run build:server",
"build:web": "vite build",
"build:server": "node scripts/build-server.mjs",
"start": "node dist/server/main.js",
"typecheck": "tsc -p tsconfig.server.json --noEmit && tsc -p tsconfig.web.json --noEmit",
"test": "vitest run",
"benchmark:remediation": "vitest run --config vitest.benchmark.config.ts",
"db:preflight": "node scripts/migration-preflight.mjs",
"db:backup": "node scripts/backup-database.mjs",
"auth:reset": "node scripts/request-password-reset.mjs"
"test:watch": "vitest",
"check": "npm run typecheck && npm run test && npm run build"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@prisma/adapter-better-sqlite3": "^7.8.0",
"@prisma/client": "^7.8.0",
"argon2": "^0.44.0",
"better-sqlite3": "^12.11.1",
"iron-session": "^8.0.4",
"jsonrepair": "^3.14.1",
"next": "16.3.0",
"prisma": "^7.8.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"@fontsource-variable/instrument-sans": "^5.3.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@fontsource-variable/newsreader": "^5.3.0",
"@hono/node-server": "^2.1.6",
"@tanstack/react-query": "^5.107.1",
"clsx": "^2.1.1",
"fast-xml-parser": "^5.12.0",
"fflate": "^0.8.3",
"hono": "^4.13.17",
"jsonrepair": "^3.15.0",
"lucide-react": "^1.71.0",
"mammoth": "^1.13.0",
"radix-ui": "^1.8.1",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-markdown": "^10.1.0",
"react-router": "^8.5.1",
"remark-gfm": "^4.0.1",
"ts-fsrs": "^5.4.1",
"zod": "^4.4.3"
"sonner": "^2.0.8",
"ts-fsrs": "^6.0.0",
"unpdf": "^2.1.0",
"zod": "^4.6.7"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/better-sqlite3": "^9.6.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.2.9",
"tailwindcss": "^4",
"typescript": "^5",
"vitest": "^4.1.10"
"@tailwindcss/vite": "^4.3.5",
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.3.0",
"concurrently": "^10.0.7",
"esbuild": "^0.28.2",
"tailwindcss": "^4.3.5",
"tsx": "^4.23.15",
"typescript": "^7.0.2",
"vite": "^8.3.8",
"vitest": "^5.1.0"
}
}