nanostores
A tiny (286 bytes) state manager for React/RN/Preact/Vue/Svelte with many atomic tree-shakable stores (by ai)
xstate
Actor-based state management & orchestration for complex app logic. (by statelyai)

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured
nanostores | xstate | |
---|---|---|
20 | 64 | |
6,362 | 28,460 | |
2.7% | 0.6% | |
7.6 | 9.0 | |
about 2 months ago | 9 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nanostores
Posts with mentions or reviews of nanostores.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-08-19.
-
Using nanostores in Astro + Vue setup
use a shared state manager like nanostores
- Nanostores: A tiny (286 bytes) state manager for React/RN/Preact/Vue/Svelte
-
Building jargons.dev [#2]: The Dictionary Search Engine
I retrieved access to files the directory of words using the Astro.glob() function super easily (too bad I couldn't talk about how powerful this function is; how glad I am it existed out-the-box in Astro and how much ease it brought into the flow of getting this search engine up and running) and plugged the returned array of word objects into a $dictionary state (maybe I should call this a store) powered by nanostore (another beautiful stuff right there)
-
Astro.js as an alternative to Next.js: pushing the limits
In its docs, Astro recommends nanostores, but I’ve used effector in the past. And LOVED IT. So I’ve used it for this project as well.
-
React roadmap ( with explanations and resources, all in one place)
Nanostores explanation
-
How to Write a Great Readme
vidstack is very light on technical details but starts with a concise intro and a screenshot, as well as relevant links: https://github.com/vidstack/player
payload is well-structured in general: https://github.com/payloadcms/payload
nanostores starts out with an intro and telling code examples, followed by lots of technical details: https://github.com/nanostores/nanostores
-
Is redux and thunks still used or are there other alternatives for it now?
Nanostores and Reatom are also great, fast atomic libs
-
Is it possible to build a “framework agnostic” library like tanstack table?
Astro handles multi-framework components (React, Vue, etc) and they recommend using the nanostores library for shared state.
-
how to share state between components with distant shared parent?
Checkout Nanostore it's what Astro.build recommends for sharing state across different ui libraries.
-
Building a multi-framework dashboard with Astro
All of these are valid ways of fixing the state management issue, but it's clear that we need to find a common solution that works for all the UI libraries. This is where nanostores comes into play! The description they provide on their GitHub page is simply perfect:
xstate
Posts with mentions or reviews of xstate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-08-12.
- XState – State machines for state management in JavaScript
-
Booleans Are a Trap
Child states! Literally what I'm working on. If the application is active it needs to have a window opened and attached. I can easily use `if (isActive)` but things get very complicated when I have to have logic for `if (windowAttached === true)`. Xstate (https://github.com/statelyai/xstate) is very verbose with a lot of boilerplate. I hope this approach is worth it is the application becomes more and more complicated.
states: {
- Finite State Machine Designer
-
Announcing the Alpha Release of xstate-ngx!
For now, the project is published under xstate-ngx. However, we're planning to move it into the official XState monorepo once discussions are finalized and your feedback has been implemented. You can track the progress and discussions in the related PR.
-
Mastering XState Fundamentals: A React-powered Guide
XState is a powerful library with comprehensive documentation. Keeping the documentation handy while building your next app with XState will be invaluable.
- 5 Alternatives to Redux for React State Management
-
Unleashing the Power of Actors in Frontend Application Development
XState is an excellent library that simplifies the utilization of actors in JavaScript applications. While this article focuses on using React, these principles apply equally well to other frameworks. In fact, they can be implemented anywhere JavaScript is executed.
-
Rethinking State Management - Why XState is a Game-Changer for Developers
In this article, I want to share a personal journey of discovery in the world of state management. My path led me to XState, a tool that I believe is the best choice for managing state in modern applications like React, Angular, Vue, and others. This isn't just a professional advice; it's a personal recommendation based on real-world experience.
-
Get out of state management hell with automatic revalidation
You add the current user state to a React Context or state management library, read from it on the top bar, and write to it after a user signs in. Done. No big deal, right?
- Como encontrar tema de tcc em ciência da computação?
What are some alternatives?
When comparing nanostores and xstate you can also consider the following projects:
effector-react - Business logic with ease ☄️
redux - A JS library for predictable global state management
jotai - 👻 Primitive and flexible state management for React
awesome-workflow-engines - A curated list of awesome open source workflow engines
tsm - TypeScript Module Loader
zustand - 🐻 Bear necessities for state management in React

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured