概要
your calendar as a directory
仕事効率化・自動化計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルcaldir
The "file over app" philosophy for calendars.
~/caldir/
├── home/
│ └── 2025-03-25T0900__dentist.ics
└── work/
├── 2025-03-20T1500__client-call.ics
└── 2025-03-26T1400__sprint-planning.ics
Why?
Calendars already have an open format (.ics files) but they're hidden behind APIs and proprietary sync layers.
Caldir connects to any provider and puts your calendar data on disk, so that you can:
Search it
grep -l "holiday" ~/caldir/**/*.ics
Script it
# Daily schedule in your terminal
echo "Today:" && ls ~/caldir/*/$(date +%Y-%m-%d)*
Manage it with your AI agent
claude "Move my Thursday meetings to Friday"
# Claude reads, renames, and edits the .ics files directly
Keep your data portable
# Migrate events from Outlook to Google Calendar
mv ~/caldir/outlook/*.ics ~/caldir/google/
Quick start
# Install caldir (Linux / macOS)
curl -sSf https://caldir.org/install.sh | sh
# ...or on Windows:
powershell -c "irm https://caldir.org/install.ps1 | iex"
# Connect and follow the instructions in the CLI:
caldir connect google # or "caldir connect icloud", "caldir connect caldav"...
# Sync your calendar events
caldir sync
# Your calendar events are now in ~/caldir
Install from source
Make sure you have Rust and Cargo installed.
cargo install --path caldir-cli
cargo install --path caldir-provider-google # Google Calendar
cargo install --path caldir-provider-icloud # iCloud
Install with Nix
nix run github:t4t5/caldir -- --help
Or add github:t4t5/caldir as a flake input and use packages.${system}.default (or overlays.default) in your NixOS or home-manager config. The package includes all provider binaries.
Install with Scoop (Windows)
scoop bucket add extras # Ensure bucket is added first
scoop install caldir
Providers
Caldir syncs through providers — small plugin binaries that talk to calendar services. It currently supports:
- Google (caldir-provider-google)
- iCloud (caldir-provider-icloud)
- Outlook (caldir-provider-outlook)
- CalDAV (caldir-provider-caldav)
- Webcal (caldir-provider-webcal)
A provider is just an executable named caldir-provider-{name} that speaks JSON over stdin/stdout. Anyone can create one.
Once a provider is connected, you can communicate with it using caldir's CLI commands:
caldir pull-- download remote changes to localcaldir push-- upload local changes to remote (including deletions)caldir sync-- both, in one commandcaldir status-- show pending changes in either direction
Commands
Create event
caldir new # Interactive mode (for humans)
caldir new "Meeting" --start 2025-03-20T15:00 # Non-interactive mode (for agents)
View events
caldir events # Next 3 days
caldir today # Today's events
caldir week # This week (through Sunday)
Sync with provider
caldir status # Show pending changes
caldir sync # Push/Pull changes
Configuration
Caldir's global settings are stored in in your system's config directory:
# ~/.config/caldir/config.toml
calendar_dir = "~/caldir"
default_calendar = "personal"
Your calendar-specific settings are stored in each calendar's directory:
# ~/caldir/personal/.caldir/config.toml
name = "Personal"
color = "#4285f4"
[remote]
provider = "google"
google_account = "[email protected]"
google_calendar_id = "primary"
For more details, check out the full documentation.
関連プロジェクトを探す
読み込み中…