- Python 45.8%
- JavaScript 29%
- Kotlin 13.4%
- CSS 6%
- HTML 5.7%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .kamal | ||
| android | ||
| apps | ||
| assets/telemetry | ||
| config | ||
| docs | ||
| mcp_server | ||
| observability | ||
| scripts | ||
| static | ||
| staticfiles | ||
| templates | ||
| tests | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .python-version | ||
| conftest.py | ||
| Dockerfile | ||
| LICENSE | ||
| manage.py | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
vtodo
A personal kanban-style task manager built with Django. Log in with Google, or with your own OpenID Connect provider when one is configured, then manage tasks in projects on a board, a list or a calendar.
Features
- Workspaces and projects — a workspace is who sees the work (Personal is just yours; a shared workspace is the people you invite). A project is what the work is part of: Chores, Cars, Christmas 2026. Each has a name and a color, and can be archived. A task with no project is in its workspace's Inbox. A workspace that's really a group of your own tasks can be turned into a project (Settings → Workspace).
- My work — what's overdue, due today and coming up, from every workspace and project
- Kanban board and list — one lane per status, or one sorted, grouped list. Two buttons do the rest: Filter (
For/) finds a field or value as you type, searches titles on Enter, and takes several values per filter ("Priority is Critical or Normal"); Display switches List and Board (V), lays the board out in columns by status or by a field (Priority, Size, Waiting on…; dragging a card between them sets it), orders cards and rows, groups the list, and picks what each card shows. Filters and layout are kept per person - One set of statuses — Backlog, To Do, In Progress, Done in every workspace, with colors you pick
- Refile tasks — into another project or Inbox, in this workspace or another, from a task or several at once from the list; comments, files and history come along
- Task details — title, notes, tags, due date, completion tracking
- Fields — each workspace has its own task fields (Settings → Workspace → Fields): Priority (Critical / Normal / Low), Size (S / M / L) and Waiting on to start, plus presets (Planning, Household, Reading list) and your own choice, person, number, text, date and yes/no fields. A field can ask why when it's set (Waiting on does): the reason shows on the task and is posted as a comment. Filter, sort and group the board and list by them; set them over the API (
custom_fields,field_reasons,GET /api/v1/fields/) and MCP.manage.py tags_to_fieldsturns tags likepriority-criticalandsize-minto field values (dry run unless--apply). - Agents — sub-accounts that work for you through the API (Settings → API → Agents). Assign them tasks; they poll
POST /api/v1/tasks/claim-next/and hold each task with a renewable lease (claim/release), so two workers never pick up the same task. An agent acts in its owner's workspaces as a member at most. Your own token or OAuth sign-in can also act as one of your agents: send its id asX-Vtodo-Act-As(GET /api/v1/agents/lists them), or passact_asto the MCP tools. Several Claude sessions can then share one connector, each recorded as its own agent. - Sign-in — Google via django-allauth, plus an optional OpenID Connect provider such as Pocket ID, Authentik, or Keycloak (authorization code with PKCE)
- HTMX-powered UI — fast partial-page updates without a full JS framework
- Docker-ready — single Dockerfile, configurable via environment variables
Requirements
- Python 3.13+
The board runs on the SQLite file Django creates locally. PostgreSQL and Redis are the deploy shape. Redis backs the cache (sessions, invite rate limiting) once CELERY_BROKER_URL is set. The scheduled jobs, Google Calendar sync and the vUpload delete retry, run every 10 minutes on a thread in the web process when RUN_PERIODIC_JOBS is on (config/periodic.py); python manage.py runjobs runs them once by hand. A local checkout can leave all of it unset.
Local development
# 1. Clone and enter the repo
git clone https://git.crowdersoup.com/CrowderSoup/vTodo.git
cd vtodo
# 2. Install uv (if not already installed)
pip install uv
# 3. Create a virtual environment and install dependencies
uv sync
# 4. Copy and edit the environment file
cp .env.example .env
# edit .env — set SECRET_KEY. DATABASE_URL and CELERY_BROKER_URL are optional locally.
# 5. Run migrations
uv run manage.py migrate
# 6. Start the development server
uv run manage.py runserver
Running with Docker
docker build -t vtodo .
docker run --env-file .env -p 8000:8000 vtodo
The container runs migrate automatically on startup, then serves with uvicorn (config/asgi.py): the Django app, and the MCP server on the host of VTODO_MCP_PUBLIC_URL (in production, mcp.vtodo.crowdersoup.com is routed to the same container). The MCP tools call the API in the same process, with no network hop. python -m mcp_server still runs it over stdio, as the account VTODO_API_TOKEN belongs to, against the vtodo at VTODO_API_URL.
Configuration
All configuration is through environment variables. Copy .env.example to .env as a starting point.
| Variable | Description | Default |
|---|---|---|
SECRET_KEY |
Django secret key | (required) |
DEBUG |
Enable debug mode | True |
DATABASE_URL |
Database URL. Unset uses SQLite at db.sqlite3 |
SQLite |
CELERY_BROKER_URL |
Redis URL for the cache (the name is left over from Celery, which vTodo no longer runs). Unset keeps the cache in memory and skips Redis | |
RUN_PERIODIC_JOBS |
Run the scheduled jobs (settings.PERIODIC_JOBS) on a thread in the web process. Production turns it on |
False |
WEB_WORKERS |
uvicorn worker processes in the container | 1 |
DB_POOL |
Postgres only: a connection pool per web process (DB_POOL_MAX, DB_POOL_MIN, DB_POOL_TIMEOUT, DB_POOL_MAX_IDLE). False keeps a persistent connection per thread instead (CONN_MAX_AGE) |
True |
VTODO_MCP_PUBLIC_URL |
The MCP endpoint's public URL. It's the OAuth audience of MCP tokens, and requests for its host go to the MCP server. Unset serves /mcp on any host |
|
VTODO_API_URL |
vtodo's own public URL: the MCP OAuth issuer is <this>/o |
http://localhost:8000 |
ALLOWED_HOSTS |
Comma-separated allowed hostnames | localhost,127.0.0.1 |
CSRF_TRUSTED_ORIGINS |
Comma-separated trusted origins | http://localhost:8000 |
GOOGLE_CLIENT_ID |
Web OAuth client ID from Google Cloud Console. The Android app uses this as the ID-token audience. | |
GOOGLE_CLIENT_SECRET |
OAuth client secret from Google Cloud Console | |
OIDC_URL |
OpenID Connect issuer URL, such as https://id.example.com, with no path. Unset leaves OpenID Connect sign-in off. |
|
OIDC_CLIENT_ID |
OIDC client id from the provider. Required together with the URL and secret. | |
OIDC_CLIENT_SECRET |
OIDC client secret from the provider. Required together with the URL and client id. | |
OIDC_NAME |
Provider name on the login button and in Settings ("Sign in with …") | SSO |
OIDC_PROVIDER_ID |
allauth provider id: lower-case letters, digits, -, _. It is in the callback URL and stored on every linked account, so don't change it once people have linked. |
oidc |
EMAIL_BACKEND |
Django email backend | console (prints to stdout) |
EMAIL_HOST |
SMTP host | |
EMAIL_PORT |
SMTP port | 587 |
EMAIL_HOST_USER |
SMTP username | |
EMAIL_HOST_PASSWORD |
SMTP password | |
EMAIL_USE_TLS |
Enable STARTTLS | True |
DEFAULT_FROM_EMAIL |
From address for outgoing mail | vtodo <noreply@example.com> |
SENTRY_DSN |
GlitchTip (or Sentry) DSN. Unset sends nothing. See Observability | |
SENTRY_ENVIRONMENT |
Environment name on events | production |
SENTRY_RELEASE |
Release name on events. Production sets vtodo@<commit> |
|
SENTRY_TRACES_SAMPLE_RATE |
Share of requests traced (health checks never are) | 1.0 |
SENTRY_TRACE_TARGETS |
Comma-separated URL regexes that get trace headers | vtodo, vUpload, localhost |
SENTRY_COMPONENT |
A tag on every event: web (the stdio MCP server sets mcp) |
web |
Observability
Errors, request traces, and logs go to GlitchTip at errors.crowder.cloud
(self-hosted on the home server; see GlitchTip/README.md in the Server
repo). observability/ sets it up for the web process (with its scheduled jobs) and the stdio MCP server:
- Errors with the signed-in user's id, username, and kind (person or agent). No cookies, auth headers, IPs, or bodies.
- A transaction per web request, scheduled job, and MCP request, with spans for SQL, Redis, outgoing HTTP, templates, and each MCP tool call. The MCP server's in-process API calls carry the trace, so a tool call and the Django requests it makes are one trace.
- Logs at INFO and up, linked to their trace. MCP tool calls that return an API error log it: 401, 403 and 5xx as warnings.
- stdout lines carry
trace=<id>, sokamal app logs | grep <id>finds a request seen in GlitchTip.
Tests use observability.testing.MemoryTransport to see what would be sent.
Authentication
Click "Sign in with Google" on the login page. Requires GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET from a Google Cloud Console OAuth 2.0 Client (Web application type), with the authorized redirect URI set to <your-domain>/accounts/google/login/callback/. A new account is created automatically on first login, matched by verified email to any existing account with the same address.
The Android app uses that same web client. It asks Google for an ID token aimed at GOOGLE_CLIENT_ID, then POST /api/v1/auth/google/ checks the token and returns a new API token for that phone. Each phone gets its own token, listed under Settings → API → Signed-in devices, where a lost phone can be signed out. Signing out in the app revokes its token through POST /api/v1/auth/sign-out/. The Settings → API token is separate and still works when pasted into the app. GET /api/v1/auth/google/ returns the client id the app should request. In the same Google Cloud project, add an Android OAuth client for package com.crowdersoup.vtodo and the SHA-1 of the signing key (see the Android section below). No new environment variable.
OpenID Connect
Any OpenID Connect provider with discovery can be an optional second sign-in method: Pocket ID, Authentik, Keycloak, Authelia, Zitadel, and so on. It uses django-allauth's generic OpenID Connect provider with the authorization code flow and PKCE. Set OIDC_URL, OIDC_CLIENT_ID, and OIDC_CLIENT_SECRET together. If any one is unset, the provider is not registered and the login page stays Google-only. Set OIDC_NAME to the name people know it by, such as Pocket ID.
In the provider, create a confidential OIDC client with PKCE on and register this redirect URI:
https://<your-domain>/accounts/oidc/<OIDC_PROVIDER_ID>/login/callback/
With the default OIDC_PROVIDER_ID that is /accounts/oidc/oidc/login/callback/. Pick the provider id before anyone links an account and leave it: it is stored on each linked account, so changing it breaks those links and the registered redirect URI.
OIDC_URL is the issuer, with no path. vtodo reads {OIDC_URL}/.well-known/openid-configuration.
Linking keeps a single user row. A first OpenID Connect login with a verified email attaches to the user who already has that email, including an account created with Google, so tasks, API tokens, Android device logins, and MCP access stay on that user. An unverified email (email_verified: false) is refused. Pocket ID, for one, reports a new account's email as unverified until an admin marks it verified or turns on Emails Verified in its application configuration. A brand-new verified email follows the same private and invite-only signup gate as Google. From Settings → General → Connected accounts, a signed-in user can connect the OpenID Connect provider to the account they are already using. If that identity, or its verified email, already belongs to a different user, connecting is refused and neither user is changed.
Running tests
uv run pytest
Browser tests in tests/browser/ drive headless Chromium through Playwright and run offline. They skip if Chromium isn't installed; set VTODO_REQUIRE_BROWSER=1 to make that a failure instead.
uv run playwright install chromium # once
uv run pytest -m browser # only the browser tests
uv run pytest -m "not browser" # everything else
Android
android/ is a Kotlin app for a home-screen widget. The website stays the source of truth. Sign in with Google, or paste the API token from Settings → API token. Either way the app stores its API token in the Android Keystore and syncs open tasks (GET /api/v1/tasks/?open=true: not archived, not completed, not in a done status) into a local database. If the server rejects the token (it was revoked or regenerated), the app signs itself out and clears that database. The Today screen and the Today widget list open tasks that are overdue or due today. Open lists every task that is not done. Each row shows the status, tags, and, when one is set, how often the task repeats. Open a task to read its notes, change its status, or edit the title, notes, due date, due time, repeat, and tags. Remove deletes the task on the website. Notes use the same Markdown as the website, including lists, links, and checkboxes. Checking one off, or moving it to a completed status, calls POST /api/v1/tasks/{id}/move/ so recurrence still runs on the server.
The launcher icon is static/logo.png. Colors come from the variables in static/app.css. The Android build copies both, so the app does not keep a second copy. The widget list scrolls on Android 12 and newer.
A debug build needs a JDK, the Android SDK, and a device or emulator:
cd android
./gradlew :app:assembleDebug
adb install -r app/build/outputs/apk/debug/app-debug.apk
Open the app once, enter the server URL, and sign in with Google. Pasting an API token still works. Then long-press the home screen and add the vtodo Today widget. The widget refreshes when you open the app, when you check a task off, and about every 30 minutes. http:// server URLs only work for a machine on your local network (a private or Tailscale address, localhost, a name without a dot, or a .local, .lan, .home.arpa, or .internal name), because the API token goes in every request. A server on the internet needs https://. A self-signed HTTPS certificate is not.
Google sign-in needs an Android OAuth client next to the web client, with package name com.crowdersoup.vtodo and the SHA-1 of the key that signed the build. The server you type in has to be running this version, because the phone asks it for the Google client id and then trades the ID token for an API token.
android/app/debug.keystore (alias androiddebugkey, password android) is committed so local debug builds are reproducible. Its password is public, so anyone can sign an APK with it. Do not hand out debug builds, and do not register its SHA-1 on the production Android OAuth client. A debug build can still sign in to production by pasting an API token, or with Google against a development server whose own Google Cloud project has that SHA-1 registered.
Release builds use a key that is never committed. Create one once and keep a backup, because an installed app only accepts updates signed with the same key:
keytool -genkeypair -v -keystore vtodo-release.jks -alias vtodo \
-keyalg RSA -keysize 4096 -validity 10000
keytool -list -v -keystore vtodo-release.jks -alias vtodo # prints the SHA-1
Register that SHA-1 on the Android OAuth client. To build a release locally, put the key in ~/.gradle/gradle.properties:
VTODO_RELEASE_KEYSTORE=/path/to/vtodo-release.jks
VTODO_RELEASE_KEYSTORE_PASSWORD=...
VTODO_RELEASE_KEY_ALIAS=vtodo
VTODO_RELEASE_KEY_PASSWORD=...
Pushing a change under android/ runs the Android workflow. It always runs the unit tests and a debug build. With the repository secrets VTODO_RELEASE_KEYSTORE_BASE64 (the output of base64 -w0 vtodo-release.jks), VTODO_RELEASE_KEYSTORE_PASSWORD, VTODO_RELEASE_KEY_ALIAS, and VTODO_RELEASE_KEY_PASSWORD set, it also builds a signed vtodo.apk and attaches it to the run:
adb install -r vtodo.apk
A phone that has the old debug-signed build has to uninstall it first, because the signature changed. The phone only holds a copy of the website's data, so sign in again afterwards.
Reminders at a task's due time
When one of your open tasks has a due date and a due time, the phone notifies you at that time, by the phone's clock. Tap the notification to open the task. Done completes it the same way checking it off does, so a repeating task comes back with its next due date and its next reminder. If that fails (no connection, say), the notification comes back with the reason.
The phone sets the alarms itself from the tasks it last synced (notify/). Nothing is pushed from the server, so a time added or changed on the website only counts once the phone syncs: when you open the app, or within about 30 minutes in the background. A reminder that came due in the last 30 minutes before a sync, or while the phone was off, shows right away, marked "Was due". Older ones are just overdue on Today. Alarms are set again after a reboot, an app update, and a clock or time zone change.
Only tasks that are yours (My work) remind you. Android 13 and newer ask for permission to notify after the first sign-in; turn them on later under the phone's settings for vTodo. Exact timing uses USE_EXACT_ALARM, which is fine for an APK you install yourself but needs a policy review on Google Play.
Links open the app (App Links)
A https://vtodo.crowdersoup.com link to My work, the board, the list, the calendar, a project or a workspace opens the app instead of the browser, and a link with ?task=<id> opens that task. Sign-in, OAuth (/o/), the API and Settings stay in the browser. A task opens only when the phone is signed in to the server the link points at, and only if it's synced to the phone (open tasks); otherwise the app opens on its task list.
Android checks this when the app is installed, against /.well-known/assetlinks.json (config/app_links.py). Set ANDROID_APP_LINK_FINGERPRINTS to the SHA-256 fingerprint of the release key, comma-separated if there's more than one:
keytool -list -v -keystore vtodo-release.jks -alias vtodo | grep SHA256
Never add the committed debug key's fingerprint. Unset, the file is a 404 and links stay in the browser. To check a phone, reinstall the release APK, then:
adb shell pm get-app-links com.crowdersoup.vtodo # vtodo.crowdersoup.com: verified
adb shell pm verify-app-links --re-verify com.crowdersoup.vtodo # after changing the fingerprint
The host is in AndroidManifest.xml. A self-hosted server on another host needs its own build with that host, so its links stay in the browser.
License
MIT — see LICENSE.