Skip to content

A truly monstrous async web chat using no JS whatsoever on the frontend -- NodeJS version

License

Notifications You must be signed in to change notification settings

alienzhou/css-only-chat-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A truly monstrous async web chat using no JS whatsoever on the frontend -- NodeJS version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published