{"id":15698323,"url":"https://github.com/clayrisser/ory-keto-client","last_synced_at":"2026-03-07T22:32:28.259Z","repository":{"id":57316381,"uuid":"164033012","full_name":"clayrisser/ory-keto-client","owner":"clayrisser","description":"Ory Keto access control client for JavaScript and TypeScript","archived":false,"fork":false,"pushed_at":"2023-11-28T07:13:23.000Z","size":660,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T01:57:18.922Z","etag":null,"topics":["access-control","client","keto","ory","rbac"],"latest_commit_sha":null,"homepage":null,"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/clayrisser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2019-01-03T23:20:54.000Z","updated_at":"2023-11-28T07:13:29.000Z","dependencies_parsed_at":"2024-10-24T03:51:29.114Z","dependency_job_id":"dbebaf71-d278-41e4-822b-ee539d3f2844","html_url":"https://github.com/clayrisser/ory-keto-client","commit_stats":null,"previous_names":["codejamninja/ory-keto-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clayrisser/ory-keto-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fory-keto-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fory-keto-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fory-keto-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fory-keto-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clayrisser","download_url":"https://codeload.github.com/clayrisser/ory-keto-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fory-keto-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30234615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: 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":["access-control","client","keto","ory","rbac"],"created_at":"2024-10-03T19:25:42.140Z","updated_at":"2026-03-07T22:32:28.239Z","avatar_url":"https://github.com/clayrisser.png","language":"TypeScript","funding_links":["https://liberapay.com/codejamninja/donate"],"categories":[],"sub_categories":[],"readme":"![](assets/ory-keto-client.png)\n# ory-keto-client\n\n[![npm](https://img.shields.io/npm/dt/ory-keto-client.svg?style=flat-square)](https://www.npmjs.com/package/ory-keto-client)\n[![GitHub](https://img.shields.io/github/license/codejamninja/ory-keto-client.svg?style=flat-square)](https://www.npmjs.com/package/ory-keto-client)\n[![npm type definitions](https://img.shields.io/npm/types/ory-keto-client.svg?style=flat-square)](https://www.npmjs.com/package/ory-keto-client)\n[![GitHub stars](https://img.shields.io/github/stars/codejamninja/ory-keto-client.svg?label=Stars\u0026style=flat-square)](https://github.com/codejamninja/ory-keto-client)\n\n\n\u003e Ory Keto access control client for JavaScript and TypeScript\n\nPlease ★ this repo if you found it useful ★ ★ ★\n\n\n## Features\n\n* compatible with typescript\n* supports multiple roles\n* supports custom policies\n\n\n## Installation\n\n```sh\nnpm install --save ory-keto-client\n```\n\n\n## Dependencies\n\n* [NodeJS](https://nodejs.org)\n\n\n## Usage\n\nImport `ory-keto-client`\n```js\nimport Keto from 'ory-keto-client';\n```\n\nCreate keto instance\n```js\nconst { env } = process;\nconst keto = new Keto(env.KETO_BASE_URL || 'http://localhost:4466');\n```\n\nCreate policy\n```js\nketo.createPolicy({\n  description: 'bob is allowed read the blog',\n  subjects: ['bob'],\n  effect: 'allow',\n  actions: ['read']\n  resources: ['blog'],\n});\n```\n\nAuthorize subject\n```js\nif (await keto.authorizeSubject('bob', 'read', 'blog')) {\n  console.log('Authorized');\n} else {\n  console.log('Not Authorized');\n}\n```\n\n\n## Support\n\nSubmit an [issue](https://github.com/codejamninja/ory-keto-client/issues/new)\n\n\n## Contributing\n\nReview the [guidelines for contributing](https://github.com/codejamninja/ory-keto-client/blob/master/CONTRIBUTING.md)\n\n\n## License\n\n[MIT License](https://github.com/codejamninja/ory-keto-client/blob/master/LICENSE)\n\n[Jam Risser](https://codejam.ninja) © 2018\n\n\n## Changelog\n\nReview the [changelog](https://github.com/codejamninja/ory-keto-client/blob/master/CHANGELOG.md)\n\n\n## Credits\n\n* [Jam Risser](https://codejam.ninja) - Author\n\n\n## Support on Liberapay\n\nA ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.\n\n[Add some fuel](https://liberapay.com/codejamninja/donate) if you'd like to keep me going!\n\n[![Liberapay receiving](https://img.shields.io/liberapay/receives/codejamninja.svg?style=flat-square)](https://liberapay.com/codejamninja/donate)\n[![Liberapay patrons](https://img.shields.io/liberapay/patrons/codejamninja.svg?style=flat-square)](https://liberapay.com/codejamninja/donate)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclayrisser%2Fory-keto-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclayrisser%2Fory-keto-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclayrisser%2Fory-keto-client/lists"}