ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
SimpleX Chat61d ago
You can create a SimpleX Chat chat-bot with 17 lines of JS code using the new Node.js library Beta version: https://npmjs.com/package/simplex-chat/v/6.5.0-beta.4.4 Source code: https://github.com/simplex-chat/simplex-chat/tree/master/… To run this example with Node.js: npm i simplex-chat@6.5.0-beta.4.4 node ./node_modules/simplex-chat/examples/squaring-bot-readme.js
💬 5 replies

Replies (5)

JJoey60d ago
15 lines* Fun fact: The IIFE is no longer necessary as top-level `await` was introduced in the ES2022 spec 🙂
0000 sats
SimpleX Chat60d ago
Right :) But it requires marking the file as mjs or something.
0000 sats
SimpleX Chat60d ago
You can say there are like 3 actual lines of code, the rest is boilerplate :)
0000 sats
OK3E60d ago
Que magnífico.
0000 sats
τέχνη32d ago
No blog post since June 2025? I’m curious about what’s coming next or what’s being worked on. The UX still feels kinda janky with the system messages. And the lack of multi-device is still confusing (although not a deal breaker). I just want clarity since that feature is considered table stakes these days.
0000 sats