Socket
Book a DemoInstallSign in
Socket

kr-observable

Package Overview
Dependencies
Maintainers
1
Versions
452
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kr-observable

Adds reactivity power for your JavaScript

latest
Source
npmnpm
Version
3.1.13-beta.1
Version published
Weekly downloads
1.5K
-32.53%
Maintainers
1
Weekly downloads
 
Created
Source

Observable

Adds reactivity power to your JavaScript 😎

npm coverage size-esm size-cjs

  • Easy to use and provides a great developer experience;
  • Supports classes and plain objects;
  • Supports subclassing;
  • Works in all runtimes (Node.js, Web, e.t.c);
  • Well typed;
  • Framework-agnostic.

Built in bindings

Docs – observable.ru

Example with React

import { makeObservable } from 'kr-observable'
import { observer } from 'kr-observable/react'

const state = makeObservable({ count: 0 })

function App() {
  return (
    <div>
      <button onClick={() => --state.count}>-</button>
      <div>{state.count}</div>
      <button onClick={() => ++state.count}>+</button>
    </div>
  )
}
export default observer(App)

More example and full docs on observable.ru

Performance and memory usage benchmark

js-framework-benchmark

Reactivity benchmark

mol.hyoo.ru

Keywords

proxy

FAQs

Package last updated on 09 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts