# jotai-svelte

> Primitive and flexible state management for Svelte based on Jotai.

Latest version **0.0.2** (published 2022-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install jotai-svelte
pnpm add jotai-svelte
yarn add jotai-svelte
bun add jotai-svelte
```

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-12-20 |
| First published | 2022-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | wobsoriano |

## Links

- npm: https://www.npmjs.com/package/jotai-svelte
- Repository: https://github.com/wobsoriano/jotai-svelte
- Homepage: https://github.com/wobsoriano/sveltio#readme
- Issues: https://github.com/wobsoriano/jotai-svelte/issues
- npm.io page: https://npm.io/package/jotai-svelte

## Recent versions

- 0.0.2 (latest) — 2022-12-20
- 0.0.1 — 2022-12-14

## README

# jotai-svelte

Primitive and flexible state management for Svelte based on [Jotai](https://github.com/pmndrs/jotai).

Experimental. Check [this](https://github.com/pmndrs/jotai/discussions/1514) for more info.

## Installation

```bash
pnpm add jotai jotai-svelte
```

## Usage

```ts
import { atom } from 'jotai-svelte'

export const countAtom = atom(0)
```

```html
<script lang="ts">
  import { useAtom } from 'jotai-svelte'
  import { countAtom } from './atoms'
  const count = useAtom(countAtom)
</script>

<button on:click={() => count.update(prev => prev + 1)}>
  Clicks: {$count}
</button>
```

Read more about [Jotai](https://github.com/pmndrs/jotai) here.

## License

MIT

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