{"id":13725273,"url":"https://github.com/sibelius/slack-reminder-grammar","last_synced_at":"2025-05-07T17:20:19.144Z","repository":{"id":42742696,"uuid":"281644734","full_name":"sibelius/slack-reminder-grammar","owner":"sibelius","description":"Simplify Slack /reminder command grammar","archived":false,"fork":false,"pushed_at":"2023-01-06T12:12:35.000Z","size":954,"stargazers_count":9,"open_issues_count":10,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-04T13:12:18.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sibelius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-22T10:17:16.000Z","updated_at":"2024-03-04T01:17:50.000Z","dependencies_parsed_at":"2023-02-06T01:31:41.227Z","dependency_job_id":null,"html_url":"https://github.com/sibelius/slack-reminder-grammar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fslack-reminder-grammar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fslack-reminder-grammar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fslack-reminder-grammar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fslack-reminder-grammar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sibelius","download_url":"https://codeload.github.com/sibelius/slack-reminder-grammar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252922308,"owners_count":21825641,"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-08-03T01:02:18.012Z","updated_at":"2025-05-07T17:20:19.113Z","avatar_url":"https://github.com/sibelius.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Slack Reminder Grammar\n\nSimplified Slack Reminder Grammer to parse /remind commands like\n\n## Blog Post\n[Parsing Slack /remind Command](https://medium.com/@sibelius/parsing-slack-remind-command-fc3f5e4026e)\n\n## Examples\n\n```jsx\nnpx slack-reminder-grammar \"/remind @sibelius work tomorrow\"\n\n[\n  {\n    someoneChannel: { type: 'someone', value: 'sibelius' },\n    what: 'work',\n    when: 'tomorrow',\n  }\n]\n```\n\n```jsx\nnpx slack-reminder-grammar \"/remind #general party next week\"\n\n[\n  {\n    someoneChannel: { type: 'channel', value: 'general' },\n    what: 'party',\n    when: 'next week',\n  }\n]\n```\n\n## How it works?\nWe use [Nearley](https://github.com/kach/nearley) to compile our grammar written in Nearley syntax (close to EBNF)\n\nThe grammar is described at [GrammarReminderSlack](./src/GrammarReminderSlack.ne)\n\nWe compile the grammar using `nearleyc`\n\n## Other resources to learn about parsers and Nearley\n\n[Parsing Absolutely Anything in Javascript using Earley Algorithm](https://medium.com/@gajus/parsing-absolutely-anything-in-javascript-using-earley-algorithm-886edcc31e5e) by @gajus is a great start\n\n## Is this Turing complete?\nNo, and Turing completeness are not useful in all domain languages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Fslack-reminder-grammar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsibelius%2Fslack-reminder-grammar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Fslack-reminder-grammar/lists"}