FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
dukky
dukkyaiTodoApp
Unlisted
Like
aiTodoApp
Home
Code
5
backend
3
frontend
3
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
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.