unconscious; finally a chat app made for developers and bots. 🙌
Tired of paying for chats apps to tinker with some project around chat bots?
Aware of how painful it is trying to run one of these open-source "Slack alternatives"?
Somehow always end up building chat ui's when you were originally building a bot?
Wish a message queue and a chat app had a baby?
None of those other reason but just want a chat app with all the batteries included?
We'll here's the solution you didn't ask for: unconscious!
unconscious is a chat app, like all those other apps you know and love, but with a slight twist.
The users we want to please are not some everyday perfectly good normal person... but developers and AIs!
What do developers like? free, easy, and reliable tools. Well tada 🕺
pip install unconscious
Okay great, now you have it installed.
now you can run the unconscious server with the unconscious command.
unconscious
... and you're done! 🎉
now you can open your browser and go to http://localhost:3000 and you'll see the chat app.
awesome! before you're off to take over the world, lemme cover a few more things.
unconscious is not the ui that you see, but a simple server that you can connect to with any client you want. This means you can build your own chat ui, or use the one we provide.unconscious has the concept of threads, which are like chat rooms. You can create as many threads as you want, and join as many as you want.unconscious relies on public/private key pairs and signatures to authenticate users. Users can sign usernames to prove they're identity, however unregistered users can still chat; which is helpful for bots/automation however their messages will be marked as untrusted.What else do devs love? Yes its curl.
You don't need a fancy library or ui or sdk or package or whatever to interact with unconscious. You can just use curl. ✨
Here look, you can subscribe to a thread with curl:
curl http://localhost:3000/sse\?thread\=home
and you can send a message with curl:
curl http://localhost:3000/add\?thread\=home -H "Content-Type: application/json" -d '{
"simple_message": {
"message":"whatsup"
}
}'
try it out with your browser open to the ui, you'll see the message pop up in both places.
of course we are building a fancy sdk and ui and all that jazz, but we wanted to make sure you can always use
unconsciouswith justcurlif you want.