No description
  • Python 50.4%
  • JavaScript 21.6%
  • CSS 16.2%
  • HTML 11.8%
Find a file
MoCipher 5879d7ca98 Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions
New features:
- Full-text search with debounced instant filtering
- Tag system with color-coded pills on tasks
- Dark/light theme toggle (persisted in localStorage)
- Keyboard shortcuts (N=new, /=search, F=focus, T=theme, B=bulk, ?=help)
- Focus mode showing only today's tasks
- Bulk select/complete/delete multiple tasks
- Pin important tasks to top
- 7-day productivity chart with completion streak tracking
- Activity log tracking all task actions
- Sort by priority, due date, created, or alphabetical
- Overdue visual indicators (red border + badge)
- Analytics grid in dashboard
- Collapsible digest settings panel
- Mobile-optimized responsive improvements

Also: removed GitHub remote, now using git.mocipher.com only

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-19 01:17:47 +02:00
.claude Add web UI, recurring tasks, NLP input, time tracking, subtasks, digest, export 2026-07-18 21:18:34 +02:00
static Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions 2026-07-19 01:17:47 +02:00
templates Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions 2026-07-19 01:17:47 +02:00
.env.example Rebuild as fully functional AI todo app with Claude integration 2026-07-18 20:47:37 +02:00
.gitignore Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions 2026-07-19 01:17:47 +02:00
ai_engine.py Add web UI, recurring tasks, NLP input, time tracking, subtasks, digest, export 2026-07-18 21:18:34 +02:00
app.py Add web UI, recurring tasks, NLP input, time tracking, subtasks, digest, export 2026-07-18 21:18:34 +02:00
database.py Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions 2026-07-19 01:17:47 +02:00
digest.py Add web UI, recurring tasks, NLP input, time tracking, subtasks, digest, export 2026-07-18 21:18:34 +02:00
README.md Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions 2026-07-19 01:17:47 +02:00
requirements.txt Add web UI, recurring tasks, NLP input, time tracking, subtasks, digest, export 2026-07-18 21:18:34 +02:00
server.py Add search, tags, theme toggle, keyboard shortcuts, analytics, bulk actions 2026-07-19 01:17:47 +02:00

AI Todo App

A full-featured, AI-powered task manager with a beautiful dark/light themed web dashboard, natural language input, smart prioritization, time tracking, analytics, and a complete REST API. Built with FastAPI and Claude AI.

Python FastAPI Claude AI License


Features

Core Task Management

  • Full CRUD with priorities (Critical/High/Medium/Low), categories, due dates
  • Recurring tasks — daily, weekly, biweekly, monthly with auto-regeneration
  • Pin important tasks to the top
  • Bulk select, complete, and delete multiple tasks at once
  • Persistent SQLite storage

AI Intelligence

  • Natural Language Input — "finish report by Friday, high priority" is parsed into structured fields
  • Smart Suggestions — AI analyzes gaps in your workflow and recommends tasks
  • Daily Prioritization — AI recommends optimal task order based on urgency and energy
  • Time Analysis — AI reviews where your time goes and spots inefficiencies

Tags & Organization

  • Flexible color-coded tags on any task
  • Category filtering (work, personal, health, learning, finance, errands)
  • Full-text search with debounced instant results
  • Sort by priority, due date, creation date, or alphabetically
  • Focus mode — show only today's tasks

Subtasks & Checklists

  • Break tasks into sub-steps with progress bars
  • Independent completion tracking per subtask

Time Tracking

  • Start/stop timer per task
  • Total time aggregation
  • AI productivity analysis

Analytics & Streaks

  • 7-day productivity chart showing daily completions
  • Completion streak tracking (consecutive days with completions)
  • Activity log of all actions

Daily Digest

  • Discord and Slack webhook support
  • Sends overdue, due-today, and high-priority summary
  • Configurable send time, test delivery from UI

Export

  • JSON export with subtasks, tags, and time entries
  • CSV export for spreadsheets
  • Filter by completion status

Web UI

  • Beautiful responsive dark/light theme (toggle with T key)
  • Keyboard shortcuts for power users
  • Overdue visual indicators (red border + badge)
  • Mobile-optimized with touch-friendly targets

REST API

  • Complete API for scripting and custom clients
  • Auto-generated OpenAPI docs at /docs

CLI

  • Full-featured terminal interface alongside the web UI

Quick Start

git clone https://git.mocipher.com/m01/AITodoApp.git
cd AITodoApp

pip install -r requirements.txt

