AeroFleet is an Open Mercato-based operations platform for drone fleet management. This repository is currently at the kickoff stage: the app runs on the Open Mercato foundation, but the AeroFleet product modules and Mission Control experience have not been built yet.
The codebase is still close to a fresh Open Mercato installation:
- core Open Mercato modules are enabled in
src/modules.ts - the only custom app module currently enabled is
example - the homepage and shell still use the default Open Mercato UI
- AeroFleet-specific specs and domain modules have not been implemented yet
Project operating guidance for agents lives in AGENTS.md.
The current target is the AeroFleet OS MVP for the demo scenario: Wind Farm Inspection / Inspekcja Farmy Wiatrowej.
- Build on the Open Mercato foundation with multi-tenancy and RBAC
- Prioritize telemetry ingestion and machine-to-machine flight data handling
- Enforce pre-flight compliance as a hard mission launch gate
- Mission Control dark-mode operations UI
- CRM intake for customer inspection requests
- Pilot profile validation, especially certification validity
- Fleet and payload registry, including battery SOH tracking
- Scheduler-driven resource matching for drones, batteries, and staff
- Compliance workflows for checklist, weather, and airspace authorization
- MAVLink-oriented telemetry ingestion and live mission tracking
- Post-flight technical log archiving
- Billing derived from verified flight telemetry
- Next.js App Router
- TypeScript
- Node.js
- PostgreSQL
- MikroORM
- Awilix
- Zod
- Open Mercato
- Node.js
>= 24 - Yarn
4 - PostgreSQL
Install dependencies:
yarn installBootstrap the local environment:
yarn initializeStart the development server:
yarn devyarn dev
yarn build
yarn lint
yarn typecheck
yarn test
yarn test:integration
yarn generate
yarn db:generate
yarn db:migrateBefore implementing a major AeroFleet feature, check .ai/specs/.
If no relevant spec exists, create one first from:
Before coding, load the relevant guides and skills from:
AGENTS.md.ai/guides/*.ai/skills/*
Do not edit:
.mercato/generated/*node_modules/@open-mercato/*
Edit source files and run:
yarn generateIf you modify entity definitions:
yarn db:generateReview the generated migration before applying:
yarn db:migrateThen regenerate framework output:
yarn generatesrc/
├── app/ # Next.js app shell
├── components/ # shared app UI
├── modules.ts # enabled Open Mercato modules
└── modules/ # custom application modules
.ai/
├── guides/ # framework usage guides
├── skills/ # task-specific workflows
└── specs/ # feature specifications
- Write the AeroFleet MVP spec
- Define AeroFleet domain modules and naming
- Model missions, fleet, telemetry, batteries, and technical logs
- Build telemetry ingestion and live mission state
- Implement compliance gateway workflows
- Add scheduler automation, customer notifications, and billing
src/modules/exampleis demo/reference material, not AeroFleet production domain logic- the current UI is a baseline shell, not the target Mission Control dashboard
- future work should prefer extending Open Mercato modules before ejecting or rebuilding them