npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@websideproject/nuxt-protokit

v0.0.3

Published

Schema-driven rapid prototyping for Nuxt 4 — turn a TypeScript schema into a persistent, interactive prototype in minutes

Readme

nuxt-protokit

npm version npm downloads license

Schema-driven rapid prototyping for Nuxt 4. Define a TypeScript schema and get a fully working interactive prototype — forms, CRUD, computed values, visualizations, and automatic Y.js persistence.

✨ Features

  • 📋 Schema-driven — define fields, derived values, collections, and visualizations in one TypeScript object
  • 📴 Offline-first — Y.js + IndexedDB means every write is local-first; data is safe without a server
  • 🧮 12 field types — number, text, textarea, select, segmented, toggle, range, rating, color, date, tags, linked-responses
  • 📊 5 visualization types — progress bar, benchmark bar, bar chart, comparison table, feature matrix, timeline
  • 🔗 Connected prototypesproduces/consumes wire prototypes together via a reactive CRDT data graph
  • 🛡️ Corruption recovery — auto-detect IndexedDB corruption; restore from server snapshots when a sync backend is present
  • 🔄 Multi-tab sync — BroadcastChannel propagates edits across open tabs without a server round-trip
  • 🧩 Extensible — register custom field types and viz types via defineProtokitExtension without modifying the module

🚀 Installation

Install the module and its peer dependencies:

# npm
npm install @websideproject/nuxt-protokit yjs y-indexeddb @nuxt/ui

# pnpm
pnpm add @websideproject/nuxt-protokit yjs y-indexeddb @nuxt/ui

# bun
bun add @websideproject/nuxt-protokit yjs y-indexeddb @nuxt/ui

Then add it to your nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['@websideproject/nuxt-protokit'],
  protokit: {
    serverSync: false, // set true to enable server persistence — need help? websideproject.com
  },
})

🔄 Server sync

serverSync: true requires a compatible backend that implements the Y.js sync API (POST /api/yjs/sync, GET /api/yjs/pull, GET /api/yjs/snapshots/:key). You can use the separate yjs-sync companion module or build the endpoints yourself. Without a backend, keep serverSync: false — prototypes work fully offline via IndexedDB with no HTTP calls.

📖 Documentation

📖 Full Documentation →

🤝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

# Install dependencies
bun install

# Generate type stubs
bun run dev:prepare

# Start the playground
bun run dev

# Run tests
bun run test

🧪 Test Coverage

| File | Stmts | Branch | Funcs | Lines | |------|------:|-------:|------:|------:| | composables | | | | | | useProtoCollection.ts | 84.84% | 67.85% | 100% | 89.65% | | useProtoDerived.ts | 88.23% | 75% | 100% | 88.23% | | useProtoDoc.ts | 2.35% | 0% | 0% | 2.63% | | useProtoList.ts | 85.24% | 73.68% | 100% | 94.33% | | useProtoMap.ts | 98.18% | 86.66% | 100% | 98.03% | | usePrototype.ts | 85.18% | 37.5% | 75% | 85.18% | | utils | | | | | | deepClone.ts | 100% | 100% | 100% | 100% | | formatters.ts | 94.73% | 89.36% | 100% | 96.42% | | runMigrations.ts | 100% | 100% | 100% | 100% | | All files | 38% | 38.22% | 37.81% | 38.98% |

Coverage collected from 94 tests (39 unit + 55 browser). Files with 0% (useProtoDoc, useProtoKitConfig, etc.) require the Nuxt runtime and are tested via integration rather than unit tests.

❓ Questions & Support

📄 License

Published under the MIT license.

Made by websideproject and community 💛