{"id":27889661,"url":"https://github.com/dryerjs/dryerjs","last_synced_at":"2025-05-05T10:25:22.430Z","repository":{"id":196322541,"uuid":"695573975","full_name":"dryerjs/dryerjs","owner":"dryerjs","description":"The fastest way to build a GraphQL API with NestJS and Mongoose","archived":false,"fork":false,"pushed_at":"2024-09-20T13:48:02.000Z","size":1568,"stargazers_count":98,"open_issues_count":7,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T22:24:19.407Z","etag":null,"topics":["graphql","mongodb","mongoose","nestjs","nodejs","opensource"],"latest_commit_sha":null,"homepage":"https://dryerjs.com","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/dryerjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":["vanpho93"],"patreon":null,"open_collective":"dryer","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-09-23T15:26:59.000Z","updated_at":"2024-10-28T16:07:59.000Z","dependencies_parsed_at":"2023-12-23T04:25:11.798Z","dependency_job_id":"bad38a5f-38c5-4840-bf81-6e0703d26b80","html_url":"https://github.com/dryerjs/dryerjs","commit_stats":{"total_commits":285,"total_committers":11,"mean_commits":25.90909090909091,"dds":"0.33684210526315794","last_synced_commit":"5ae80ee5d043168d11f1bf84029be5f6a171a6f9"},"previous_names":["vanpho93/dryerjs"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dryerjs%2Fdryerjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dryerjs%2Fdryerjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dryerjs%2Fdryerjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dryerjs%2Fdryerjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dryerjs","download_url":"https://codeload.github.com/dryerjs/dryerjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252306288,"owners_count":21726798,"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":["graphql","mongodb","mongoose","nestjs","nodejs","opensource"],"created_at":"2025-05-05T10:25:21.833Z","updated_at":"2025-05-05T10:25:22.421Z","avatar_url":"https://github.com/dryerjs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/vanpho93","https://opencollective.com/dryer","https://paypal.me/briandryerjs"],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://dryerjs.github.io/logo-light.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://dryerjs.github.io/logo-dark.png\"\u003e\n  \u003cimg alt=\"DryerJS Logo\" src=\"https://dryerjs.github.io/logo-light.png\" width=\"300px\"\u003e\n\u003c/picture\u003e\n\nDryerJS, leveraging the power of NestJS and Mongoose, automates the creation of CRUD GraphQL APIs from model declarations. It supports complex model relationships and offers extensive customization options, greatly reducing repetitive coding and enhancing development efficiency.\n\n[![codecov](https://codecov.io/gh/dryerjs/dryerjs/graph/badge.svg?token=ZQOWFCGXUK)](https://codecov.io/gh/dryerjs/dryerjs)\n[![Build Status](https://github.com/dryerjs/dryerjs/workflows/CI/badge.svg)](https://github.com/dryerjs/dryerjs/actions)\n[![Release Status](https://github.com/dryerjs/dryerjs/workflows/Release/badge.svg)](https://github.com/dryerjs/dryerjs/actions)\n[![npm](https://img.shields.io/npm/v/dryerjs?logo=npm\u0026color=success)](https://www.npmjs.com/package/dryerjs)\n[![Discord](https://img.shields.io/discord/1165841842873565264?logo=discord\u0026color=success)](https://discord.gg/mBZN86W5Fa)\n[![Paypal](https://img.shields.io/badge/Donate-PayPal-ff3f59.svg?logo=paypal\u0026color=success)](https://paypal.me/briandryerjs)\n\n## Documentation\n\nCheckout the documentation at [dryerjs.com](https://dryerjs.com) for more information.\n\n## Getting Started\n\nTo get started with DryerJS, follow these steps:\n\n1. Prepare:\n\n   ```bash\n   # init new nest project\n   npm i -g @nestjs/cli \u0026\u0026 nest new my-project \u0026\u0026 cd my-project\n   # install standard dependencies\n   npm i @nestjs/graphql @nestjs/apollo @nestjs/mongoose\n   # install peer dependencies\n   npm i dataloader class-transformer class-validator\n   # remove unrelated files\n   npm run env -- rimraf src/app.(service|controller)*\n   ```\n2. Install DryerJS:\n\n   ```bash\n   npm i dryerjs\n   ```\n\n3. Declare your first model on `src/user.ts`:\n\n   ```typescript\n   import { Definition, Property, Id, Skip, ObjectId } from 'dryerjs';\n\n   @Definition()\n   export class User {\n     @Id()\n     id: ObjectId;\n\n     @Property()\n     email: string;\n\n     @Property({ update: Skip, output: Skip })\n     password: string;\n\n     @Property()\n     name: string;\n   }\n   ```\n\n4. Import your model and DryerJSModule in AppModule with other modules inside app.module.ts:\n\n   ```typescript\n   import { Module } from '@nestjs/common';\n   import { GraphQLModule } from '@nestjs/graphql';\n   import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';\n   import { MongooseModule } from '@nestjs/mongoose';\n   import { DryerModule } from 'dryerjs';\n\n   import { User } from './user';\n\n   @Module({\n     imports: [\n       GraphQLModule.forRoot\u003cApolloDriverConfig\u003e({\n         driver: ApolloDriver,\n         autoSchemaFile: true,\n         playground: true,\n       }),\n       MongooseModule.forRoot('mongodb://127.0.0.1:27017/test'),\n       DryerModule.register({ definitions: [User] }),\n     ],\n   })\n   export class AppModule {}\n   ```\n\n5. Start server\n\n   ```bash\n   npm run start:dev\n   ```\n\n6. Open browser and go to [http://localhost:3000/graphql](http://localhost:3000/graphql) to see the GraphQL playground.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/dryerjs/dryerjs/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE file](https://github.com/dryerjs/dryerjs/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdryerjs%2Fdryerjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdryerjs%2Fdryerjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdryerjs%2Fdryerjs/lists"}