惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
量子位
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
博客园 - 聂微东
博客园_首页
D
Docker
博客园 - 叶小钗
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
腾讯CDC
罗磊的独立博客
雷峰网
雷峰网
博客园 - Franky

Hacker News

HN Work GitHub - Northwood-Systems/foreman: Self-hosted LLM gateway. Cost effective, deterministic, and fast. Secure and private by default. A Visualization Language for the AI Era NoCrap — Neuroscience-Based Recovery Pods GitHub - weirdGuy/kastor: Declarative language and toolchain for AI agents: define agents, tools and prompts in HCL, then compile to frameworks or manage them on hosted platforms with plan/apply semantics. Abralo - Run multiple Claude Code agents in one window GitHub - mehranzand/repofleet: RepoFleet is an issue-centered CLI tool for managing Git workflows across multiple repositories. GitHub - exmergo/dex: Dex is the agent-native analytics engineering toolkit. Point it at your warehouse and your dbt project. It learns the landscape, authors your transformations, and tells you exactly what to fix when the schema drifts. Built for analytics engineers and data engineers who want more out of their coding agent. Pug — Open Source Product Analytics GitHub - instavm/tarit: A hypervisor and sandbox cloud for self-hosted AI agents and RL Chiptune Radio — Aleph Void, LLC Free Mermaid Live Editor & Diagram Maker GitHub - Salnika/dejavu: Stop showing coding agents the same command output twice. GitHub - hirasso/html-obfuscator: Obfuscate emails, phone numbers, and other sensitive data in PHP. Invisible to humans, hidden from bots until they interact. Davit — a native macOS UI for Apple containers Fenzo AI - The perfect course, every time. HTML Drive — Edit and Publish HTML from Google Drive GitHub - rowboatlabs/rowboat: Open-source AI coworker, with memory ZeroGate | Automated Cluster Scaling A tiny scale-free kernel language — Joa Ebert GitHub - arman-jalili/guardian-framework: Architecture Enforcement Framework for AI-Assisted Development PostgreSQL on AWS: Size & Benchmark EC2 Instances GitHub - zqiren/Orbital: the agent that never starts from zero GitHub - Rodiun/frugon: Free, local, open-source LLM cost analyzer — see where your LLM bill leaks, on your machine. Artificiety — A Fantasy World for AI Agents Ex Situ FlexInference: Drop your AI costs today WhimFiles - Find Any File in Seconds GitHub - josephsenior/Grinta-Coding-Agent: Local-first autonomous coding agent that plans, executes, validates, and finishes software tasks end-to-end. Nectar — The Web Without JavaScript
GitHub - scastiel/kado: Kadō — A privacy-first habit trac...
scastiel · 2026-04-23 · via Hacker News

Kadō

A privacy-first habit tracker for iPhone and iPad.

Non-binary habit score · Offline-first · Open source (MIT) · No account, no subscription, no telemetry.

Download on the App Store

getkado.app

MIT license Swift 5.10 Platforms


What is Kadō?

Kadō is an iOS habit tracker with three commitments:

  1. A score, not a streak. The habit score — inspired by Loop Habit Tracker on Android — is a non-binary exponential moving average of your completions. One missed day doesn't wipe your progress. You see a trend, not a fragile chain.
  2. Your data stays yours. No account, no analytics, no third-party SDKs. Storage is local (SwiftData), sync is optional through your own iCloud (CloudKit private database). See PRIVACY.md.
  3. Native to Apple. SwiftUI, @Observable, SwiftData, CloudKit, WidgetKit, App Intents — no cross-platform layer, no third-party dependencies.

Why another habit tracker? The market gap is spelled out in docs/PRODUCT.md: the reference open-source tracker (Loop) is Android-only; the reference iOS tracker (Streaks) is closed source and uses a binary streak; the most visible modern iOS open source attempt (Teymia) is freemium and ships without Apple Watch or HealthKit. Kadō takes Loop's algorithm to native iOS, MIT, with the full Apple ecosystem in scope.

Screenshots

Today view Habit detail with score popover Multi-habit overview New habit form Today view in dark mode

Features

  • Today view — habits due today, tap to complete, long-press for partial / note / timer.
  • Habit detail — monthly calendar, current streak, best streak, habit score with an info popover explaining the math.
  • Overview — habits × days matrix with score-shaded cells, the Loop / Way of Life pattern with Kadō's score DNA.
  • Flexible schedules — daily, N days per week, specific weekdays, every N days. Binary, counter, or timer habit types.
  • Widgets — Home Screen (small / medium / large) and Lock Screen (rectangular / circular / inline). Quick-complete via AppIntent.
  • Reminders — per-habit local notifications with recurring schedules and check / skip quick actions.
  • iCloud sync — optional, opt-in, goes only through the user's private CloudKit database.
  • JSON export / import — lossless backup of your data; round-trip tested. CSV (export, generic import, Loop import) is a post-v0.2 follow-up.
  • Accessibility — Dynamic Type up to XXXL, VoiceOver labels on every surface, full Dark Mode.
  • Localization — English and native French (not machine-translated).

