βββββββββ ββββββ βββββββββββ βββ βββββββ ββββββββ
ββββββββββββββββββββββββββββ ββββ βββββββββββββββββ
βββ βββββββββββββββββββββββ βββ βββββββββββ
βββ βββββββββββββββββββββββ βββ βββββββββββ
βββ βββ ββββββββββββββ βββ βββββββββββββββββ
βββ βββ ββββββββββββββ βββ βββββββ ββββββββ
// MISSION CONTROL β Full-Stack Task Manager
A cyberpunk-themed full-stack task manager built with a clean separation between backend and frontend. TypeScript end-to-end, SQLite persistence, and a dark futuristic UI inspired by mission control interfaces.
- Priority levels β Low / Medium / High / Critical with animated visual indicators
- Status tracking β cycle tasks through Standby β Active β Complete
- Tags β attach multiple labels to any task for quick filtering
- Due dates β overdue detection with visual warnings
- Live stats bar β total, pending, active, done and mission progress bar
- Real-time clock β system status header with live timestamp
- Persistent storage β SQLite database with WAL mode; data survives restarts
- Seed data β four sample tasks auto-inserted on first run
- Cyberpunk UI β scanline overlay, noise texture, clip-path geometry, Orbitron/Rajdhani fonts
| Layer | Technology |
|---|---|
| Frontend | React 18, TSX, Vite 5, CSS custom properties |
| Backend | Node.js 20, Express 4, TypeScript 5 |
| Database | SQLite via better-sqlite3 (WAL mode, FK enforcement) |
| Fonts | Orbitron Β· Rajdhani Β· Share Tech Mono (Google Fonts) |
| Build | Vite (frontend) Β· tsc + ts-node-dev (backend) |
task-os/
βββ backend/
β βββ src/
β β βββ index.ts # Express app β port 3000
β β βββ routes/routes.ts # REST API route handlers
β β βββ storage/storage.ts # SQLite layer (prepared statements + transactions)
β β βββ types/types.ts # Shared TypeScript interfaces
β βββ data/ # Auto-created β tasks.db lives here
β βββ package.json
β βββ tsconfig.json
β
βββ frontend/
βββ public/
β βββ favicon.ico # Cyberpunk "T" icon (multi-resolution)
βββ src/
β βββ App.tsx # Root component, state, data fetching
β βββ main.tsx # React entry point
β βββ index.css # Global dark theme + all component styles
β βββ types/types.ts # Shared types (mirrored from backend)
β βββ api/
β β βββ client.ts # Typed fetch wrapper for all API calls
β βββ components/
β βββ StatsBar.tsx # Mission progress + counters
β βββ TodoCard.tsx # Individual task card
β βββ TodoForm.tsx # New task modal
βββ index.html
βββ vite.config.ts # Dev proxy: /api β localhost:3000
βββ package.json
βββ tsconfig.json
- Node.js β₯ 18
- npm β₯ 9
git clone https://github.com/zNxki/task-os.git
cd task-oscd backend
npm install
npm run devThe server starts on http://localhost:3000.
On first run, backend/data/tasks.db is created and seeded automatically.
β‘ TASK-OS Backend running on http://localhost:3000
ποΈ SQLite DB β .../backend/data/tasks.db
β³ Seeded with sample data
Open a second terminal:
cd frontend
npm install
npm run devOpen http://localhost:5173 in your browser.
The Vite dev server proxies all
/api/*requests to the backend β no CORS configuration needed during development.
Base URL: http://localhost:3000
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/todos |
List all tasks (newest first) |
GET |
/api/todos/stats |
Aggregate counters |
GET |
/api/todos/:id |
Single task by ID |
POST |
/api/todos |
Create a new task |
PATCH |
/api/todos/:id |
Partial update (status, priority, tagsβ¦) |
DELETE |
/api/todos/:id |
Delete a task |
GET |
/health |
Health check |
All endpoints return a consistent envelope:
{ "success": true, "data": { ... } } // 200 / 201
{ "success": false, "error": "Not found" } // 4xx# Create
curl -s -X POST http://localhost:3000/api/todos \
-H "Content-Type: application/json" \
-d '{"title":"Calibrate targeting system","priority":"high","tags":["hardware"]}'
# Update status
curl -s -X PATCH http://localhost:3000/api/todos/<id> \
-H "Content-Type: application/json" \
-d '{"status":"in-progress"}'
# Stats
curl -s http://localhost:3000/api/todos/stats | jq .type Priority = 'low' | 'medium' | 'high' | 'critical';
type Status = 'pending' | 'in-progress' | 'done';
interface Todo {
id: string; // UUID v4
title: string;
description?: string;
status: Status;
priority: Priority;
createdAt: string; // ISO 8601
updatedAt: string; // ISO 8601
dueDate?: string; // ISO 8601 date
tags: string[];
}CREATE TABLE todos (
id TEXT PRIMARY KEY,
title TEXT NOT NULL,
description TEXT,
status TEXT NOT NULL DEFAULT 'pending',
priority TEXT NOT NULL DEFAULT 'medium',
due_date TEXT,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE TABLE tags (
todo_id TEXT NOT NULL REFERENCES todos(id) ON DELETE CASCADE,
tag TEXT NOT NULL,
PRIMARY KEY (todo_id, tag)
);| Command | Description |
|---|---|
npm run dev |
Start with ts-node-dev (hot reload) |
npm run build |
Compile TypeScript to dist/ |
npm start |
Run compiled output |
| Command | Description |
|---|---|
npm run dev |
Vite dev server with HMR |
npm run build |
Production build to dist/ |
npm run preview |
Preview production build locally |
# Backend
cd backend && npm run build
node dist/index.js
# Frontend
cd frontend && npm run build
# Serve the dist/ folder with any static host (nginx, Caddy, etc.)
# Point /api requests to the backend process- Replace in-process SQLite with a networked DB (PostgreSQL / Turso)
- JWT authentication
- Kanban board view with drag-and-drop
- Due-date notifications (web push)
- Docker Compose for one-command deployment
- Dark / light theme toggle
- Unit tests (Vitest + Supertest)
MIT β see LICENSE for details.
{ "title": "Hack the mainframe", // required "description": "Full perimeter scan", // optional "priority": "critical", // low | medium | high | critical "dueDate": "2025-12-31", // optional ISO date "tags": ["network", "stealth"] // optional array }