Chat.io

Open source

chat.io is a real-time chat application built with Node.js, Express, Socket.io, MongoDB and Redis, with username and social login.

GitHub stars
1.4k
Last 30 days
-1(+0%)
Last commit
7 yr ago
Repository age
10 years
Version
v1.0
Licence
MIT
Self-hosted
Yes

About Chat.io

chat.io is a sample real-time chat application. It runs on Node.js with Express, stores users and rooms in MongoDB through Mongoose, and uses Socket.io for communication between client and server, with Redis as the Socket.io adapter.

Users sign in with a username and password hashed with bcrypt, or through Facebook and Twitter using Passport. Sessions are managed with express-session and kept in MongoDB through connect-mongo. Errors and exceptions are logged with Winston. There are two schemas, users and rooms, and each room tracks the connections of users by user and socket ID.

To run it locally you need Node.js, npm and a Redis server, plus a config file with your own credentials. The README also walks through deploying to Heroku, including the Redis add-on, MongoLab setup and registering apps with Facebook and Twitter. It is MIT licensed.

Key features

  • Real-time messaging with Socket.io
  • Username and password login
  • Facebook and Twitter login
  • Passwords hashed with bcrypt
  • Redis adapter for Socket.io
  • Sessions stored in MongoDB
  • Error logging with Winston

Good fit for

  • Learning Socket.io chat architecture
  • Starting point for a chat feature
Tags
chat
realtime
nodejs
socket-io
mongodb
redis

Chat.io: questions and answers

What is Chat.io used for?
chat.io is a real-time chat application built with Node.js, Express, Socket.io, MongoDB and Redis, with username and social login. It is a good fit for learning Socket.io chat architecture and starting point for a chat feature.
Is Chat.io open source?
Yes. Chat.io is open source under the MIT licence. Its source code is on GitHub at OmarElgabry/chat.io and is written mainly in JavaScript.
Is Chat.io free?
Yes. Chat.io is open source, so the software itself is free to use.
Can I self-host Chat.io?
Yes. Chat.io can be self-hosted on your own server or infrastructure.
What are some alternatives to Chat.io?
Similar open-source tools in the Team Chat category include Fiora, Darkwire.io and Stoat. SaaS products in the same category include Google Chat, JANDI and Kik.
Is Chat.io actively maintained?
The most recent commit to Chat.io was on 2 July 2019, and the latest release is v1.0, published on 31 August 2016. The project has 1.4k stars on GitHub.

Open-source alternatives to Chat.io

See all

SaaS alternatives to Chat.io

See all