{"id":31259960,"url":"https://github.com/ziv/nestjs-rest","last_synced_at":"2026-02-03T05:25:07.758Z","repository":{"id":305306540,"uuid":"1022567538","full_name":"ziv/nestjs-rest","owner":"ziv","description":"JSON:API integration with Nest.JS","archived":false,"fork":false,"pushed_at":"2026-01-27T17:41:51.000Z","size":537,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T01:48:51.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ziv.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-19T10:58:17.000Z","updated_at":"2026-01-27T17:46:56.000Z","dependencies_parsed_at":"2025-07-19T14:19:19.670Z","dependency_job_id":"0caebaa3-2a83-46fb-887d-28a92c42dbba","html_url":"https://github.com/ziv/nestjs-rest","commit_stats":null,"previous_names":["ziv/nestjs-rest"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/ziv/nestjs-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fnestjs-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fnestjs-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fnestjs-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fnestjs-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziv","download_url":"https://codeload.github.com/ziv/nestjs-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fnestjs-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29034024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-09-23T08:34:09.964Z","updated_at":"2026-02-03T05:25:07.754Z","avatar_url":"https://github.com/ziv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nestjs-rest\n\nA [`JSON:API`](https://jsonapi.org/) compliant REST controller for\n[`NestJS`](https://nestjs.com/).\n\n[![nestjs-rest release](https://github.com/ziv/nestjs-rest/actions/workflows/ci.yml/badge.svg)](https://github.com/ziv/nestjs-rest/actions/workflows/ci.yml)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n# Overview\n\nThis project bring the `JSON:API` specification to the `NestJS` framework,\nproviding zero code REST controller that supports CRUD operations, sorting,\npagination, filtering, and more using simple configurations.\n\n## Contents\n\n| Package Name                                            | Version                                                          | Description                                                                                |\n| ------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |\n| [`std-json-api`](./packages/std-json-api)               | ![NPM Version](https://img.shields.io/npm/v/std-json-api)        | Standard `JSON:API` implementation, providing the core functionality of document structure |\n| [`nestjs-rest`](./packages/nestjs-rest)                 | ![NPM Version](https://img.shields.io/npm/v/nestjs-rest)         | NestJS controller that implements the `JSON:API`                                           |\n| [`nestjs-rest-mongodb`](./packages/nestjs-rest-mongodb) | ![NPM Version](https://img.shields.io/npm/v/nestjs-rest-mongodb) | MongoDB adapter for `nestjs-rest`                                                          |\n\n## Specification\n\n`JSON:API/v1` specification is a standard for building APIs in JSON\nformat([reference](./packages/std-json-api/specs.md)).\n\n### Implementation Report\n\n| Spec                | Subject    | Status | Reference                                          |\n| ------------------- | ---------- | ------ | -------------------------------------------------- |\n| content-negotiation |            | 🚧     | https://jsonapi.org/format/#content-negotiation    |\n| document structure  |            | ✈️     | https://jsonapi.org/format/#document-structure     |\n| fetching data       |            | ✈️     | https://jsonapi.org/format/#fetching               |\n|                     | sorting    | ✈️     | https://jsonapi.org/format/#fetching-sorting       |\n|                     | pagination | ✈️     | https://jsonapi.org/format/#fetching-pagination    |\n|                     | filtering  | ✈️     | https://jsonapi.org/format/#fetching-filtering     |\n|                     | relations  | 🚧     | https://jsonapi.org/format/#fetching-relationships |\n| crud                |            | ✈️     | https://jsonapi.org/format/#crud                   |\n| query parameters    |            | ✈️     | https://jsonapi.org/format/#query-parameters       |\n| errors              |            | 🚧     | https://jsonapi.org/format/#errors                 |\n| extensions          |            | 🚧     | https://jsonapi.org/extensions/                    |\n\n### Pagination Strategies\n\nThere are two pagination strategies supported by this project:\n\n| Pagination Strategy     | Status | Description                                                                                          |\n| ----------------------- | ------ | ---------------------------------------------------------------------------------------------------- |\n| Offset-based pagination | ✈️     | Default pagination strategy using offset and limit query parameters.                                 |\n| Cursor-based pagination | ✈️     | Pagination strategy using cursor to provide a more efficient way to paginate through large datasets. |\n\n### Adapters Implementation Report\n\n| Adapter | Status | Description                                                    | Readme                                             |\n| ------- | ------ | -------------------------------------------------------------- | -------------------------------------------------- |\n| Mongodb | ✈️     | Simple (without relationships) adapter for Mongodb collection. | [readme](./packages/nestjs-rest-mongodb/readme.md) |\n\n---\n\n#### Legend\n\n    ✅ done ✈️ departed (ready for testing) 🚧 in progress 🚫 not started 🫥 not planned\n\n---\n\n# TODO\n\n- [x] Add a MongoDB adapter.\n- [x] Convert to be JSON:API compliant.\n- [ ] Add a client library.\n- [ ] Add any SQL DB adapter.\n- [ ] Add Typeorm support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziv%2Fnestjs-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziv%2Fnestjs-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziv%2Fnestjs-rest/lists"}