@coordinaut/server
v1.0.0
Published
Hosted sync backend for Coordinaut teams.
Downloads
292
Maintainers
Readme
@coordinaut/server
Hosted sync backend and read-only dashboard for Coordinaut teams.
It stores team/project coordinator documents in SQLite and exposes the remote
storage API used by @coordinaut/core.
Run
COORDINAUT_SERVER_TOKEN="<set-a-local-token>" \
COORDINAUT_SERVER_DATA_DIR=.coordinaut-server \
coordinaut-serverOpen the dashboard:
http://localhost:3737/dashboardThen initialize a project against the backend:
COORDINAUT_TOKEN="<set-a-local-token>" coordinaut init \
--storage remote \
--remote-url http://localhost:3737 \
--team my-team \
--project my-projectMulti-Tenant Tokens
For multiple teams or roles, use COORDINAUT_SERVER_TOKENS:
{
"<admin-token>": { "team": "platform", "role": "admin" },
"<member-token>": { "team": "platform", "role": "member" },
"<read-token>": { "team": "platform", "role": "read" }
}Roles:
adminandmembercan read and write.readcan only read team/project state and dashboard data.- Team-scoped tokens cannot access another team.
Dashboard And Hardening
The server exposes:
GET /dashboard
GET /v1/teams/:team/projects
GET /v1/teams/:team/projects/:project/summary
GET /v1/teams/:team/projects/:project/auditHosted safeguards include ETag/If-Match stale-write protection, request ids,
security headers, no-store responses, body-size limits through
COORDINAUT_SERVER_MAX_BODY_BYTES, and an optional CORS allowlist through
COORDINAUT_SERVER_ALLOWED_ORIGINS.
