Skip to content
LiberturePublic

Latest commit

 

History

544 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liberture

A habit tracker you can talk to. Track habits, streaks and evidence-based protocols, then log them from ChatGPT or Claude, by chat or by voice. Plus a directory of the people, books, organizations and research behind human optimization across six pillars: work, sleep, nutrition, mind, exercise and finance.

liberture.com · Get started · Guides · Protocols

Liberture habit tracker: today's habits, a 14-day best streak and a 67% weekly completion rate

What it does

  • Habit tracker: daily, weekday or N-times-a-week habits with streaks, completion rates, a week grid, a year matrix, statistics, todos, projects and a calendar. Works on desktop and as an installable app on your phone.
  • Talk to it from ChatGPT or Claude: an MCP server with OAuth lets your assistant read your habits, mark them done (including past days), add habits and todos, and answer "how did this week go?". Changes appear live in the open tracker.
  • Protocols: 53 evidence-backed routines from researchers and practitioners. Each one turns into ordinary habits with one click, or when you ask your assistant.
  • Directory and content: people, organizations, books, articles and the six pillars.
  • Your keys, your data: sign-in is a Nostr key, with no email or password. Every assistant permission is switchable, and deleting habits is off by default.
  • English and Spanish for the landing page, guides, sign-in and the whole tracker.

Screenshots

Statistics Week view
Habit statistics with completion rate per habit Week view with completed days ticked per habit
Protocol catalog Connected assistants and permissions
Catalog of 53 evidence-backed protocols with filters ChatGPT and Claude connected, with permission switches
Calendar Todos
Calendar with habits, todos and events Todo list with due dates and priorities

The tracker on a phone Statistics on a phone Todos on a phone

Connect ChatGPT or Claude

The connector URL is the same for everyone: https://liberture.com/mcp.

  • Claude: Settings → Connectors → Add custom connector, paste the URL, press Connect and approve. Guide
  • ChatGPT: Settings → Apps → Advanced, turn on developer mode, Create, paste the URL, choose OAuth and approve. Guide

Then ask "what's left today?". Technical reference: /docs (MCP tools, scopes, the /api/v1 REST API and the OpenAPI schema).

When new tools ship, ChatGPT and Claude keep their old tool list until you refresh the connector. Settings → Assistants shows when each one is behind; steps: /docs/updates. How the tracking works: connector updates.

Tech stack

  • Next.js 16 (App Router), React 19, Tailwind CSS 4, Radix UI, Framer Motion
  • PostgreSQL, accessed through Prisma for the content and through the postgres client for the habit tracker
  • Nostr sign-in (NIP-07 extensions, NIP-46 remote signers, nsec)
  • MCP and OAuth 2.1 (dynamic client registration, PKCE) for ChatGPT and Claude
  • Live updates: Postgres LISTEN/NOTIFY pushed to the browser over Server-Sent Events

Development

pnpm install
cp .env.example .env          # set DATABASE_URL (PostgreSQL)
pnpm exec prisma db push      # create/update tables
pnpm exec tsx scripts/seed-marketplace-protocols.ts   # protocol library
pnpm dev

Directory records and article bodies live in PostgreSQL. Use the Directory section in the admin panel to create and edit entries, or restore a database backup for a populated local preview.

Variable Purpose
DATABASE_URL PostgreSQL connection string (shared by Prisma and the tracker)
ADMIN_NOSTR_PUBKEYS Optional. Comma-separated hex pubkeys allowed into /admin
ADMIN_SECRET Optional. Bearer secret for the tracker's admin endpoints
HABIT_TRACKER_TIME_ZONE Optional. Default time zone for "today" in the assistant API
RESEND_API_KEY Optional. Transactional email
VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT Optional. Web Push for reminders and coach check-ins with the app closed (node scripts/generate-vapid-keys.mjs). See push reminders
REMINDER_SCHEDULER Optional. off disables the server reminder scheduler

Repository guides for operators, contributors and integration maintainers are in the documentation index.

Project layout

app/(site)/        public pages: landing, guides, docs, protocols, directory, pillars…
app/tracker/       the habit tracker
app/api/v1/        assistant REST API (also exposed as MCP tools at /mcp)
app/oauth/         OAuth authorize/token/register for ChatGPT and Claude
components/habits/ tracker, landing, docs and sign-in UI
lib/habits/        tracker logic: storage, streaks, protocols, MCP, OAuth, Nostr
lib/translations.ts  all UI copy, English and Spanish
prisma/            schema (content and habit tables)

Deployment

For production configuration, backup scheduling, and restore checks, see Production operations.

Publishing a stable GitHub Release deploys its tagged commit to liberture.com. See the release procedure and changelog. A Docker setup (Dockerfile, compose.liberture-habits.yaml) runs the same app with its own Postgres.

Reminders that arrive with the app closed need VAPID keys in the server environment; setup, behaviour and testing are in push reminders.

License

Liberture is open-source software licensed under the GNU General Public License v3.0.

Releases

Contributors

Languages