Skip to content

Refactor: reorganize the repository into a small monorepo-style layout

Latest

Choose a tag to compare

@dariasmyr dariasmyr released this 04 Jul 18:30
· 42 commits to master since this release
2959335

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 demo module.
  • Split benchmarks into a separate benchmarks module.
  • Added a repository go.work file 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 .gitignore rules for demo and benchmark runtime artifacts.
  • Removed config_local.yaml from version control and kept config_local_example.yaml as 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 config
    • benchmarks/data, benchmarks/work, and benchmark result JSON files