MCPcopy
hub / github.com/kefirjs/kefir

github.com/kefirjs/kefir @3.8.8 sqlite

repository ↗ · DeepWiki ↗ · release 3.8.8 ↗
505 symbols 1,017 edges 181 files 0 documented · 0%
README

Kefir

Kefir — is an Reactive Programming library for JavaScript inspired by Bacon.js and RxJS with focus on high performance and low memory usage.

For docs visit kefirjs.github.io/kefir. See also Deprecated API docs.

GitHub license npm version Build Status Gitter

Installation

Kefir available as NPM and Bower packages, as well as simple files download.

NPM

npm install kefir

Bower

bower install kefir

Download

See downloads section in the docs.

Also available on jsDelivr.

Browsers support

We don't support IE8 and below, aside from that Kefir should work in any browser.

Flow

The NPM package ships with Flow definitions. So you can do something like this if you use Flow:

// @flow

import Kefir from 'kefir'

function foo(numberStream: Kefir.Observable<number>) {
  numberStream.onValue(x => {
    // Flow knows x is a number here
  });
}

const s = Kefir.constant(5);
// Flow can automatically infer the type of values in the stream and determine
// that `s` is of type Kefir.Observable<number> here.
foo(s);

Development

npm run prettify    # makes source code pretty (you must run it before a PR could be merged)
npm run build-js    # builds js bundlers
npm run test        # runs all the checks
npm run test-only   # runs only unit tests without other checks
npm run test-debug  # runs tests with a chrome inspector connected to the node process
npm run build-docs  # builds the documentation html file

Core symbols most depended-on inside this repo

value
called by 2493
test/flow/observe.js
end
called by 999
src/emitter.js
stream
called by 744
src/primary/stream.js
error
called by 315
src/emitter.js
fn
called by 35
src/interop/to-es-observable.js
createStream
called by 31
src/patterns/one-source.js
createProperty
called by 31
src/patterns/one-source.js
error
called by 18
test/flow/observe.js

Shape

Function 499
Class 4
Method 2

Languages

TypeScript100%

Modules by API surface

src/observable.js29 symbols
src/many-sources/abstract-pool.js21 symbols
src/patterns/two-sources.js18 symbols
src/patterns/one-source.js13 symbols
test/flow/combine.js12 symbols
src/utils/collections.js12 symbols
src/many-sources/combine.js12 symbols
test/specs/from-event.js9 symbols
test/flow/interop.js9 symbols
src/two-sources/buffer-by.js9 symbols
src/two-sources/buffer-while-by.js8 symbols
src/patterns/time-based.js8 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

babel-preset-es2015-loose-rollup7.0.0 · 1×
chai4.1.2 · 1×
chai-kefir2.0.1 · 1×
flow-bin0.100.0 · 1×
inquirer6.3.1 · 1×
mocha6.1.4 · 1×
prettier1.18.2 · 1×
pug2.0.3 · 1×
rollup0.41.6 · 1×
rollup-plugin-babel2.7.1 · 1×
rollup-plugin-commonjs8.0.2 · 1×
rollup-plugin-node-resolve3.0.0 · 1×

For agents

$ claude mcp add kefir \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact