{"id":17680764,"url":"https://github.com/kcreate/norcal","last_synced_at":"2025-03-30T19:13:10.230Z","repository":{"id":72282957,"uuid":"61573627","full_name":"KCreate/norcal","owner":"KCreate","description":"a web-based calendar that you can sync, link, embed, and edit offline","archived":false,"fork":false,"pushed_at":"2016-06-20T22:05:49.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T11:52:51.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KCreate.png","metadata":{"files":{"readme":"readme.markdown","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":"2016-06-20T19:13:26.000Z","updated_at":"2023-03-10T09:59:35.000Z","dependencies_parsed_at":"2023-09-02T23:45:27.107Z","dependency_job_id":null,"html_url":"https://github.com/KCreate/norcal","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KCreate%2Fnorcal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KCreate%2Fnorcal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KCreate%2Fnorcal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KCreate%2Fnorcal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KCreate","download_url":"https://codeload.github.com/KCreate/norcal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365645,"owners_count":20765546,"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","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":[],"created_at":"2024-10-24T09:08:47.070Z","updated_at":"2025-03-30T19:13:10.201Z","avatar_url":"https://github.com/KCreate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# norcal\n\np2p command-line calendar\n\n![norcal screenshot](images/screenshot.png)\n\n# usage\n\n```\nnorcal\n\n  Show a calendar and events for the current month.\n\nnorcal add TIMESTR {-t TITLE}\n\n  Add an event by its TIMESTR with a TITLE.\n\nnorcal rm ID\n\n  Delete an event by its ID.\n\nnorcal query {--gt GT --lt LT}\n\n  List events from GT to LT.\n```\n\n# api\n\n``` js\nvar norcal = require('norcal')\n```\n\n## var cal = norcal(opts)\n\nCreate a new norcal instance `cal` from:\n\n* `opts.log` - hyperlog instance to use\n* `opts.db` - leveldb instance to use\n\n## cal.add(time, opts, cb)\n\nAdd an event given by a free-form string `time` which is parsed by\n[parse-messy-schedule][1]. Optionally:\n\n* `opts.created` - parse relative to this time\n* `opts.value` - a value to store alongside the time\n\n`cb(err, node, id)` fires with the underlying hyperlog `node` and the generated\nkey/value `id`.\n\n[1]: https://npmjs.com/package/parse-messy-schedule\n\n## cal.remove(id, cb)\n\nRemove an event by its `id`.\n\n## var stream = cal.query(opts, cb)\n\nProduce a readable objectMode stream of events in the range given in `opts`:\n\n* `opts.gt` - date instance or string\n* `opts.lt` - date instance or string\n\nEach document in the object stream:\n\n* `doc.time` - a Date instance for the event\n* `doc.value` - extra properties like a title\n* `doc.created` - when this record was created / relative to\n* `doc.key` - the id in the underlying key/value store\n\nYou can collect all of the documents with `cb(err, docs)`.\n\n# install\n\nTo get the command-line tool:\n\n```\nnpm install -g norcal\n```\n\nTo get the library:\n\n```\nnpm install norcal\n```\n\n# license\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkcreate%2Fnorcal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkcreate%2Fnorcal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkcreate%2Fnorcal/lists"}