{"id":15061705,"url":"https://github.com/can-it/can-it","last_synced_at":"2025-04-10T09:27:53.810Z","repository":{"id":204377321,"uuid":"695461799","full_name":"can-it/can-it","owner":"can-it","description":"Access control and permission checks library based on actions and resource identification.","archived":false,"fork":false,"pushed_at":"2023-12-20T23:47:50.000Z","size":699,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-01T16:11:26.086Z","etag":null,"topics":["abac","angular","authorization","can-it","expressjs","fastify","nestjs","nx-workspace","pbac","rbac","react","typescript"],"latest_commit_sha":null,"homepage":"https://can-it.github.io/","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/can-it.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":"2023-09-23T08:56:17.000Z","updated_at":"2024-01-05T03:15:19.000Z","dependencies_parsed_at":"2023-11-08T11:34:56.591Z","dependency_job_id":"56e3f6e8-4002-4f3a-b7c9-6b5a918f55de","html_url":"https://github.com/can-it/can-it","commit_stats":{"total_commits":173,"total_committers":1,"mean_commits":173.0,"dds":0.0,"last_synced_commit":"6fd3e5ad5be96a04b091b212d4b7c501c4b5d23b"},"previous_names":["can-it/core"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-it%2Fcan-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-it%2Fcan-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-it%2Fcan-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-it%2Fcan-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/can-it","download_url":"https://codeload.github.com/can-it/can-it/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248191081,"owners_count":21062418,"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":["abac","angular","authorization","can-it","expressjs","fastify","nestjs","nx-workspace","pbac","rbac","react","typescript"],"created_at":"2024-09-24T23:23:59.257Z","updated_at":"2025-04-10T09:27:53.788Z","avatar_url":"https://github.com/can-it.png","language":"TypeScript","readme":"# can-it\n\n[Package Documentations](https://can-it.github.io/packages/core)\n## Setup Environment\nTo set up the environment, follow these steps:\n\n1. Clone this repository:\n\n    ```bash\n    git clone git@github.com:can-it/can-it.git\n    ```\n\n2. Navigate to the project directory:\n    ```bash\n    cd can-it\n    ```\n\n3. Install the required dependency packages:\n\n    ```bash\n    pnpm i\n    ```\n\n## Project Structure\n```\n📂 apps\n   └── examples  \u003c!-- Used for testing the libraries --\u003e\n📂 libs\n   ├── core\n   └── operators\n       ├── exact\n       ├── nested\n       ├── relation\n       └── ...\n```\n## Core\nYou can find the code for the core functionality in the `libs/core` folder.\n\n### Build\nTo build the core, run the following command:\n```bash\nnpx nx build core\n```\n\n### Run Tests\nTo run tests for the core, use the following command:\n```bash\nnpx nx test core\n```\n\n## Operators\nThe operators allow you to perform specific tasks. Follow the steps below to create and work with operators.\n\n### Create a New Operator\nTo create a new operator, run the following command:\n```bash\nnpx nx g @nx/js:lib operators-[name] --directory=libs/operators/[name] --publishable=true --import-path=@can-it/operators-[name]\n```\nReplace `[name]` with the desired name for your operator.\n\n### Build the Operator\nTo build the operator, use the following command:\n```bash\nnpx nx build operators-[name]\n```\nReplace `[name]` with the name of your operator.\n\n### Run Tests\nTo run tests for the operator, use the following command:\n```bash\nnpx nx test operators-[name]\n```\nReplace `[name]` with the name of your operator.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-it%2Fcan-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcan-it%2Fcan-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-it%2Fcan-it/lists"}