Skip to content
A truly monstrous async web chat using no JS whatsoever on the frontend -- NodeJS version
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENCE
README.md
app.js
cache.js
package.json
sample.gif
util.js

README.md

CSS-only Chat (NodeJS)

MIT Licence

A truly monstrous async web chat using no JS whatsoever on the frontend.

sample

This is a NodeJS version for @kkuchta/css-only-chat which is implemented by Ruby.

What is it

CSS-only Chat is an asynchronous chat that sends + receives messages in the browser with no reloads and no javascript. This repository use all the tricks mentioned in css-only-chat to build a NodeJS version.

To make it simple, this repository uses an in-memory cache module (cache.js file) to replace Redis.

How it works

  • use pseudo-class :active to catch the click event
  • use attribute background-image to send data
  • use stream in the response to update the page without JavaScript

For more details, please visit @kkuchta/css-only-chat.

How to run

No external dependency. Just need a NodeJS runtime.

Supposing you have installed NodeJS, just run

npm start
You can’t perform that action at this time.