# valtio-devtools-client

> Library to connect valtio app to valtio-devtools

Latest version **1.1.0** (published 2023-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install valtio-devtools-client
pnpm add valtio-devtools-client
yarn add valtio-devtools-client
bun add valtio-devtools-client
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-04-07 |
| First published | 2023-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 59.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Cyrus Bowman |
| Maintainers | cyrusbowman |
| Keywords | valtio, devtools |

## Links

- npm: https://www.npmjs.com/package/valtio-devtools-client
- Repository: https://github.com/cyrusbowman/valtio-devtools-client
- Homepage: https://github.com/cyrusbowman/valtio-devtools-client#readme
- Issues: https://github.com/cyrusbowman/valtio-devtools-client/issues
- npm.io page: https://npm.io/package/valtio-devtools-client

## Dependencies (1)

- [isomorphic-ws](https://npm.io/package/isomorphic-ws.md) ^5.0.0

## Recent versions

- 1.1.0 (latest) — 2023-04-07
- 1.0.2 — 2023-04-05
- 1.0.1 — 2023-04-05
- 1.0.0 — 2023-04-05

## README

## valtio-devtools-client

The client library for use with with [valtio-devtools](https://www.npmjs.com/package/valtio-devtools). Works with [Expo](https://expo.dev/).

### Usage
---

    import { proxy } from  'valtio'
    import devtools from 'valtio-devtools-client'

	const  state = proxy({
		 foo: true,
		 bar: false
	})
	const devtoolOptions = {
		host: 'localhost' //default
		
		//Configure host automatically with `babel-plugin-ip-address`
		remote: false //default
	}
    devtools(state, options)

### Options
---
`host`: `"localhost"` //default
Host address where `valtio-devtools` application is running.
			
`remote`: `false` //default
Have babel configure host address automatically with [babel-plugin-ip-address](npm%20i%20https://github.com/AndreyKozlov1984/babel-plugin-ip-address). Useful when testing Expo apps on device.
 - `npm i https://github.com/AndreyKozlov1984/babel-plugin-ip-address` 
 -  add `babel-plugin-ip-address` to `plugins` in `babel.config.js`.


![Screenshot](./screenshot.png)

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