Status

  • v0.1 MVP — shipped.
  • v0.2 "Visible iOS-native" — shipped (widgets, overview, notifications, JSON import/export, CloudKit polish).
  • App Store — first public build submitted, currently in review. TestFlight external beta is live.
  • Next — v0.3: App Intents / Siri, HealthKit auto-completion, Live Activities + Dynamic Island, native Apple Watch app.

Full roadmap in docs/ROADMAP.md.

Tech stack

  • SwiftUI with @Observable (iOS 17+) for state — no Combine.
  • SwiftData for local persistence, with VersionedSchema + SchemaMigrationPlan wired from day one.
  • CloudKit via SwiftData (cloudKitDatabase: .private(...)) for multi-device sync.
  • WidgetKit + an App Group JSON snapshot for extension surfaces (the widget process never opens SwiftData — see CLAUDE.md for why).
  • App Intents for widget quick-complete today; Siri / Shortcuts arrive in v0.3.
  • Swift Testing for unit tests, XCTest for UI tests.
  • Zero third-party dependencies.

Target: iOS 18.0+, Xcode 16.0+, Swift 5.10+.

Architecture notes, conventions, and toolchain quirks (SwiftData edge cases, CloudKit-shape rules, concurrency under Swift 6, etc.) are documented in CLAUDE.md.

Repository layout

Kado/                       # Main iOS app target
Packages/KadoCore/          # Shared Swift package — @Model types,
                            #   domain types, calculators, intents,
                            #   widget snapshot types
KadoWidgets/                # Widget extension target (reads an
                            #   App Group JSON snapshot)
KadoTests/                  # Unit tests (Swift Testing)
branding/                   # SVG marks and wordmarks
docs/
├── PRODUCT.md              # Product vision, competitive analysis
├── ROADMAP.md              # Versioned feature roadmap
├── habit-score.md          # Score algorithm spec
├── streak.md               # Streak algorithm spec
├── app-store-connect.md    # Store metadata, copy, checklists
├── plans/                  # Per-feature research / plan / compound
│                           #   artifacts from the conductor workflow
└── screenshots/            # iPhone 6.7" and iPad 13" sets (EN + FR)
PRIVACY.md                  # Privacy policy (repo-hosted)

Development

Requirements

  • macOS 14.5+
  • Xcode 16.x+
  • An Apple Developer account is only needed to build to a physical device or TestFlight; the simulator does not require one.

Build and run

git clone https://github.com/scastiel/kado.git
cd kado
open Kado.xcodeproj

Select the Kado scheme and an iOS 18 simulator (iPhone 17 Pro is the project's practical default on Xcode 26 toolchains).

Tests

From Xcode: ⌘U on the Kado scheme.

From the command line via xcodebuild:

xcodebuild -project Kado.xcodeproj -scheme Kado \
  -destination "platform=iOS Simulator,name=iPhone 17 Pro" \
  test

If you use Claude Code with the XcodeBuildMCP server, prefer test_sim / build_sim over shell xcodebuild — see the "Tooling" section of CLAUDE.md.

Dev mode

Settings has a hidden dev-mode toggle that swaps the SwiftData container for a seeded local sandbox. Useful for playing with historical score / streak behavior without affecting your real data. See docs/plans/2026-04/dev-mode/ for the design notes.

Contributing

Issues and pull requests are welcome. A few notes:

  • Read CLAUDE.md first — it is the project's working agreement (architecture, conventions, testing expectations, toolchain quirks). It is written for Claude Code but applies equally to human contributors.
  • Business logic (score, streak, frequency, import/export) is test-first. New behavior needs a test; regressions need a test that would have caught them.
  • One PR per feature or logical fix. Commit message format follows a lightweight Conventional Commits convention — feat(scope): description, fix(scope): …, etc.
  • No third-party dependencies in v0.x. If RevenueCat becomes necessary for a Pro tier later it will be the only exception.

Kadō collects nothing. No analytics, no telemetry, no crash reporter. iCloud sync is optional and goes through the user's own private CloudKit database.

Full policy in PRIVACY.md.

License

MIT © 2026 Sébastien Castiel.

Acknowledgements

  • Loop Habit Tracker (Álinson S. Xavier, GPLv3) — the source of the non-binary habit score algorithm. Kadō reimplements the idea natively in Swift; no Loop code was copied.
  • Streaks (Crunchy Bagel) — the iOS UX reference for how this kind of app should feel.
  • Teymia Habit (MIT) — reference point for a modern SwiftUI + SwiftData + CloudKit + WidgetKit stack on iOS.
  • XcodeBuildMCP (getsentry, MIT) — the MCP server that makes an autonomous build / test / screenshot loop possible with Claude Code.