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.
Viewing readonly version of main branch: v16View latest version
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