{"id":31790423,"url":"https://github.com/lirbank/google-calendar-url","last_synced_at":"2025-10-10T15:32:41.463Z","repository":{"id":40793543,"uuid":"247783347","full_name":"lirbank/google-calendar-url","owner":"lirbank","description":"Generate shareable URLs for adding Google Calendar events","archived":false,"fork":false,"pushed_at":"2025-06-21T02:03:51.000Z","size":176,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T07:26:00.794Z","etag":null,"topics":["calendar","google-calendar","google-calendar-api","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/google-calendar-url","language":"TypeScript","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/lirbank.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,"zenodo":null}},"created_at":"2020-03-16T17:58:56.000Z","updated_at":"2025-07-15T05:18:38.000Z","dependencies_parsed_at":"2025-06-19T20:37:38.403Z","dependency_job_id":"676015ba-2b13-4a51-abb2-d6737c40007b","html_url":"https://github.com/lirbank/google-calendar-url","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lirbank/google-calendar-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirbank%2Fgoogle-calendar-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirbank%2Fgoogle-calendar-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirbank%2Fgoogle-calendar-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirbank%2Fgoogle-calendar-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lirbank","download_url":"https://codeload.github.com/lirbank/google-calendar-url/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirbank%2Fgoogle-calendar-url/sbom","scorecard":{"id":592260,"data":{"date":"2025-08-11","repo":{"name":"github.com/lirbank/google-calendar-url","commit":"53dd0ab5ebb714753c31772d3b5af653a0406d73"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":10,"reason":"15 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T22:15:22.640Z","repository_id":40793543,"created_at":"2025-08-20T22:15:22.640Z","updated_at":"2025-08-20T22:15:22.640Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004572,"owners_count":26083736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","google-calendar","google-calendar-api","typescript"],"created_at":"2025-10-10T15:30:31.092Z","updated_at":"2025-10-10T15:32:41.457Z","avatar_url":"https://github.com/lirbank.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Calendar URL\n\nGenerate shareable URLs for adding Google Calendar events.\n\n## Features\n\n- 📦 **No dependencies** - Lightweight and self-contained\n- 🛡️ **TypeScript native** - Written in TypeScript with strict type definitions\n- 🌐 **Universal compatibility** - Works with JavaScript and TypeScript\n\n## Installation\n\n```sh\nbun add google-calendar-url\npnpm add google-calendar-url\nyarn add google-calendar-url\nnpm install google-calendar-url\n```\n\n## Usage\n\n```ts\nimport { googleCalendarEventUrl } from \"google-calendar-url\";\n\n// Compact ISO 8601 format\ngoogleCalendarEventUrl({\n  start: \"20201212T100000Z\",\n  end: \"20201212T110000Z\",\n  title: \"Event title\",\n  details: \"Event details\",\n  location: \"San Francisco\",\n});\n\n// Extended ISO 8601 format\ngoogleCalendarEventUrl({\n  start: \"2020-12-12T10:00:00Z\",\n  end: \"2020-12-12T11:00:00Z\",\n  title: \"Event title\",\n  details: \"Event details\",\n  location: \"San Francisco\",\n});\n\n// Output (same for both):\n// https://calendar.google.com/calendar/event?action=TEMPLATE\u0026dates=20201212T100000Z%2F20201212T110000Z\u0026text=Event+title\u0026details=Event+details\u0026location=San+Francisco\n```\n\n[Try the URL ](https://calendar.google.com/calendar/event?action=TEMPLATE\u0026dates=20201212T100000Z%2F20201212T110000Z\u0026text=Event+title\u0026details=Event+details\u0026location=San+Francisco)\n\n## Helper function\n\nThe `toGoogleCalendarDate()` helper converts JavaScript `Date` objects to Google Calendar date strings.\n\n```ts\nimport { toGoogleCalendarDate } from \"google-calendar-url\";\n\nconst date = new Date(\"2024-03-21T14:30:45Z\");\n\n// All-day event\ntoGoogleCalendarDate(date, { source: \"utc\", style: \"allDay\" });\n// \"20240321\"\n\n// Time in user's local timezone (floating)\ntoGoogleCalendarDate(date, { source: \"local\", style: \"floating\" });\n// \"20240321T143045\" (varies by timezone)\n\n// UTC time (instant)\ntoGoogleCalendarDate(date, { source: \"utc\", style: \"instant\" });\n// \"20240321T143045Z\"\n\ngoogleCalendarEventUrl({\n  start: toGoogleCalendarDate(date, { source: \"utc\", style: \"allDay\" }),\n  end: toGoogleCalendarDate(date, { source: \"utc\", style: \"allDay\" }),\n  title: \"Event title\",\n  details: \"Event details\",\n  location: \"San Francisco\",\n});\n```\n\n**Options:**\n\n- `source`: `\"utc\"` | `\"local\"` - Whether to read the date in UTC or local time\n- `style`: `\"allDay\"` | `\"floating\"` | `\"instant\"` - How Google Calendar should interpret the date\n\n## References\n\n- [Unofficial spec](https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/master/services/google.md)\n\n## Contributing\n\nContributions are welcome! Please open issues or pull requests on [GitHub](https://github.com/lirbank/google-calendar-url/pulls).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Need expert help?\n\nHi, I'm [@lirbank](https://github.com/lirbank). I take on a few consulting projects each year where I help companies build, unblock, and ship. Here's what I do:\n\n**[STΛR MODΞ](https://www.starmode.dev/)** — A boutique AI development studio I run with AI/ML expert and data scientist [@spencer-g-smith](https://github.com/spencer-g-smith). We help companies build accurate AI solutions: AI-first apps, advanced workflows, and agentic systems.\n\n**[Mikael Lirbank](https://www.lirbank.com/)** — My solo practice, focused on web app development, test automation, code quality, and technical architecture. I'm friendly and happy to help with the hard stuff.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirbank%2Fgoogle-calendar-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flirbank%2Fgoogle-calendar-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirbank%2Fgoogle-calendar-url/lists"}