Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nekocafe with all npm packages installed. Try it out:

nekocafe lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("nekocafe/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nekocafe v1.3.0

Minimal websocket chat

nekocafe

Web chat room 🐱 💬

npm

screenshot screenshot

A chat server using websockets. Send your friends the url and chat through the browser.

  • designed for mobile
  • no passwords/registration
  • 100 line backlog
  • hotlinked urls
  • embedded images, youtubes, tweets

Installing

npm install -g nekocafe

Running

nekocafe <portnumber>

For https mode, pass your certificates on the command line:

nekocafe <portnumber> <keyfile.pem> <certfile.pem>

Development

npm run dev to build client side (outputs to dist/)

node lib/server.js <portnumber> to run the server (does not need to restart after client rebuild)

or npm run start to run on port 80

Changelog

  • 1.3.0 - file uploads
  • 1.2.0 - embedded youtubes, tweets
  • 1.1.0 - embedded images, remember username/prefs, performance improvements
  • 1.0.0 - first release
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free