{"id":15812451,"url":"https://github.com/skn0tt/icbu-to-sqlite","last_synced_at":"2026-01-19T09:01:40.938Z","repository":{"id":40368477,"uuid":"359868936","full_name":"Skn0tt/icbu-to-sqlite","owner":"Skn0tt","description":"Analyze your Apple Calendar with SQL!","archived":false,"fork":false,"pushed_at":"2023-12-15T02:22:30.000Z","size":2049,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-06T04:01:32.893Z","etag":null,"topics":["calendar","productivity","sql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Skn0tt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-20T15:42:22.000Z","updated_at":"2021-11-14T17:29:31.000Z","dependencies_parsed_at":"2024-10-26T17:29:32.076Z","dependency_job_id":null,"html_url":"https://github.com/Skn0tt/icbu-to-sqlite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Skn0tt/icbu-to-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skn0tt%2Ficbu-to-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skn0tt%2Ficbu-to-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skn0tt%2Ficbu-to-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skn0tt%2Ficbu-to-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skn0tt","download_url":"https://codeload.github.com/Skn0tt/icbu-to-sqlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skn0tt%2Ficbu-to-sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","productivity","sql"],"created_at":"2024-10-05T04:01:29.172Z","updated_at":"2026-01-19T09:01:40.920Z","avatar_url":"https://github.com/Skn0tt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# icbu-to-sqlite\n\n\u003e Run full SQL queries on your calendar!\n\nThis repo contains a small script to pipe your Apple Calendar data into an SQLite database.\n\n## Usage\n\n1. Clone this repository.\n\n```bash\ngit clone https://github.com/skn0tt/icbu-to-sqlite /some-dir\n```\n\n2. Export your calendar archive into `/some-dir/cal.icbu`.\n\n![](./step-1.png)\n\n![](./step-2.png)\n\n3. Run `npm i` \u0026\u0026 `node index.js`.\n\n4. Run your queries on `db.sqlite`!\n\n![](./step-3.png)\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\nFull Query\n\u003c/summary\u003e\n\n```sql\nSELECT\n  SUM((strftime('%s', dtend) - strftime('%s', dtstart)) / 3600) as duration,\n  calendar.title as calendar\nFROM event\nJOIN calendar ON calendar.id = calendarId\nWHERE event.transp \u003c\u003e 'TRANSPARENT'\nAND dtstart BETWEEN {{start}} AND {{end}}\nGROUP BY calendarId\n```\n\n\u003c/details\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskn0tt%2Ficbu-to-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskn0tt%2Ficbu-to-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskn0tt%2Ficbu-to-sqlite/lists"}