localmind is an offline-first desktop knowledge app scaffold for local documents, notes, semantic search, and RAG chat.
pnpm setup
pnpm devpnpm setup installs frontend dependencies, downloads the portable llama.cpp
runtime, and downloads the default local embedding model. Runtime binaries and
models are stored under runtime/ai/ and are intentionally not committed.
Backend only:
cd backend
dotnet restore KnowledgeApp.slnx
dotnet build KnowledgeApp.slnx
dotnet test KnowledgeApp.slnxQuick static checks (format, lint, typecheck, API contracts, color guard):
pnpm check:quickDeveloper validation (static checks + frontend tests):
pnpm checkBackend coverage:
task test:coverageSee docs/development/testing.md.
Script entrypoints are grouped by purpose inside .config/task/Taskfile.yml.
Storybook UI primitives:
pnpm --filter desktop storybook
pnpm --filter desktop build-storybookPortable preview:
pnpm packageThe desktop UI talks only to KnowledgeApp.LocalApi. LocalApi owns SQLite, local file storage, ingestion, vector search, AI runtime adapters, and optional sync workers. Remote sync is isolated in KnowledgeApp.SyncApi.
See docs/architecture/README.md, docs/architecture/diagrams.md, and docs/architecture/observability.md.
The project technical specification, MVP scope, user stories, non-functional requirements, priorities, and risks live in docs/product/requirements/technical-specification.md.
Project releases are published through GitHub Releases. Release notes describe what changed, what is verified, and what remains intentionally skeleton-level.
Check: PR and push validation across backend, frontend, and Tauri shell.Docs: DocFX and OpenAPI documentation build on pull request, with GitHub Pages deployment from the default branch.Portable Release: manual or tag-based Windows portable preview artifact build.
Check is split into separate jobs so failures are visible without digging through one long log:
- Backend format
- Backend build
- Backend unit tests
- Backend integration tests
- Backend RAG evaluation tests
- Backend architecture tests
- Frontend check: format, lint, typecheck, color guard
- Frontend tests
- Frontend build
- Tauri shell check (triggered only on
apps/desktop/src-tauri/**or Taskfile changes) - API contract drift
- Check summary
Generated build outputs, runtime data, local databases, AI models, local env files, generated documentation, and release artifacts are ignored. See docs/development/repository-hygiene.md before adding large files, local runtime assets, or Docker build inputs.