{"id":22085639,"url":"https://github.com/nexmo/messaging-gateway","last_synced_at":"2026-07-03T12:34:34.010Z","repository":{"id":27732577,"uuid":"115057760","full_name":"Nexmo/messaging-gateway","owner":"Nexmo","description":"API server to demo how to use Nexmo Stitch in your server-side applications","archived":false,"fork":false,"pushed_at":"2026-02-07T06:02:14.000Z","size":155,"stargazers_count":0,"open_issues_count":13,"forks_count":2,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-02-07T16:24:10.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer.nexmo.com/stitch/overview","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nexmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-12-21T23:59:42.000Z","updated_at":"2023-05-05T12:53:13.000Z","dependencies_parsed_at":"2026-02-07T08:11:47.360Z","dependency_job_id":null,"html_url":"https://github.com/Nexmo/messaging-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nexmo/messaging-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fmessaging-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fmessaging-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fmessaging-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fmessaging-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nexmo","download_url":"https://codeload.github.com/Nexmo/messaging-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fmessaging-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35086520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-01T01:15:28.165Z","updated_at":"2026-07-03T12:34:33.967Z","avatar_url":"https://github.com/Nexmo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nexmo In-App Messaging Gateway Demo\n\nAn API server to demo how to use Nexmo In-App Messaging on your server-side applications. For more info visit our [developer preview site.](https://ea.developer.nexmo.com/conversation/overview)\n\n\u003c!-- Remix Button --\u003e\n Remix a sample project we set up on Glitch:\n\u003ca href=\"https://glitch.com/edit/#!/remix/nexmo-in-app-demo\"\u003e\n\n  \u003cimg src=\"https://cdn.glitch.com/2bdfb3f8-05ef-4035-a06e-2043962a3a13%2Fremix%402x.png?1513093958726\" alt=\"remix button\" aria-label=\"remix\" height=\"33\"\u003e\n\u003c/a\u003e\n\n## Prerequisites\n\n### Install the Nexmo CLI\n\n* Ensure you have [Node.JS](https://nodejs.org/) installed\n* Create a free Nexmo account - [signup](https://dashboard.nexmo.com)\n* Install the Nexmo CLI:\n\n```bash\n$ npm install -g nexmo-cli@beta\n```\n\nSetup the CLI to use your Nexmo API Key and API Secret. You can get these from the [setting page](https://dashboard.nexmo.com/settings) in the Nexmo Dashboard.\n\n```bash\n$ nexmo setup api_key api_secret\n```\n\n### Create an Application\n\nCreate an application named `My Conversation Application` and store the returned private key as `private.key` within your current working directory.\n\n```sh\n$ nexmo app:create \"My Conversation Application\" http://example.com http://example.com --type=rtc --keyfile=private.key\n```\n\n## Running the demo\n\n1. Clone or download this repo\n1. Create a .env file using the env.example template\n1. Input your API Key, API Secret, and application ID\n1. Ensure the `private.key` file from the \"Create an Application\" is in your current working directory (See `private.key.example`)\n1. Install the node modules `$ npm install`\n1. Start the app: `$ DEBUG=myapp:* npm start`\n1. The app should be running on `localhost:3000`\n\n## Start chatting!\n\n1. Create a user or two\n```sh\ncurl --request POST \\\n  --url http://localhost:3000/users \\\n  --header 'content-type: application/json' \\\n  --data '{\n\t\"username\": \"user2\",\n\t\"admin\": true\n}'\n```\n\n1. Create a conversation via the gateway demo API\n```sh\ncurl --request POST \\\n  --url http://localhost:3000/conversations \\\n  --header 'content-type: application/json' \\\n  --data '{\"displayName\": \"My Chat\"}'\n```\n\n1. Join the user to the conversation. Remember to replace the `conversationId` and `userId` with IDs from the two previous steps.\n```sh\ncurl --request PUT \\\n  --url http://localhost:3000/conversations \\\n  --header 'content-type: application/json' \\\n  --data '{\n\t\"conversationId\": \"CON-7cda3a42-8f7f-44c6-a4ba-aa23be506397\",\n\t\"userId\": \"USR-ca160eee-836a-4ec7-8ac4-317aefe8d5d3\",\n\t\"action\": \"join\"\n}'\n```\n\n1. Verify the app is running by visiting `localhost:3000/users` You should see a json object containing the user(s) you created in step 1.\n\n## What's Next\n\nUse the [Android Messaging Demo app](https://github.com/Nexmo/messaging-demo-android) and the [JavaScript Messaging Demo app](https://github.com/Nexmo/messaging-demo-js) to try out Nexmo In-App Messaging across web and Android platforms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fmessaging-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexmo%2Fmessaging-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fmessaging-gateway/lists"}