{"id":16675833,"url":"https://github.com/henryruhs/ngx-crud","last_synced_at":"2025-10-28T17:34:50.971Z","repository":{"id":38418289,"uuid":"144494526","full_name":"henryruhs/ngx-crud","owner":"henryruhs","description":"CRUD services in Angular with effortless aborting, caching and observing","archived":false,"fork":false,"pushed_at":"2024-09-19T21:37:20.000Z","size":344,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-13T13:07:57.477Z","etag":null,"topics":["aborting","angular","caching","crud","http","observing"],"latest_commit_sha":null,"homepage":"https://ngx-crud.com","language":"TypeScript","has_issues":true,"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/henryruhs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"henryruhs","custom":["buymeacoffee.com/henryruhs","paypal.me/henryruhs"]}},"created_at":"2018-08-12T19:21:29.000Z","updated_at":"2024-10-10T08:14:49.000Z","dependencies_parsed_at":"2023-02-10T14:16:59.080Z","dependency_job_id":"fe06b5bf-160f-4136-a412-0a760d32a581","html_url":"https://github.com/henryruhs/ngx-crud","commit_stats":{"total_commits":355,"total_committers":3,"mean_commits":"118.33333333333333","dds":"0.16338028169014085","last_synced_commit":"ae851c6baf5ebe1c6910fd36af1bd2ed26895de9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryruhs%2Fngx-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryruhs%2Fngx-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryruhs%2Fngx-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryruhs%2Fngx-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henryruhs","download_url":"https://codeload.github.com/henryruhs/ngx-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221669317,"owners_count":16860853,"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":["aborting","angular","caching","crud","http","observing"],"created_at":"2024-10-12T13:08:05.761Z","updated_at":"2025-10-28T17:34:50.913Z","avatar_url":"https://github.com/henryruhs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/henryruhs","buymeacoffee.com/henryruhs","paypal.me/henryruhs"],"categories":["State Management"],"sub_categories":["Other State Libraries"],"readme":"NGX CRUD\n========\n\n\u003e CRUD services in Angular with effortless aborting, caching and observing.\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/henryruhs/ngx-crud/ci.yml.svg?branch=master)](https://github.com/henryruhs/ngx-crud/actions?query=workflow:ci)\n[![Coverage Status](https://img.shields.io/coveralls/henryruhs/ngx-crud.svg)](https://coveralls.io/r/henryruhs/ngx-crud)\n[![NPM Version](https://img.shields.io/npm/v/ngx-crud.svg)](https://npmjs.com/package/ngx-crud)\n[![License](https://img.shields.io/npm/l/ngx-crud.svg)](https://npmjs.com/package/ngx-crud)\n\n\nInstallation\n------------\n\n```\nnpm install ngx-crud\n```\n\n\nSetup\n-----\n\nImport the `CrudModule` and `provideHttpClient` inside your `AppModule`:\n\n```typescript\nimport { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\nimport { CrudModule } from 'ngx-crud';\n\n@NgModule(\n{\n\timports:\n\t[\n\t\tCrudModule\n\t],\n\tproviders:\n\t[\n\t\tprovideHttpClient(withInterceptorsFromDi())\n\t]\n})\nexport class AppModule\n{\n}\n```\n\n\nUsage\n-----\n\nExtend the `ExampleService` from the `CrudService`:\n\n```typescript\nimport { Injectable } from '@angular/core';\nimport { CrudService } from 'ngx-crud';\nimport { RequestBody, ResponseBody } from './example.interface';\n\nimport { environment } from '@environments';\n\n@Injectable()\n@ApiUrl(environment.apiUrl)\n@ApiRoute(environment.apiRoutes.example)\nexport class ExampleService extends CrudService\u003cRequestBody, ResponseBody\u003e\n{\n}\n```\n\nUse the HTTP operations as needed:\n\n```typescript\nexampleService.create(body, options);\nexampleService.read(id, options);\nexampleService.find(options);\nexampleService.update(id, body, options);\nexampleService.patch(id, body, options);\nexampleService.delete(id, options);\nexampleService.custom(method, options);\n```\n\n\nDocumentation\n-------------\n\nRead the [documentation](https://henryruhs.gitbook.io/ngx-crud) for a deep dive.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryruhs%2Fngx-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryruhs%2Fngx-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryruhs%2Fngx-crud/lists"}