freezmo/lib
Martin Dvorak 3ea2cea100 Freezmo: self-hosted notes-to-activities study app
Next.js 15 app that turns photos, PDFs, DOCX/PPTX and text into a swipeable
feed of AI-generated activities (flashcards, multiple choice, true/false,
fill-in-the-blank, matching, ordering, short answer) using the user's own
Ollama models.

Highlights:
- All AI calls run in server route handlers; the browser never talks to Ollama.
- Bring-your-own-key mode (default): the key lives only in the browser and is
  sent per-request; server, local-daemon and shared-key modes also supported.
- Client-side document extraction (pdf.js, mammoth, jszip) with scanned-PDF
  page rendering for the vision model; notes stay in their original language.
- ChatGPT-style shell: collapsible sidebar / mobile drawer, neutral token-based
  light + dark themes, folder organisation, PWA (manifest, SW, offline page).
- Strict JSON validation with zod + auto-repair, rate limiting, and request
  guards (cross-origin, body-size, API-key sanitising).
- setup.sh bootstraps deps, .env.local and a production build.

Gitignore excludes .env*, the generated pdf.js worker and local scratch files.
2026-10-06 20:56:55 +00:00
..
ai.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
client-api.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
confetti.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
config.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
deck-ops.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
documents.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
folders.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
http-guard.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
image.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
language.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
nav.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
ollama.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
prompts.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
rate-limit.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
schemas.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
settings.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
storage.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
ui-events.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
use-health.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
utils.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
xp.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00