Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Fleet System is a multi-tenant SaaS platform for tracking and managing vehicle fleets in real time. Our company owns and operates the platform; vehicle-owning businesses subscribe as clients to track their own fleets through it.
Vehicle-owning businesses currently lack an affordable, ready-to-use way to monitor their fleets in real time, review trip history, enforce geofenced boundaries, and get automated alerts on unsafe or unauthorized vehicle use. Fleet System solves this by giving any vehicle company a subscription-based platform they can start using immediately, without building or maintaining their own tracking infrastructure.
Platform Owner (our company)
│
▼
Site Owner (Vehicle Company — our client)
│
▼
Admin (does the actual day-to-day tracking work)
│
▼
Driver (mobile app — Phase 2)
| Role | Represents | Responsibility |
|---|---|---|
| Platform Owner | Our company | Onboards vehicle companies, manages subscriptions/billing, views cross-company analytics, manages the platform itself |
| Site Owner | A vehicle company (client) | Owns the company account, creates/manages Admin users, views company-level analytics and billing |
| Admin | Company staff / fleet manager | Live tracking, vehicle management, geofencing, alerts, driver management, reports |
| Driver (Phase 2) | Vehicle operator | Mobile app: shares location, views assigned trips, sends SOS alerts |
This repository currently contains the early foundation: a working Express + PostgreSQL backend connection, with the full feature set above being built out in phases on top of it.
fleet-system/
├── backend/ # Express.js + PostgreSQL API server
│ ├── server.js
│ ├── package.json
│ ├── .env (not committed to git)
│ └── README.md
└── frontend/ # Next.js web dashboard (Site Owner & Admin)
├── app/ or pages/
├── package.json
├── .env.local (not committed to git)
└── README.md
Backend
pg driver)Frontend
http://localhost:4000Database
companies — tenant accounts (vehicle companies)users — all roles (platform_admin, company_owner, admin, driver), scoped by company_idvehicles — fleet vehicles per companylocation_pings — high-frequency GPS location data per vehicletrips — start/end trip records derived from location pingsgeofences — company-defined zones (circle or polygon)alerts — generated alerts per vehicle/companynode -v)fleetdbcd backend
npm install
Create backend/.env:
DATABASE_URL=postgresql://postgres:YOUR_PASSWORD@localhost:5432/fleetdb
PORT=4000
URL-encode special characters in your password if present, e.g.:
# → %23, @ → %40, : → %3A, / → %2F, % → %25
Run it:
npm run dev
Server runs at http://localhost:4000. On success you'll see:
demo_pings table ready
Server running: http://localhost:4000
Current backend endpoints (Phase 1 — connection demo):
| Method | Endpoint | Description |
|---|---|---|
| GET | /health | Confirms server is running and DB is connected |
| POST | /ping | Inserts a test record into the database |
| GET | /pings | Returns the last 20 test records |
Request body:
{ "message": "hello from express" }
Response:
{
"id": 1,
"message": "hello from express",
"created_at": "2026-09-02T10:00:00.000Z"
}
From the fleet-system root folder:
npx create-next-app@latest frontend
cd frontend
npm install
npm run dev
Frontend runs at http://localhost:3000.
Create frontend/.env.local:
NEXT_PUBLIC_API_URL=http://localhost:4000
Example of calling the backend from a Next.js page/component:
const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/health`);
const data = await res.json();
Note: since frontend (3000) and backend (4000) run on different
ports, the backend must explicitly allow requests from the frontend (CORS)
— this will be added to server.js once real API endpoints are built.
Two terminals, running at the same time:
Terminal 1 — backend:
cd backend
npm run dev
Terminal 2 — frontend:
cd frontend
npm run dev
Then visit http://localhost:3000 in your browser.
company_id (tenant isolation) — enforced at the query layer, not just the UIPhase 1 — Core Foundation (in progress)
Phase 2 — Operational Features
Phase 3 — Advanced Logic
Phase 4 — Intelligence Layer
Phase 5 — Mobile Expansion