Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A minimal sales pipeline kanban board built with React, Hono, and SQLite on Val Town.
Features:
- 5-stage sales pipeline (Lead → Qualified → Proposal → Negotiation → Won)
- Drag-and-drop deals to update status
- Real-time deal tracking with amounts
- Pre-loaded with 8 demo deals
- Dark theme with gradient styling
- Backend (
index.ts): Hono server that initializes SQLite with demo data and provides API routes - Frontend (
frontend/components/): React components for the kanban boardApp.tsx: Loads deals from/api/dealsand handles status updatesKanban.tsx: 5-column kanban with drag-and-dropDealCard.tsx: Individual deal cards
GET /api/deals— Get all dealsPOST /api/deals/:id/status— Update deal statusPOST /api/deals— Create new deal
SQLite table:
CREATE TABLE deals (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
company TEXT NOT NULL,
status TEXT NOT NULL,
amount INTEGER NOT NULL,
createdAt TEXT NOT NULL
)
- Add edit/delete functionality
- Persist drag-drop reordering
- Add filtering and search
- Connect to a real CRM API