Study/package.json
Elijah 5ea61c882c
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 51s
Add sandboxed Python for the assistant and a Python check of generated quizzes
- Pyodide (Python 3.14, WebAssembly) in a separate Node process under the permission
  model: read-only access to Pyodide's files, no writes, processes or network, empty
  environment, JS bridges removed, time limit with kill and restart.
- Assistant tool run_python, which can load a draft or quiz as Python data.
- After quiz generation the model checks question count, type mix, correct answers per
  type, duplicates and recomputed calculations with Python, then submits fixes that are
  applied only if the question still validates. Switch in the Generate dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:03:24 -07:00

64 lines
2 KiB
JSON

{
"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": {
"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",
"test:watch": "vitest",
"check": "npm run typecheck && npm run test && npm run build"
},
"dependencies": {
"@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",
"@huggingface/transformers": "^4.3.2",
"@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",
"pdf-lib": "^1.17.1",
"pyodide": "^314.0.7",
"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",
"sonner": "^2.0.8",
"ts-fsrs": "^6.0.0",
"unpdf": "^2.1.0",
"zod": "^4.6.7"
},
"devDependencies": {
"@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"
}
}