A task planner with a FastAPI backend and a plain HTML/JS frontend. Lets you manage tasks and send custom messages (or automatic due-task reminders) to your phone via a Telegram bot.
-
Create a Telegram bot:
- Message @BotFather on Telegram, send
/newbot, and follow the prompts. Copy the bot token it gives you. - Send any message to your new bot, then visit
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdatesin a browser to find yourchat.idin the JSON response.
- Message @BotFather on Telegram, send
-
Configure environment:
cp .env.example .env # edit .env and fill in TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID -
Install dependencies (Python 3.10+):
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt -
Run the server:
cd backend uvicorn main:app --reload -
Open http://127.0.0.1:8000 in your browser.
The frontend is an installable Progressive Web App (manifest + service worker + icons), so it shows up as a real app icon on your home screen and runs full-screen.
Chrome only allows installing a PWA over HTTPS (or localhost) — a plain
http://<lan-ip>:8000 URL won't offer the install prompt. The easiest way to
get an HTTPS URL for your phone to hit while the server runs on your computer
is a tunnel:
# from the backend/ folder, with the server already running via uvicorn
cloudflared tunnel --url http://127.0.0.1:8000
# or: ngrok http 8000Then, on your phone:
- Open the
https://...tunnel URL in Chrome. - Tap the menu (⋮) → Add to Home screen / Install app.
- Launch it from the home screen icon — it runs standalone, no browser chrome.
The backend still has to be running on your computer for the app to load and sync tasks; the tunnel just exposes it to your phone over HTTPS.
- Create, edit, complete, and delete tasks with title, description, due date, priority, and tags.
- Filter the task list by tag, priority, and status (open/done/all).
- Send an arbitrary custom message to your phone instantly from the UI.
- Background scheduler checks every
REMINDER_CHECK_INTERVAL_SECONDS(default 60s) for tasks past their due date and reminds you on Telegram — once, or repeatedly everyreminder_interval_minutesuntil the task is marked done. - Recurring tasks (
daily/weekly/monthly): marking one done rolls its due date forward to the next occurrence instead of staying completed. - Reply
done <task id>to any reminder on Telegram to mark that task complete from your phone, without opening the app. The reminder text includes the id.
backend/ FastAPI app, SQLite models, Telegram sender/poller, reminder scheduler
frontend/ Static HTML/CSS/JS UI (served by the backend at /)