{"id":28458138,"url":"https://github.com/9d8dev/twilio-nextjs","last_synced_at":"2025-07-02T05:31:10.287Z","repository":{"id":173400950,"uuid":"650302786","full_name":"9d8dev/twilio-nextjs","owner":"9d8dev","description":"A template for using Twilio 2-step text verification with NextJS","archived":false,"fork":false,"pushed_at":"2024-01-02T17:28:50.000Z","size":56,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-01T02:49:39.297Z","etag":null,"topics":["2-step-verification","app-router-nextjs","nextjs","twilio","twilio-api","twilio-verify"],"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/9d8dev.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}},"created_at":"2023-06-06T19:29:35.000Z","updated_at":"2024-07-02T15:13:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"c45eea6a-5467-42cc-86ff-f1fb18e6f77e","html_url":"https://github.com/9d8dev/twilio-nextjs","commit_stats":null,"previous_names":["by9d8/twilio-next-template","9d8dev/twilio-next-template","9d8dev/twilio-nextjs"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/9d8dev/twilio-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d8dev%2Ftwilio-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d8dev%2Ftwilio-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d8dev%2Ftwilio-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d8dev%2Ftwilio-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9d8dev","download_url":"https://codeload.github.com/9d8dev/twilio-nextjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d8dev%2Ftwilio-nextjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263081160,"owners_count":23410817,"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":["2-step-verification","app-router-nextjs","nextjs","twilio","twilio-api","twilio-verify"],"created_at":"2025-06-07T00:10:03.601Z","updated_at":"2025-07-02T05:31:10.274Z","avatar_url":"https://github.com/9d8dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilio NextJS Template for 2-step Verification\n\n\u003cimg width=\"922\" alt=\"Screenshot 2023-06-07 at 11 17 46 AM\" src=\"https://github.com/by9d8/twilio-next-template/assets/95453018/6285a1b4-6c94-4326-a286-2fe2d48b6685\"\u003e\n\u003cimg width=\"867\" alt=\"Screenshot 2023-06-07 at 11 17 53 AM\" src=\"https://github.com/by9d8/twilio-next-template/assets/95453018/d405d25c-865f-4b12-ab07-12cc94f0f935\"\u003e\n\u003cimg width=\"798\" alt=\"Screenshot 2023-06-07 at 11 18 09 AM\" src=\"https://github.com/by9d8/twilio-next-template/assets/95453018/0a88afcc-3fab-4355-b259-6c8bccbd578d\"\u003e\n\n## Overview\n\nThe `twilio-next-template` is a simple and efficient way to get started with Twilio's two-step text verification using the NextJS App Router and Twilio's API. It is primarily built with JavaScript (96.3%) and CSS (3.7%). This application was created to verify phone numbers for user sign-ups to mitigate spam. This project uses [DaisyUI](https://daisyui.com/) and [Sonner](https://sonner.emilkowal.ski/) (for toasts) for UI elements. It is developed and maintained by 9d8, a development studio by Cameron Youngblood and Bridger Tower.\n\n## Getting Started\n\nTo get started with the `twilio-next-template`:\n\n1. Clone the repository to your local machine\n2. Run the following commands:\n\n   ```bash\n   npm i\n   ```\n3. Add a `.env` file with your own API keys from Twilio. To find Twilio API keys, navigate to the [Twilio Console](https://twilio.com/console). You’ll be able to find your Account SID and Auth Token on the main dashboard of the console. Copy these values and paste them into your `.env` file as the values for TWILIO_SID and TWILIO_AUTH_TOKEN respectively. You will also need to create a \"[verify service](https://www.twilio.com/console/verify/services)\" in the Twilio console. Find the service ID of your Twilio service to paste into VERIFICATION_SID. Example names of the ` env` variables are located in the `.env.example` file in the root directory of this repository.\n4. Next, run the following command:\n   ```bash\n   npm run dev\n   ```\nThen open `http://localhost:3000` with your browser to see the result.\n\n## Structure\n\nThe `twilio-next-template` application consists of the following primary directories:\n\n- `app`: Contains the main application code including:\n  - `api/twilio/route.js`: The API route for managing text code verification. Includes two route handlers for `GET` and `POST` requests.\n  - `globals.css`: Contains the global CSS styles for the application.\n  - `layout.js`: Contains the layout components for the application.\n  - `page.js`: Contains the main page components for the application.\n- `public`: Contains static files used across the application, such as SVG files for visual elements.\n\n## Contributions\n\nThis project is open for contributions. We look forward to seeing your ideas and improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file in the repository root for more information.\n\n## Contact\n\nFor more information, check out the creators at [9d8.dev](https://9d8.dev).\nMade by 9d8, a development studio by [Cameron Youngblood](https://github.com/youngbloodcyb) and [Bridger Tower](https://github.com/brijr).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9d8dev%2Ftwilio-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9d8dev%2Ftwilio-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9d8dev%2Ftwilio-nextjs/lists"}