State Management made

boilerplate free

AgileTs is a global, flexible, spacy State and Logic Library

Poke me 👆 to mutate my color State.

Why choose us?

Straightforward

AgileTs saves you the hassle of creating boilerplate code and offers a powerful API that makes your life easier.


// Instantiate a global States with a single line of code
const MY_STATE = createState("Jeff"); // <-
MY_STATE.set("Frank"); // Update State value


// Dynamically bind State to UI-Components for reactivity
const myState = useAgile(MY_STATE);


// Permanently store State in the appropriate local Storage
MY_STATE.persist();


// Create a dynamic and reactive set of States
const USERS = createCollection(); // <-
USERS.collect({id: 1, name: "Jeff"}, ['teamA']);


// Compute State depending on other States
const IS_AUTH = createComputed(() => {
return AUTH_TOKEN.exists && EXPIRATION_TIME.value > 0;
});

Create State

Instantiate a global State with a single line of code.

Subscribe UI-Component

Dynamically bind State to UI-Components for reactivity.

Persist State

Permanently store State in the appropriate local Storage.

Collection

Easily create a dynamic and reactive set of States.

Computed State

Compute State depending on other States.

img/pages/landing/software_engineer.svg

Centralize

AgileTs allows you to easily manage all of your application logic and states outside of the UI-Components in a central place.

img/pages/landing/teaching.svg

Flexible

AgileTs works with nearly any UI-Layer and isn’t bound to any specific workflow. Use it the way it suits you best.

img/pages/landing/science.svg

Easy to Use

Learn the powerful tools of AgileTs in a short amount of time.

img/pages/landing/engineer.svg

Well Tested

AgileTs has over 600 jest tests to ensure everything works as expected.

img/pages/landing/typescript.svg

Typescript

AgileTs is almost 100% typesafe and provides type inference for any complex structure.

Stop Talking

Start Coding

Coming Soon
Live
Preview

Always Open Source.

Trusted by GitHub community

0
Stars
0
Forks
0
Downloads

Give it a Try. It's 100% free.

npm install @agile-ts/core