Skip to content

v2.0.0

Choose a tag to compare

@arvarik arvarik released this 15 Oct 00:05
· 40 commits to main since this release

Contrack 2.0 reimagines Contrack from the ground up as a fast, multi-user,
self-hosted personal CRM built around four steps: Import → Dedupe → Enrich →
Track
. Every page has been rebuilt—from local-first semantic search and an
opt-in morning Pulse briefing to cited web research, an interactive
MapLibre network map, live calendar/mailbox connectors, and a built-in MCP
server.

Breaking change — clean start required: Contrack 2.0 does not open or
migrate a Contrack 1.x database. If pointed at a 1.x DATA_DIR, it exits
safely without modifying any files. Start Contrack 2.0 with a fresh
DATA_DIR.

Multi-user accounts & sign-in

  • True multi-tenancy: Multiple accounts share one instance with strict
    SQL-level isolation across contacts, notes, lists, connectors, and settings.
  • Flexible sign-in: Sign in with a password, a WebAuthn passkey, or a
    magic link sent over SMTP (SMTP_URL). With AUTH_REQUIRED=true, the first
    visit walks through creating the initial admin account.
  • Administration & observability: Invite members or admins, review the
    instance audit log, inspect database/queue/model status on Instance
    health
    , and download verified SQLite snapshots from Backups.
  • Per-account sessions & tokens: Manage active device sessions individually,
    create scoped personal API tokens (full or read-only), and sync theme, accent,
    density, and search history across devices.

Local-first search & Ask Contrack

  • Offline-capable hybrid search: Runs entirely on local ONNX embedding and
    cross-encoder reranker models bundled inside the Docker image—no API key or
    internet connection required.
  • Structured facets + natural language: Combine instant SQL facets
    (company:, tag:, near:, contacted:, added:<30d) with natural-language
    queries across people and interaction notes (Notes search returns the
    matching person, date, and passage).
  • Evidence & AI synthesis: Every result highlights the exact fields or note
    passages that matched. When an AI provider is enabled, Ask Contrack adds a
    grounded summary on top.
  • Unified command palette (⌘K / Ctrl+K): Jump to contacts, pages, saved
    filters, or quick interaction logging (>) from desktop or mobile.

Pulse & opt-in relationship tracking

  • Opt-in tracking: Choose exactly who to keep up with and on what cadence;
    relationship health rings appear only for tracked contacts.
  • Customizable morning briefing: Pulse brings together Up next
    (Catch up & Milestones for birthdays/anniversaries), Keeping up,
    Activity, Inbox, and Coming up (next 7–14 days of meetings and
    dates) in your local time zone, with rearrangeable cards and one-click snooze
    and undo.

Contacts, timeline & mobile experience

  • Unified contact workspace: Responsive two-pane layout with human-readable
    slugs (/contacts/<name>-<id>), inline field editing, pronoun-aware default
    avatars, custom milestone dates, and a Dossier tab for AI briefings and
    research history.
  • One composer for everything: Log notes, calls, meetings, and emails on
    today or past dates, attach follow-ups, and upload files via drag-and-drop or
    clipboard paste.
  • Add from text: Paste raw meeting notes or bios to extract structured
    profile fields, tags, interests, and dated past interactions before saving.
  • First-class mobile web & PWA: Bottom-sheet dialogs with drag-to-dismiss,
    44 px touch targets, one-tap call/text/email/vCard sharing, safe-area inset
    support, and Home Screen shortcuts.
  • Safety nets: 30-day Trash with restore, contact archiving, and
    instant Undo toasts on destructive or single-key actions.

AI providers & cited web research

  • Bring your own model: Connect Gemini, OpenAI, Anthropic, or any
    OpenAI-compatible endpoint (Ollama, vLLM, LM Studio) and route tasks
    independently per model, with per-provider token and cost tracking.
  • Cited web research: Run standard or deep research via your AI provider,
    a self-hosted SearXNG instance, or both. Every discovered fact links to its
    source URL and is recorded in the research log.
  • One-click correction: Not this person reverts facts from a mismatched
    search (while preserving your manual edits) and excludes those URLs from
    future runs.

Interactive network map

  • Zero-key vector map: Built on MapLibre GL and OpenFreeMap tiles (or your
    own custom basemap URL) with self-hostable Nominatim geocoding and automatic
    metro-area normalization.
  • Spatial workflows: Filter on the map, select contacts with box or lasso
    tools for bulk actions, save custom map views, place manual pins, and inspect
    unmapped contacts.

Import, connectors & smart deduplication

  • Live connectors: Sync Google Contacts, Gmail, Google Calendar, IMAP
    mailboxes, and ICS calendar feeds directly onto each contact's timeline with
    correspondent review queues and per-connector timeouts.
  • Resilient imports & exports: Batch-streamed imports from Apple, Google,
    LinkedIn, Facebook, vCard, CSV, and JSON survive dropped connections without
    duplicating rows. Full round-trip export to vCard, formula-safe CSV, and JSON.
  • Confidence-scored deduplication: Automatically merges high-confidence
    duplicates during import and queues ambiguous pairs in Possible duplicates
    with plain-English match reasons, side-by-side diffs, and a 90-day undo
    window.

Built-in MCP server, OAuth & OpenAPI

  • 18-tool MCP server (/api/mcp): Connect Claude Desktop, Claude Code,
    Cursor, VS Code, Codex, Gemini CLI, or ChatGPT via bearer token or OAuth 2.0
    with read-only scope support and prompt-injection guards (<untrusted_data>).
  • Shared OpenAPI 3.1 contract: Every REST endpoint and MCP tool shares a
    single schema, published in docs/openapi.json.

Security, privacy & operations

  • Hardened by default: Strict CSP, HSTS, and Permissions-Policy headers;
    explicit TRUST_PROXY_HOPS; SSRF-guarded outbound fetches (safeFetch);
    encrypted stored credentials; DNS-rebinding and CSRF protections; and PII-free
    structured logs.
  • Privacy controls: Delete forever purges merged records and uploaded
    media, daily sweeps clean orphaned files and geocode caches, favicons proxy
    through your server, and docs/privacy.md documents every outbound call.
  • Lean native runtime: Runs directly on Node.js 26.10+ native TypeScript
    with numbered SQLite migrations, a ~160 MB multi-arch Docker image (amd64 +
    arm64) with pre-bundled local search models, and signed SLSA build
    provenance attestations.

Removed from 1.x

  • AI_TIER quotas, drizzle-kit push commands (replaced by npm run db:new),
    legacy /dev and 1.x migration/redirect shims, POST /api/contacts/merge-batch,
    and GET/PUT /api/auth/session-policy (moved to /api/admin/settings).