{"id":15064667,"url":"https://github.com/darraghoriordan/nest-backend-libs","last_synced_at":"2026-01-17T06:26:48.395Z","repository":{"id":181355496,"uuid":"417427026","full_name":"darraghoriordan/nest-backend-libs","owner":"darraghoriordan","description":"A collection of nest modules for building backends faster","archived":false,"fork":false,"pushed_at":"2026-01-11T21:36:18.000Z","size":3009,"stargazers_count":15,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T01:18:09.051Z","etag":null,"topics":["nestjs","nestjs-module"],"latest_commit_sha":null,"homepage":"https://usemiller.dev","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/darraghoriordan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2021-10-15T08:35:58.000Z","updated_at":"2026-01-11T15:42:17.000Z","dependencies_parsed_at":"2026-01-03T23:09:18.120Z","dependency_job_id":null,"html_url":"https://github.com/darraghoriordan/nest-backend-libs","commit_stats":null,"previous_names":["darraghoriordan/nest-backend-libs"],"tags_count":327,"template":false,"template_full_name":null,"purl":"pkg:github/darraghoriordan/nest-backend-libs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darraghoriordan%2Fnest-backend-libs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darraghoriordan%2Fnest-backend-libs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darraghoriordan%2Fnest-backend-libs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darraghoriordan%2Fnest-backend-libs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darraghoriordan","download_url":"https://codeload.github.com/darraghoriordan/nest-backend-libs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darraghoriordan%2Fnest-backend-libs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["nestjs","nestjs-module"],"created_at":"2024-09-25T00:24:05.788Z","updated_at":"2026-01-17T06:26:48.375Z","avatar_url":"https://github.com/darraghoriordan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nest-backend-libs\n\nNest backend libraries is a set of NestJS modules that accelerate product builds with the NestJS framework.\n\nThis is the code that powers the backend for [Miller Start website](https://usemiller.dev) and some other apps I run.\n\nYou can see how this library is used in a NestJS application on GitHub as [use-miller](https://github.com/darraghoriordan/use-miller).\n\n## Modules used in most applications\n\nThe library includes the following modules that can be imported into your NestJS application. They are mostly dependant on each other so you should import them all. But they are things that are common to most applications so it makes sense to have them together in this library if you use this stack.\n\n-   Authorization\n-   Auth0 for authentication\n-   Configuration\n-   Postgres + typeorm\n-   SQLite + typeorm\n-   health checks\n-   invitations\n-   logging\n-   organisations\n-   subscriptions\n-   payments (Stripe but should work with any)\n-   CLI (e.g. for running stable diffusion)\n\n## Modules with no dependencies\n\n-   Open API\n\n## Stripe Module Notes\n\nA module for integrating stripe into your nest application.\n\n### Default functionality\n\nWebhook handling into a queue is automatically added to the module\nA controller to generate a customer portal session for authenticated users is added to the module\n\n### You must manually add the following to your own module\n\nA controller to create a checkout session for either Authenticated or Unauthenticated users (your choice if you want your front end app to force users to auth or not)\n\nA handler for the webhook queue events. You can see an example `StripeQueuedEventHandler` in Miller but you will probably want to do different actions for your customers.\n\n### Env vars\n\nSTRIPE_ACCESS_TOKEN\nWhy: To create stripe sessions using the api\nWhere: https://dashboard.stripe.com/apikeys\n\nSTRIPE_WEBHOOK_VERIFICATION_KEY\nWhy: To verify the webhook signature\nWhere: https://dashboard.stripe.com/apikeys\n\nSTRIPE_REDIRECTS_BASE_URL\nWhy: To securely redirect the user to the correct website after checkout we don't use a full url\nin the request object, only a path which is combined with this base url\nWhere: your frontend configuration\n\n### Testing\n\nhttps://stripe.com/docs/webhooks/test\n\n```bash\nbrew install stripe/stripe-cli/stripe\nstripe login\n# setup webhook forwarding - change port to your BACKEND port\n stripe listen --forward-to localhost:34522/payments/stripe/webhook-receiver\n\n# now you can test webhooks\n\n# if you like you can trigger a test webhook\n stripe trigger checkout.session.completed\n stripe trigger payment_intent.succeeded\n```\n\n## Testing with local nest-back-end-libs\n\n```bash\npnpm add ../../../nest-backend-libs --force\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarraghoriordan%2Fnest-backend-libs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarraghoriordan%2Fnest-backend-libs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarraghoriordan%2Fnest-backend-libs/lists"}