{ developer tools / psyn-app/pio }

PIO.js

v0.2.1 · OSS

Persistent Input/Output. A dependency-free JavaScript library that automatically saves and restores form state as people type — zero config, privacy-first, everything kept local in the browser. Grab a build below, no GitHub account or clone required.

TypeScript Deno Zero dependencies MIT

{ downloads }

Get PIO.js.

Three ways to grab it, depending on what you need.

Recommended

Minified build

pio-0.2.1.min.js · 8.8KB

Production-ready. Drop it straight into a <script> tag — this is what the README's install snippet points at.

Readable

Unminified build

pio-0.2.1.js · 17.4KB

Same compiled output, not minified — readable in dev tools, easier to step through when debugging.

Source

TypeScript source

pio-0.2.1.ts · 25.6KB

The actual source file, fully typed and commented. Bring your own bundler, or read it to see how it works.

MIT-licensed. Download LICENSE.txt — or read the source on GitHub ↗ if you want history, issues, or to contribute.

{ quick start }

Add it to a page.

// 01 — include it

<script type="module" src="pio-0.2.1.min.js"></script>

// 02 — mark fields stateful

<input type="text" stateful placeholder="This value persists!" />
<textarea stateful rows="4"></textarea>

// 03 — that's it

PIO detects stateful elements, saves their values as people type, and restores them on reload — all stored locally in the browser via the File System Access API.