{"id":13559178,"url":"https://github.com/legastero/stanza","last_synced_at":"2025-05-13T17:14:10.885Z","repository":{"id":5271036,"uuid":"6449654","full_name":"legastero/stanza","owner":"legastero","description":"Modern XMPP, with a JSON API","archived":false,"fork":false,"pushed_at":"2025-03-04T03:09:05.000Z","size":5373,"stargazers_count":1237,"open_issues_count":7,"forks_count":254,"subscribers_count":63,"default_branch":"master","last_synced_at":"2025-05-10T11:43:34.233Z","etag":null,"topics":["jingle","jxt","stanza","xmpp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ryanjulian/h2bird-tracking","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/legastero.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/Supported_XEP_Formats.md","governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-10-30T00:03:12.000Z","updated_at":"2025-05-07T12:48:48.000Z","dependencies_parsed_at":"2022-08-06T18:01:17.734Z","dependency_job_id":"f3cf19cb-81be-4729-868e-f78526c6d083","html_url":"https://github.com/legastero/stanza","commit_stats":{"total_commits":1315,"total_committers":56,"mean_commits":"23.482142857142858","dds":0.09505703422053235,"last_synced_commit":"8c7435bde789f0feff40bea206b221da6662543a"},"previous_names":["legastero/stanza.io","otalk/stanza.io"],"tags_count":254,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legastero%2Fstanza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legastero%2Fstanza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legastero%2Fstanza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legastero%2Fstanza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/legastero","download_url":"https://codeload.github.com/legastero/stanza/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253509796,"owners_count":21919590,"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":["jingle","jxt","stanza","xmpp"],"created_at":"2024-08-01T12:05:24.317Z","updated_at":"2025-05-13T17:14:05.839Z","avatar_url":"https://github.com/legastero.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","others"],"sub_categories":[],"readme":"# StanzaJS\n\n**Modern XMPP, with a JSON API.**\n\n\u003chr /\u003e\n\u003cp\u003e\n\u003ca href=\"https://npmjs.org/package/stanza\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/stanza.svg?style=flat\" alt=\"npm\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://stanzajs.org/discuss/logs/\"\u003e\u003cimg src=\"https://img.shields.io/badge/endpoint.svg?url=https://stanzajs.org/discuss/badge.json\u0026style=flat\" alt=\"chat\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## What is this?\n\nStanzaJS is a JavaScript/TypeScript library for using modern XMPP, and it does that by exposing everything as JSON. Unless you insist, you have no need to ever see or touch any XML when using StanzaJS.\n\n## Installing\n\n```sh\nnpm install stanza\n```\n\n## Echo Client Demo\n\n```javascript\nimport * as XMPP from 'stanza';\n\nconst client = XMPP.createClient({\n    jid: 'echobot@example.com',\n    password: 'hunter2',\n\n    // If you have a .well-known/host-meta.json file for your\n    // domain, the connection transport config can be skipped.\n    transports: {\n        websocket: 'wss://example.com:5281/xmpp-websocket',\n        bosh: 'https://example.com:5281/http-bind'\n    }\n});\n\nclient.on('session:started', () =\u003e {\n    client.getRoster();\n    client.sendPresence();\n});\n\nclient.on('chat', msg =\u003e {\n    client.sendMessage({\n        to: msg.from,\n        body: 'You sent: ' + msg.body\n    });\n});\n\nclient.connect();\n```\n\n## Documentation\n\n-   API Reference\n    -   [Configuring](docs/Configuring.md)\n    -   [Events](docs/Events.md)\n    -   [Client Methods](docs/Reference.md)\n-   [JXT: JSON/XML Translation](docs/jxt/README.md)\n    -   [Working with Languages](docs/jxt/Language.md)\n    -   [Field Definition Types](docs/jxt/FieldTypes.md)\n-   [Supported XEP Formats](docs/Supported_XEP_Formats.md)\n-   [Creating Plugins](docs/Create_Plugin.md)\n-   [Using with React Native](docs/React_Native.md)\n-   [Using PubSub](docs/Using_PubSub.md)\n-   [Using Stream Management](docs/Using_Stream_Management.md)\n\n## Discussion\n\nMUC Room: [discuss@stanzajs.org](https://stanzajs.org/discuss/logs) / [Logs](https://stanzajs.org/discuss/logs)\n\n## Recommended Modules\n\nThese are some additional modules that are highly recommended for use with StanzaJS:\n\n| Name                                                       | Description                                                                      | Source                                           |\n| ---------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------ |\n| [staydown](https://npmjs.org/package/staydown)             | Render helper that keeps an element scrolled to the bottom based on user intent. | [Source](https://github.com/fritzy/staydown)     |\n| [webrtc-adapter](https://npmjs.org/package/webrtc-adapter) | Shims browsers to provide a consistent WebRTC API.                               | [Source](https://github.com/webrtchacks/adapter) |\n\n## License\n\n[MIT](./LICENSE.md)\n\nPortions of StanzaJS are derived from prior works. [See NOTICE file for details.](./NOTICE.md)\n\n## Created By\n\nIf you like this, follow [@lancestout](http://twitter.com/lancestout) on Twitter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegastero%2Fstanza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegastero%2Fstanza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegastero%2Fstanza/lists"}