docs/structure.md

Project Structure

Packages

PathRole
apps/webSvelteKit visualization dashboard
apps/landingMarketing/SEO landing page
tools/netflow-dbPython ingestion pipeline + DB schema
vendor/*Optional analyzer submodules and local build outputs
scripts/One-off migration scripts
docs/Project documentation
plans/Generated implementation plans
data/SQLite databases (gitignored)

Stack

  • Frontend: SvelteKit 2, TypeScript, TailwindCSS 4, Chart.js
  • Database: SQLite via better-sqlite3
  • Pipeline: Python 3, nfdump
  • Runtime: Bun 1.2+

Dev Commands

bash
1bun run dev # start web app
2bun run build:web # production build
3bun run lint # ESLint
4bun run typecheck # TypeScript check
5bun run format # Prettier
6bun run test:web # Vitest (frontend unit tests)
7bun run test:db # pytest (pipeline tests)
8bun run test:e2e # Playwright

Vendor compile helpers:

bash
1./vendor/scripts/compile-burstify.sh
2./vendor/scripts/compile-maad.sh
3./vendor/scripts/compile-all.sh

Python sanity check after editing pipeline code:

bash
1python -m compileall tools/netflow-db