Repository navigation
Summary
This PR reorganizes the repository into a small monorepo-style layout so the core fts-engine library can be used without pulling in demo, CLI, CUI, benchmark, or tooling dependencies.
The main library remains in the root module, while the interactive demo and benchmarks now live in separate Go modules connected through go.work.
What changed
- Split the interactive demo app into its own
demomodule. - Split benchmarks into a separate
benchmarksmodule. - Added a repository
go.workfile to keep local development across modules convenient. - Kept the root module focused on the reusable public library packages under
pkg/.... - Moved demo-only code, config, CUI adapters, loaders, and app-specific internals under
demo/. - Updated imports and module boundaries so demo and benchmark code depend on the root library instead of being part of it.
- Added local
.gitignorerules for demo and benchmark runtime artifacts. - Removed
config_local.yamlfrom version control and keptconfig_local_example.yamlas the tracked example config.
Why
Previously, demo and tooling code lived inside the same module as the library. That made the root module carry dependencies that are only needed for local demos, terminal UI, benchmarking, or repository tooling.
After this change, consumers that import github.com/dariasmyr/fts-engine get a cleaner library module with fewer unrelated dependencies.
Notes
- The demo app behavior is intended to stay the same.
- The demo startup code was also split into focused files for config, logging, service setup, persistence, indexing, pprof, and UI wiring.
- Local runtime data is now ignored per module:
demo/data,demo/build,demo/fts, and local demo configbenchmarks/data,benchmarks/work, and benchmark result JSON files