How bible-translation-tools/sefer works
Sefer is a local-first scripture-editor scaffold, but its README says the first screen is intentionally only a shell and editing, storage, Git, parsing, and proofreading remain planned. The current runnable flow is user → application boot/composition → services and routed shell; the tree also shows editor, search, review, sync, and host subsystems that are not yet established as an integrated user workflow. The graph distinguishes documented architecture from sampled wiring; unsampled implementation details and speculative connections are omitted.
Main entry points: services.ts Service wiring · core Core domain · App.tsx App root · galley.ts Galley analysis
Components 18
Application shell
- App root
src/App.tsx - Composition
src/app/composition.ts - Service wiring
src/app/services.ts - Routed screens
src/routes - Project context
src/app/ProjectContext.tsx - App services
src/app - Review UI
src/app/ui/review/ReviewPanel.tsx
Core policy
- Core domain
src/core - Galley analysis
src/core/galley/galley.ts - Git repository policy
src/core/git/repository.ts - Project search
src/core/search/search.ts
Editor subsystem
- Editor engine
src/editor/core/compose.ts - Editor API
src/editor/index.ts
Host capabilities
- Host adapters
src/platform - Desktop host
src-tauri/src/lib.rs - Native Git commands
src-tauri/src/git.rs - History index worker
src/platform/web/history/worker.ts
Other components
- User
Connections 16
- User → App root: opens
src/App.tsx - App root → Composition: composes
src/App.tsx - App root → Routed screens: renders
src/App.tsx - Composition → Service wiring: builds services
src/app/services.ts - Service wiring → Host adapters: detects host
src/app/services.ts - Service wiring → Core domain: wires layers
src/app/services.ts - Routed screens → Project context: uses project state
- Project context → App services: uses app modules
src/app/ProjectContext.tsx - Desktop host → Native Git commands: registers commands
src-tauri/src/lib.rs - Git repository policy → Core domain: uses path policy
src/core/git/repository.ts - Galley analysis → Core domain: uses observability
src/core/galley/galley.ts - Project search → Galley analysis: uses analysis
src/core/search/search.ts - Editor API → Editor engine: exports engine
src/editor/index.ts - Editor engine → Galley analysis: analyzes source
- Review UI → Service wiring: uses services
- History index worker → Core domain: builds book index
src/platform/web/history/worker.ts