Skip to content

EvgenyiFedotov/restarfall

Repository files navigation

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Restarfall is a JavaScript library for creating business logic and data management.

Usage

import { create, use } from "restarfall";

const $count = create.store<number>(0);
const inc = create.event<void>();

const counter = create.unit(() => {
  const incEvent = use.depend(inc);
  const count = use.value($count);
  const setCount = use.dispatch($count);

  if (incEvent.called) setCount(count + 1);

  return null;
});

const shape = create.shape();

shape.attach(counter());

Documentation

restarfall

restarfall-react

API

Tests

Development

Create commits by conventional-commits. For one use commitlint.

Release

For relase use standard-version.

First relase

npm run release -- --first-release

Next releases

npm run release

After push to remote-repo run workflow Publish to npmjs from actions tab into GitHub.

About

Restarfall is a JavaScript library for creating business logic and data management.

Resources

Stars

Watchers

Forks

Packages

No packages published