Drag-and-drop Gantt planner where linked tasks reschedule themselves
publik verified: the founder reviewed this exact version for malware and approved it
Ganttly
open source · on publik
Every step written out. No terminal experience needed. Pick your setup.
A drag-and-drop Gantt planner: one timeline per project, dependencies that reschedule themselves, task details, comments and an Excel report. Built as a vibe-coded take on TeamGantt.
The hosted version runs as a public demo: no sign-up, and every browser gets its own private sandbox seeded with a sample project.
Install Node.js 22+ and pnpm, then run from this folder:
pnpm i && pnpm db:seed && pnpm dev
Open http://127.0.0.1:3000. The seed command creates .env, a local SQLite database in data/, and a sample project with 4 phases, 40 tasks, 10 dependencies and 5 people. Locally every request acts as the workspace admin. Add DEMO_MODE=1 to .env to run the public demo instead.
Task dates are inclusive calendar dates. A finish-to-start successor starts no earlier than the day after its predecessor ends. Moving a predecessor earlier never pulls successors earlier automatically.
Public demo (DEMO_MODE=1) | Team workspace (default) | |
|---|---|---|
| Sign-in | None | Cloudflare Access in front of the site |
| Who sees what | Each browser sees only its own projects (a random visitor cookie) | Everyone enrolled sees every project |
| People | A shared sample team; edits are credited to "Guest" | People page: the super admin enrols, edits and removes people |
| Limits | 5 projects per visitor; 200 tasks, 30 phases, 300 links, 300 comments per project | None |
| Clean-up | Visitor projects are deleted 3 days after they were created; Reset demo starts over | None |
Demo rules live in src/server/demo.ts; expired sandboxes are swept lazily, at most once an hour, by ordinary requests, so no cron job is needed.
In the team edition the super admin record starts without an email and is bound once with POST /api/admin/claim while signed in through Access. Set ALLOWED_EMAIL_DOMAIN in src/lib/types.ts to restrict enrolment to one company domain.
| Area | Implementation |
|---|---|
| App and API | Next.js 16 App Router, strict TypeScript |
| UI | React, Tailwind theme tokens, inline SVG logo |
| Timeline | Custom SVG, virtual rows and date columns, dnd-kit |
| Dates | date-fns, ISO date-only strings |
| State | Zustand interaction state, TanStack Query optimistic server cache |
| Data | Plain SQL on Cloudflare D1; a local SQLite file in development |
| Cloudflare | Pages: static export + _worker.js API, D1 binding DB |
| Tests | Vitest, temporary real SQLite databases, HTTP smoke script |
src/app Thin pages and API routes
src/components/gantt Timeline, shared viewport, gestures, SVG arrows
src/components/tasks Task drawer sections
src/components/projects Project list and workspace
src/components/ui Reusable primitives
src/lib/scheduling Pure date, geometry, graph and cascade functions
src/lib/api Typed commands, optimistic cache and HTTP client
src/server Identity, SQL schema/migrations, reads, atomic writes, API router
worker/index.ts Cloudflare Pages worker: API on D1 + project routing
seed.ts Idempotent demo seed
tests Scheduling, commands, HTTP boundaries, persistence
scripts Setup, API verification and the Cloudflare Pages build
pnpm test
pnpm typecheck
pnpm lint
pnpm format:check
pnpm build
With the local server running in another terminal:
pnpm test:api
The API check creates an isolated verification project, tests edits and conflicts, then removes only that project. Keep API_URL and .env pointed at the same local instance.
The app is built as static pages plus one worker (_worker.js) that serves the API from a D1 database.
pnpm pages:build # -> out/ and ganttly-pages.zip
pnpm pages:dev # optional: that exact build on simulated D1 at :8788
One-time setup:
ganttly-db). Leave it empty: tables are created on the first request, and later schema changes in MIGRATIONS (src/server/schema.ts) apply themselves the same way.DB.DEMO_MODE = 1. Leave it out (and put Cloudflare Access in front) for a private team workspace.To publish: Workers & Pages -> your project -> Create deployment -> upload ganttly-pages.zip, or run wrangler pages deploy out.
Each save is a single D1 batch guarded by Project.revision: if someone else saved in between, nothing is written and the client reloads the latest plan. See src/server/mutate.ts.
MIT. See LICENSE.