{"id":27715831,"url":"https://github.com/lkaric/nestjs-twilio","last_synced_at":"2026-03-05T09:32:19.262Z","repository":{"id":42197049,"uuid":"296306165","full_name":"lkaric/nestjs-twilio","owner":"lkaric","description":"Injectable Twilio client for Nestjs.","archived":false,"fork":false,"pushed_at":"2025-05-22T04:44:15.000Z","size":591,"stargazers_count":47,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T20:14:41.086Z","etag":null,"topics":["hacktoberfest","nestjs","nodejs","twilio","twilio-api","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nestjs-twilio","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/lkaric.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/rejvban"]}},"created_at":"2020-09-17T11:27:21.000Z","updated_at":"2025-08-22T14:21:01.000Z","dependencies_parsed_at":"2023-07-24T21:51:09.060Z","dependency_job_id":"57b3f0b4-4040-441c-8fb7-0cbd73c40f38","html_url":"https://github.com/lkaric/nestjs-twilio","commit_stats":null,"previous_names":["rejvban/nestjs-twilio"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/lkaric/nestjs-twilio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkaric%2Fnestjs-twilio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkaric%2Fnestjs-twilio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkaric%2Fnestjs-twilio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkaric%2Fnestjs-twilio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkaric","download_url":"https://codeload.github.com/lkaric/nestjs-twilio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkaric%2Fnestjs-twilio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"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":["hacktoberfest","nestjs","nodejs","twilio","twilio-api","typescript"],"created_at":"2025-04-27T01:32:57.594Z","updated_at":"2026-03-05T09:32:19.198Z","avatar_url":"https://github.com/lkaric.png","language":"TypeScript","funding_links":["https://www.paypal.me/rejvban"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003e\n    nestjs-twilio\n  \u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://avatars1.githubusercontent.com/u/43827489?s=400\u0026u=45ac0ac47d40b6d8f277c96bdf00244c10508aef\u0026v=4\"/\u003e\n  \u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    Injectable Twilio client for \u003ca href=\"https://nestjs.com/\"\u003eNestjs\u003c/a\u003e.\n  \u003c/p\u003e\n\u003c/p\u003e\n\n[![npm version](https://img.shields.io/npm/v/nestjs-twilio)](https://www.npmjs.com/package/nestjs-twilio)\n[![miniziped size](https://badgen.net/bundlephobia/minzip/nestjs-twilio)](https://bundlephobia.com/result?p=nestjs-twilio)\n[![tree shaking](https://badgen.net/bundlephobia/tree-shaking/react-colorful)](https://github.com/lkaric/nestjs-twilio)\n[![MIT licensed](https://img.shields.io/github/license/rejvban/nestjs-twilio)](https://raw.githubusercontent.com/lkaric/nestjs-twilio/master/LICENSE)\n\nImplementing the `TwilioModule` from this package you gain access to Twilio client through dependency injection with minimal setup.\n\n## Instalation\n\n```bash\n$ npm install --save nestjs-twilio\n```\n\n```bash\n$ yarn add nestjs-twilio\n```\n\n## Getting Started\n\nTo use Twilio client we need to register module for example in app.module.ts\n\n```typescript\nimport { TwilioModule } from 'nestjs-twilio';\n\n@Module({\n  imports: [\n    TwilioModule.forRoot({\n      accountSid: process.env.TWILIO_ACCOUNT_SID,\n      authToken: process.env.TWILIO_AUTH_TOKEN,\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\nIf you are using the `@nestjs/config package` from nest, you can use the `ConfigModule` using the `registerAsync()` function to inject your environment variables like this in your custom module:\n\n```typescript\nimport { TwilioModule } from 'nestjs-twilio';\n\n@Module({\n  imports: [\n    TwilioModule.forRootAsync({\n      imports: [ConfigModule],\n      useFactory: (cfg: ConfigService) =\u003e ({\n        accountSid: cfg.get('TWILIO_ACCOUNT_SID'),\n        authToken: cfg.get('TWILIO_AUTH_TOKEN'),\n      }),\n      inject: [ConfigService],\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\nExample usage in service.\n\n```typescript\nimport { InjectTwilio, TwilioService } from 'nestjs-twilio';\n\n@Injectable()\nexport class AppService {\n  public constructor(private readonly twilioService: TwilioService) {}\n\n  async sendSMS() {\n    return this.twilioService.client.messages.create({\n      body: 'SMS Body, sent to the phone!',\n      from: TWILIO_PHONE_NUMBER,\n      to: TARGET_PHONE_NUMBER,\n    });\n  }\n}\n```\n\nFor full Client API see Twilio Node SDK reference [here](https://www.twilio.com/docs/libraries/node)\n\n## Testing\n\nExample of testing can be found [here](https://github.com/lkaric/nestjs-twilio/blob/master/lib/__tests__/twilio.module.test.ts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkaric%2Fnestjs-twilio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkaric%2Fnestjs-twilio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkaric%2Fnestjs-twilio/lists"}