httpstate
The missing reactive layer for all your applications.
Create interactive experiences with a couple lines of code.
More at httpstate.com.
Quick Start (browser, node.js)
Install from CDN (Script Tag)
<script src="https://cdn.jsdelivr.net/npm/@httpstate/typescript/dist/index.global.js" type="text/javascript"></script>or import from CDN (ES Module)
import httpstate from 'https://cdn.jsdelivr.net/npm/@httpstate/typescript@0.0.42/dist/index.esm.js';or install from npm
npm install @httpstate/typescriptand then import
import * as httpstate from '@httpstate/typescript';Pick any valid UUID v4. You can generate one here.
We'll use 45fb3654-0e92-44da-aa21-ca409c6bdab3 or 45fb36540e9244daaa21ca409c6bdab3 (works without dashes).
Store some data with
httpstate.set('45fb36540e9244daaa21ca409c6bdab3', 'Hi! 👋🏻');and retrieve it with
const data = await httpstate.get('45fb36540e9244daaa21ca409c6bdab3');You can also get realtime updates
import httpstate from '@httpstate/typescript';
const hs = httpstate('45fb36540e9244daaa21ca409c6bdab3');
hs.on('change', data => {
console.log(`This will change everytime data is set [${data}].`);
});That's it! 🐙
httpstate in your favorite language
Javascript / Typescript (typescript)
Browser and server (node.js, deno, bun) compatible clients.
npm install @httpstate/typescript
React (react)
npm install @httpstate/reactThen useHttpState(uuid) as you would useState().
Go (go)
go get github.com/httpstate/httpstate/go
Java (java)
[...]
Python (python)
pip install httpstate
Ruby (ruby)
[...]
Rust (rust)
cargo add httpstateLearn
Community: [...]
Cookbook: [...]
About
Alex Morales, moralestapia.com
Copyright © Alex Morales, 2026
Contact
Comments, feature requests, etc. are welcome at inbox @ httpstate.com.
License
Unless otherwise stated in particular files or directories, this software is free software.
You can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
See LICENSE for more information.