FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
dukky
dukkyaiTodoApp
Unlisted
Like
aiTodoApp
Home
Code
4
backend
2
shared
1
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/31/2025
Viewing readonly version of main branch: v18
View latest version
README.md

AI-Powered TODO App

A full-stack TODO application with AI-powered task prioritization built on Val Town.

Features

  • āœ… Create, read, update, and delete TODO items
  • šŸ¤– AI-powered task prioritization using OpenAI
  • šŸ“± Responsive web interface
  • šŸ’¾ SQLite database storage
  • šŸŽÆ Priority scoring and recommendations

Project Structure

ā”œā”€ā”€ 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

API Endpoints

  • GET /api/todos - Get all todos
  • POST /api/todos - Create a new todo
  • PUT /api/todos/:id - Update a todo
  • DELETE /api/todos/:id - Delete a todo
  • POST /api/ai/prioritize - Get AI prioritization for all todos
  • POST /api/ai/suggest-priority - Get AI priority suggestion for a single todo

Usage

  1. Add your TODO items
  2. Click "AI Prioritize" to get intelligent priority suggestions
  3. View tasks sorted by AI-recommended priority
  4. Mark tasks as complete when done
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
Ā© 2025 Val Town, Inc.