aiTodoApp
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 full-stack TODO application with AI-powered task prioritization built on Val Town.
- ✅ Create, read, update, and delete TODO items
- 🤖 AI-powered task prioritization using OpenAI
- 📱 Responsive web interface
- 💾 SQLite database storage
- 🎯 Priority scoring and recommendations
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ ├── todos.ts # TODO CRUD operations
│ │ └── ai.ts # AI prioritization endpoints
│ └── index.ts # Main Hono server
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main React app
│ │ ├── TodoList.tsx # TODO list component
│ │ └── TodoForm.tsx # Add/edit TODO form
│ ├── index.html # HTML template
│ └── index.tsx # Frontend entry point
├── shared/
│ └── types.ts # Shared TypeScript types
└── main.tsx # HTTP entry point
GET /api/todos
- Get all todosPOST /api/todos
- Create a new todoPUT /api/todos/:id
- Update a todoDELETE /api/todos/:id
- Delete a todoPOST /api/ai/prioritize
- Get AI prioritization for all todosPOST /api/ai/suggest-priority
- Get AI priority suggestion for a single todo
- Add your TODO items
- Click "AI Prioritize" to get intelligent priority suggestions
- View tasks sorted by AI-recommended priority
- Mark tasks as complete when done