{"id":26578065,"url":"https://github.com/joeriddles/nats.js-demo","last_synced_at":"2026-05-18T10:37:12.786Z","repository":{"id":283516555,"uuid":"952025298","full_name":"joeriddles/nats.js-demo","owner":"joeriddles","description":"Simple demo of nat.js with Synadia Cloud / NGS","archived":false,"fork":false,"pushed_at":"2025-03-20T16:13:29.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T23:19:00.783Z","etag":null,"topics":["nats","natsio"],"latest_commit_sha":null,"homepage":"","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/joeriddles.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}},"created_at":"2025-03-20T16:02:45.000Z","updated_at":"2025-03-20T16:13:33.000Z","dependencies_parsed_at":"2025-03-20T17:35:54.515Z","dependency_job_id":null,"html_url":"https://github.com/joeriddles/nats.js-demo","commit_stats":null,"previous_names":["joeriddles/nats.js-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeriddles/nats.js-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fnats.js-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fnats.js-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fnats.js-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fnats.js-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeriddles","download_url":"https://codeload.github.com/joeriddles/nats.js-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fnats.js-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000728,"owners_count":26082862,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["nats","natsio"],"created_at":"2025-03-23T04:19:40.767Z","updated_at":"2025-10-08T23:19:03.227Z","avatar_url":"https://github.com/joeriddles.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nats.js demo\n\nSimple demo of [nat.js](https://github.com/nats-io/nats.js/) with [Synadia Cloud / NGS](https://docs.synadia.com/cloud/faq).\n\nSetup:\n```shell\nnpm install\n```\n\nTo run:\n```shell\nnode main.mjs \u003cnats_creds_file\u003e\n```\n\nAlternatively, you can run it with the `NATS_CREDS` environment variable:\n```shell\nNATS_CREDS='...' node main.mjs\n# or even...\nNATS_CRESDS=\"$(cat \u003cnats_creds_file\u003e)\" node main.mjs\n```\n\nExpected output:\n```\nconnected: connect.ngs.global:4222\n\u003e\u003e\u003e hello world\n\u003c\u003c\u003c hello world\n---\nconnected: jetstream\ncreated stream: users\ncreated durable consumer: user-consumer\n\u003e\u003e\u003e 1 data\n\u003c\u003c\u003c 1 {\"user_id\":1}\n```\n\nSynadia Cloud — create stream:\n![Synadia Cloud stream screenshot](./static/cloud.png)\n\nDocs:\n- https://nats-io.github.io/nats.js/\n- https://github.com/nats-io/nats.js/\n- https://docs.synadia.com/cloud/faq\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeriddles%2Fnats.js-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeriddles%2Fnats.js-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeriddles%2Fnats.js-demo/lists"}