Repository navigation
Project Layout
Copilot edited this page Nov 23, 2026
·
3 revisions
| Path | Purpose |
|---|---|
src/ |
SvelteKit single-page frontend (no SSR) and the TypeScript it uses |
src-tauri/src/ |
Tauri desktop application: commands, state, and platform wiring |
src-tauri/crates/epikrise-core/ |
Domain types, template engine, output linting, and case session |
src-tauri/crates/epikrise-ingest/ |
Extraction pipeline for files, images, OCR, and plain text |
src-tauri/crates/epikrise-llm/ |
Provider profiles, the LlmClient abstraction, and credential storage |
locales/ |
Fluent message catalogs, one folder per language |
scripts/ |
Build, packaging, OCR, release, and Windows helper scripts |
.devcontainer/ |
Dev container definition and setup scripts |
.github/ |
Workflows (see GitHub Actions), issue templates, and the PR template |
docs/ |
Privacy policies published with GitHub Pages (Jekyll) |
static/ |
Static files copied as-is into the frontend build |
store-assets/ |
Microsoft Store listing images and metadata |
tests/ |
Vitest unit and tooling tests; Playwright specs in tests/e2e/
|
src-tauri/capabilities/, src-tauri/icons/, src-tauri/msix/
|
Tauri permission capabilities, application and Store icons, and the Store MSIX manifest |
templates/, fixtures/clinical/
|
Git-ignored local clinical material; never commit real or realistic content |
The three library crates deliberately have no Tauri dependency. Put business logic there, not in src-tauri/src/, so it can be unit-tested without a webview.
-
src/routes/+page.svelteis the main workspace: inputs, generated output, and draft controls. -
src/lib/i18n.tsbuilds the Fluent bundles, resolves the UI locale, and exposestranslate. -
src/lib/output-format.tsandsrc/lib/theme.tshold output formatting and theme helpers. -
src/bindings.tsis generated by Tauri Specta fromsrc-tauri/src/lib.rs. Do not edit it by hand; regenerate it by running the app or the build that exports the bindings.
-
lib.rsregisters the Tauri commands, holds application state, and exports the Specta bindings. -
policy.rsreads the administratorpolicy.tomlfrom its OS-specific system path and enforces it in the backend. -
updater.rsandwindows_updater_features.rsimplement the direct-release updater, including Windows-specific behavior. -
native_menu.rsbuilds the native application menu. -
startup_dialog.rsshows the startup dialog, including locale resolution for it. -
linux_session_bus.rsprovides Linux session-bus integration. -
main.rsis the binary entry point and only calls into the library.
Each crate keeps its unit tests in an inline mod tests in lib.rs.
- Clinical template types (
ClinicalTemplate, variables, sections, output rules) andTemplateError. -
lint_output, which checks generated text against a template's output rules. - Extracted-input types (
ExtractedBlock,InputProvenance,ExtractionMethod) andCaseSession, the in-memory case state. -
Redacted<T>, a wrapper whose debug output does not reveal its contents.
- Entry points for files (
extract_file,extract_file_with_ocr), images (extract_image_with_ocr,extract_image_for_vision), plain text (extract_text_file,extract_raw_text), and PDF OCR targets (pdf_page_texts_and_ocr_targets). -
IngestErrorandOcrDiagnosticCategoryfor typed, non-clinical error reporting.
-
ProviderAdapterandProviderProfiledescribe the supported providers and their settings. -
GenerationParamsandReasoningEffortcontrol output limits and reasoning. -
LlmClientis the trait every provider call goes through;GenaiLlmClientis the implementation. -
CredentialStoreis the storage trait;KeyringCredentialStorekeeps API keys in the OS keychain. -
credential_account_idandparse_credential_accountbuild and read keychain account identifiers.
-
locales/<locale>/app.ftlholds the UI messages. Message IDs must match across all shipped catalogs. See Localization. -
scripts/contains the Bash, PowerShell, and Node helpers that thepnpmscripts call, including OCR preparation and the Windows and Store packaging scripts. See Installers and Cross-Platform Builds. -
tests/holds the Vitest tests (*.test.ts, with*.integration.test.tsrun by the integration config). Playwright browser specs live intests/e2e/. See Testing. -
store-assets/holds per-locale Store screenshots (de,en,es,fr,it), thesource/background image, andbase-metadata.json.scripts/generate-store-assets.mjsbuilds them. See Cross-Platform Builds. -
docs/holds the privacy policies in five languages and_config.ymlfor GitHub Pages. -
static/holds the favicon and SVG/PNG images copied as-is into the frontend build. -
src-tauri/icons/is referenced bytauri.conf.json.src-tauri/msix/AppxManifest.xmlis used by the Store packaging scripts (scripts/store-msix.mjs).src-tauri/capabilities/default.jsonholds the Tauri permission capabilities.
Epikrise wiki
Using Epikrise
Developing
Maintaining