{"id":27948412,"url":"https://github.com/twilio-labs/sample-conversations-masked-numbers","last_synced_at":"2026-03-09T22:03:30.126Z","repository":{"id":40340458,"uuid":"232168048","full_name":"twilio-labs/sample-conversations-masked-numbers","owner":"twilio-labs","description":"Masked Phone Numbers over SMS with Conversations","archived":false,"fork":false,"pushed_at":"2024-10-08T22:15:29.000Z","size":1246,"stargazers_count":18,"open_issues_count":23,"forks_count":5,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-07T14:58:20.530Z","etag":null,"topics":["code-exchange","nodejs","sms","twilio","twilio-conversations"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/twilio-labs.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}},"created_at":"2020-01-06T19:14:44.000Z","updated_at":"2025-03-11T17:50:11.000Z","dependencies_parsed_at":"2025-05-07T14:58:26.745Z","dependency_job_id":"39c8bda0-38f7-4388-99c4-2e306b3cd5b6","html_url":"https://github.com/twilio-labs/sample-conversations-masked-numbers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"twilio-labs/sample-template-nodejs","purl":"pkg:github/twilio-labs/sample-conversations-masked-numbers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fsample-conversations-masked-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fsample-conversations-masked-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fsample-conversations-masked-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fsample-conversations-masked-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twilio-labs","download_url":"https://codeload.github.com/twilio-labs/sample-conversations-masked-numbers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fsample-conversations-masked-numbers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"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":["code-exchange","nodejs","sms","twilio","twilio-conversations"],"created_at":"2025-05-07T14:58:17.776Z","updated_at":"2026-03-09T22:03:30.107Z","avatar_url":"https://github.com/twilio-labs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca  href=\"https://www.twilio.com\"\u003e\n\u003cimg  src=\"https://static0.twilio.com/marketing/bundles/marketing/img/logos/wordmark-red.svg\"  alt=\"Twilio\"  width=\"250\"  /\u003e\n\u003c/a\u003e\n \n# Masked Phone Numbers over SMS with Conversations\n\n[![Actions Status](https://github.com/twilio-labs/sample-conversations-masked-numbers/workflows/Node%20CI/badge.svg)](https://github.com/twilio-labs/sample-appointment-reminders/actions)\n\n## About\n\nTwilio Conversations allows you to build virtual spaces (\"conversations\") to communicate across multiple channels.\n\nThis application shows how to add multiple external phone numbers to a Twilio Conversation and track their activity.\n\nImplementations in other languages:\n\n| .NET | Java | Python | PHP | Ruby |\n| :--- | :--- | :----- | :-- | :--- |\n| TBD  | TBD  | TBD    | TBD | TBD  |\n\n### How it works\n\nThis application creates a single conversation and provides a page to manage phone numbers in the conversation.\nUsing a webhook it tracks the activity of every phone number in the conversation. When a phone number is idle\nfor longer than its expiration time it's removed from the conversation.\n\n## Features\n\n- Node.js web server using [Express.js](https://npm.im/express)\n- Small JSON database using [lowdb](https://github.com/typicode/lowdb).\n- User interface to add phone numbers to a [Twilio Conversation](https://www.twilio.com/conversations)\n- Async task to detect and remove inactive phone numbers.\n- Unit tests using [`mocha`](https://npm.im/mocha) and [`chai`](https://npm.im/chai)\n- [Automated CI testing using GitHub Actions](/.github/workflows/nodejs.yml)\n- One click deploy buttons for Heroku and Glitch\n\n## Set up\n\n### Requirements\n\n- [Node.js](https://nodejs.org/)\n- A Twilio account - [sign up](https://www.twilio.com/try-twilio)\n\n### Twilio Account Settings\n\nThis application should give you a ready-made starting point for writing your\nown conversations application. Before we begin, we need to collect\nall the config values we need to run the application:\n\n| Config\u0026nbsp;Value | Description                                                                                                                                                  |\n| :---------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Account\u0026nbsp;Sid  | Your primary Twilio account identifier - find this [in the Console](https://www.twilio.com/console).                                                         |\n| Auth\u0026nbsp;Token   | Used to authenticate - [just like the above, you'll find this here](https://www.twilio.com/console).                                                         |\n| Phone\u0026nbsp;number | A Twilio phone number in [E.164 format](https://en.wikipedia.org/wiki/E.164) - you can [get one here](https://www.twilio.com/console/phone-numbers/incoming) |\n\n### Local development\n\nAfter the above requirements have been met:\n\n1. Clone this repository and `cd` into it\n\n    ```bash\n    git clone git@github.com:twilio-labs/sample-conversations-masked-numbers.git\n    cd sample-conversations-masked-numbers\n    ```\n\n1. Install dependencies\n\n    ```bash\n    npm install\n    ```\n\n1. Set your environment variables\n\n    ```bash\n    npm run setup\n    ```\n\n    See [Twilio Account Settings](#twilio-account-settings) to locate the necessary environment variables.\n\n1. Run the application\n\n    ```bash\n    npm start\n    ```\n\n    Alternatively, you can use this command to start the server in development mode. It will reload whenever you change any files.\n\n    ```bash\n    npm run dev\n    ```\n\n    Your application is now accessible at [http://localhost:3000](http://localhost:3000/)\n\n1. Make the application visible from the outside world.\n\n    Your application needs to be accessible in a public internet address for Twilio to be able to connect with it. You can do that in different ways, [deploying the app to a public provider](#cloud-deployment) or using [ngrok](https://ngrok.com/) to create a tunnel to your local server.\n    \n    If you have ngrok installed to open a tunnel to you local server run the following command\n    ```\n    ngrok http 3000\n    ```\n    \n    Now your application should be available in a url like:\n    ```\n    https://\u003cunique_id\u003e.ngrok.io/\n    ```\n\nThat's it! Now you can start adding phone numbers to the conversation.\n\n\n### Tests\n\nYou can run the tests locally by typing:\n\n```bash\nnpm test\n```\n\n### Cloud deployment\n\nAdditionally to trying out this application locally, you can deploy it to a variety of host services. Here is a small selection of them.\n\nPlease be aware that some of these might charge you for the usage or might make the source code for this application visible to the public. When in doubt research the respective hosting service first.\n\n| Service                           |                                                                                                                                                                                                                           |\n| :-------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| [Heroku](https://www.heroku.com/) | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/twilio-labs/sample-conversations-masked-numbers/tree/master)                                                                                                                                       |\n| [Glitch](https://glitch.com)      | [![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/clone-from-repo?REPO_URL=https://github.com/twilio-labs/sample-conversations-masked-numbers.git) |\n\n## Resources\n\n- [Twilio Conversation Quickstart](https://www.twilio.com/docs/conversations/quickstart)\n- [Create a conversation with the API](https://www.twilio.com/docs/conversations/api/conversation-resource)\n- [Add participants to a conversation with the API](https://www.twilio.com/docs/conversations/api/conversation-participant-resource)\n\n## Contributing\n\nThis application is open source and welcomes contributions. All contributions are subject to our [Code of Conduct](https://github.com/twilio-labs/.github/blob/master/CODE_OF_CONDUCT.md).\n\n[Visit the project on GitHub](https://github.com/twilio-labs/sample-template-nodejs)\n\n## License\n\n[MIT](http://www.opensource.org/licenses/mit-license.html)\n\n## Disclaimer\n\nNo warranty expressed or implied. Software is as is.\n\n[twilio]: https://www.twilio.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilio-labs%2Fsample-conversations-masked-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwilio-labs%2Fsample-conversations-masked-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilio-labs%2Fsample-conversations-masked-numbers/lists"}