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.
main.tsx
https://dukky--66bbb7183e1a11f09bde76b3cceeab13.web.val.run
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