# @nanostores/solid

> Solid integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores.

Latest version **1.1.1** (published 2025-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nanostores/solid
pnpm add @nanostores/solid
yarn add @nanostores/solid
bun add @nanostores/solid
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2025-08-22 |
| First published | 2022-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 81 |
| Author | Robert Soriano |
| Maintainers | wobsoriano, ai, dkzlv, ninoid |
| Keywords | store, state, state manager, solid |

## Links

- npm: https://www.npmjs.com/package/@nanostores/solid
- Repository: https://github.com/nanostores/solid
- Homepage: https://github.com/nanostores/solid#readme
- Issues: https://github.com/nanostores/solid/issues
- npm.io page: https://npm.io/package/@nanostores/solid

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2025-08-22
- 1.1.0 — 2025-08-22
- 1.0.0 — 2025-05-03
- 0.5.0 — 2024-09-27
- 0.4.2 — 2023-05-27
- 0.3.2 — 2022-12-13
- 0.3.1 — 2022-12-13
- 0.3.0 — 2022-09-18
- 0.2.0 — 2022-08-14
- 0.1.6 — 2022-03-29
- 0.1.5 — 2022-03-29

## README

# Nano Store Solid

<img align="right" width="92" height="92" title="Nano Stores logo"
     src="https://nanostores.github.io/nanostores/logo.svg">

Solid integration for **[Nano Stores]**, a tiny state manager
with many atomic tree-shakable stores.

* **Small.** Less than 1 KB. Zero dependencies.
* **Fast.** With small atomic and derived stores, you do not need to call
  the selector function for all components on every store change.
* **Tree Shakable.** The chunk contains only stores used by components
  in the chunk.
* Was designed to move logic from components to stores.
* It has good **TypeScript** support.

[Nano Stores]: https://github.com/nanostores/nanostores/

## Installation

```bash
npm install nanostores @nanostores/solid
```

## Usage:

```ts
// store.ts
import { atom } from 'nanostores';

export const $counter = atom(0);

export const increase = () => {
  $counter.set($counter.get() + 1);
}
```

```tsx
import { useStore } from '@nanostores/solid';
import { $counter, increase } from './store';

function Counter() {
  const count = useStore($counter);
  return <h1>{count()} around here ...</h1>;
}

function Controls() {
  return <button onClick={increase}>one up</button>;
}
```

## License

MIT

---
_Source: https://npm.io/package/@nanostores/solid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