# Optional: enable AI features
cp .env.example .env
# Add your Anthropic API key to .env

# Run web UI
python server.py
# → http://localhost:8000

# Or run CLI
python app.py

Keyboard Shortcuts

Key Action
N Focus new task input
/ Focus search
F Toggle focus mode (today only)
T Toggle dark/light theme
B Toggle bulk select mode
? Show shortcut hints
Esc Close modal / exit bulk mode

Configuration

Variable Required Description
ANTHROPIC_API_KEY No Enables AI features (NLP parsing, suggestions, prioritization)

Get your key from console.anthropic.com. The app works fully without it.


API Reference

Full interactive docs at /docs when the server is running.

Tasks

Method Endpoint Description
GET /api/tasks List (query: completed, category, priority, search, tag, sort_by, due_today, pinned_only)
POST /api/tasks Create (body: title, description, priority, category, due_date, recurring_rule, tags)
GET /api/tasks/{id} Detail with subtasks, tags, time entries
PUT /api/tasks/{id} Update fields
DELETE /api/tasks/{id} Delete
POST /api/tasks/{id}/complete Mark complete
POST /api/tasks/{id}/uncomplete Reopen
POST /api/tasks/{id}/pin Pin to top
POST /api/tasks/{id}/unpin Unpin
POST /api/tasks/bulk/complete Bulk complete
POST /api/tasks/bulk/delete Bulk delete
POST /api/tasks/parse Natural language → structured task

Tags

Method Endpoint Description
GET /api/tags All tags
POST /api/tasks/{id}/tags Add tag
DELETE /api/tasks/{id}/tags/{name} Remove tag
GET /api/categories All categories

Subtasks

Method Endpoint Description
POST /api/tasks/{id}/subtasks Add subtask
POST /api/subtasks/{id}/complete Complete
DELETE /api/subtasks/{id} Delete

Time Tracking

Method Endpoint Description
POST /api/tasks/{id}/timer/start Start
POST /api/tasks/{id}/timer/stop Stop
GET /api/time-summary Summary

AI

Method Endpoint Description
POST /api/ai/suggest Task suggestions
POST /api/ai/prioritize Priority recommendation
GET /api/ai/analyze-time Time analysis

Analytics

Method Endpoint Description
GET /api/stats Full statistics
GET /api/activity Activity log
GET /api/productivity?days=7 Daily completion chart data

Export & Digest

Method Endpoint Description
GET /api/export/json JSON download
GET /api/export/csv CSV download
POST /api/digest/config Save webhook config
POST /api/digest/send Send now

Project Structure

AITodoApp/
├── server.py           # FastAPI web server + REST API
├── app.py              # CLI interface
├── database.py         # SQLite models, migrations, data ops
├── ai_engine.py        # Claude AI (NLP, suggestions, analysis)
├── digest.py           # Daily digest via webhooks
├── templates/
│   └── index.html      # Web UI
├── static/
│   ├── style.css       # Dark/light theme styles
│   └── app.js          # Frontend (search, sort, bulk, shortcuts)
├── requirements.txt
├── .env.example
└── README.md

Tech Stack

  • Backend — Python 3.9+, FastAPI, SQLite
  • Frontend — Vanilla JS + CSS (zero build step, no dependencies)
  • AI — Anthropic Claude API
  • Notifications — Discord/Slack webhooks

Usage Examples

Natural Language

"finish quarterly report by next Friday, high priority"
→ Title: Finish quarterly report | Priority: high | Due: 2026-07-25

"review PRs every Monday"  
→ Title: Review PRs | Recurring: weekly

"buy groceries tomorrow"
→ Title: Buy groceries | Category: errands | Due: tomorrow

cURL

# Natural language task
curl -X POST http://localhost:8000/api/tasks/parse \
  -H "Content-Type: application/json" \
  -d '{"text": "call dentist tomorrow, high priority"}'

# Search
curl "http://localhost:8000/api/tasks?search=report&sort_by=due_date"

# Bulk complete
curl -X POST http://localhost:8000/api/tasks/bulk/complete \
  -H "Content-Type: application/json" \
  -d '{"task_ids": [1, 2, 3]}'

# Add tag
curl -X POST http://localhost:8000/api/tasks/1/tags \
  -H "Content-Type: application/json" \
  -d '{"name": "urgent", "color": "#ff1744"}'

Daily Digest Automation

# cron: send digest every day at 8am
0 8 * * * cd /path/to/AITodoApp && python digest.py

License

MIT