Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

nuxt-protokit

/nuxt-protokit

Buduje prototypy aplikacji SaaS w Nuxt na podstawie schematów, z kolekcjami, wartościami pochodnymi i wizualizacjami.

Repozytorium
nuxt-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
9
Skrypty
0
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Buduje prototypy aplikacji SaaS w Nuxt na podstawie schematów, z kolekcjami, wartościami pochodnymi i wizualizacjami.

Oryginalny opis (EN)

Use when building schema-driven prototypes with nuxt-protokit (@websideproject/nuxt-protokit) - provides definePrototype, usePrototype, ProtoTool, collections, derived values, and visualizations for rapid SaaS tool prototyping.

Jak działa

  1. When to Use
  2. Quick Start
  3. Available Guidance
  4. Progressive Loading
  5. Related Skills
  6. Module Config (nuxt.config.ts)
Sekcje z nagłówków SKILL.md, w oryginale · 102 linii, 466 słów
Podgląd SKILL.md
---
name: nuxt-protokit
description: Use when building schema-driven prototypes with nuxt-protokit (@websideproject/nuxt-protokit) - provides definePrototype, usePrototype, ProtoTool, collections, derived values, and visualizations for rapid SaaS tool prototyping.
license: MIT
---

# nuxt-protokit

Schema-driven rapid prototyping for Nuxt 4. Turn a TypeScript schema into a persistent, interactive SaaS tool in minutes — backed by Y.js CRDT + IndexedDB, auto-synced across tabs, with optional server sync.

## When to Use

- Defining a `PrototypeSchema` with fields, collections, derived values, or visualizations
- Writing `usePrototype()` or `useProtoCollection()` composables
- Using `<ProtoTool>`, `<ProtoDashboard>`, `<ProtoCrudModal>`, `<ProtoCalendar>`, `<ProtoViz>` components
- Configuring offline persistence, encryption, namespace isolation, or corruption recovery
- Creating custom field/viz extensions with `defineProtokitExtension`
- Using headless mode (`defineHeadlessSchema`) without UI components

## Quick Start

```ts
// schema.ts
import { definePrototype } from '@websideproject/nuxt-protokit'

export const schema = definePrototype({
  key: 'my-tool',
  title: 'My Tool',
  shortTitle: 'My Tool',
  description: 'Description',
  icon: 'i-heroicons-calculator',
  fields: {
    revenue:  { type: 'number', label: 'Revenue',  default: 0, format: 'money' },
    growth:   { type: 'range',  label: 'Growth %', default: 10, min: 0, max: 100 },
    plan:     { type: 'select', label: 'Plan',     default: 'starter',
                options: ['starter', 'pro', 'enterprise'] },
  },
  derived: {
    projectedRevenue: {
      deps: ['revenue', 'growth'],
      compute: ctx => ctx.fields.revenue * (1 + ctx.fields.growth / 100),
    },
  },
})
```

```vue
<!-- pages/my-tool.vue -->
<script setup>
import { schema } from '~/schema'
const proto = usePrototype(schema)
</script>

<template>
  <ProtoTool :schema="schema" :prototype="proto" />
</template>
```

## Available Guidance

| File | Topics |
|------|--------|
| **[references/schema.md](references/schema.md)** | PrototypeSchema, all field types, CollectionSchema, DerivedDef, DashboardLayout, ProtoAction |
| **[references/composables.md](references/composables.md)** | usePrototype, useProtoCollection, useProtoDoc, namespace, encryption options |
| **[references/components.md](references/components.md)** | ProtoTool, ProtoDashboard, ProtoCrudModal, ProtoCalendar, ProtoViz, ProtoActionBar |
| **[references/visualizations.md](references/visualizations.md)** | All 12 viz types with config interfaces and examples |
| **[references/offline-first.md](references/offline-first.md)** | Y.js + IndexedDB, multi-tab sync, encryption, corruption recovery, server sync |
| **[references/extensions.md](references/extensions.md)** | defineProtokitExtension, custom field/viz type registration |
| **[references/headless.md](references/headless.md)** | defineHeadlessSchema, programmatic usage without UI components |
| **[references/module-authoring.md](references/module-authoring.md)** | Building a Nuxt module that ships custom fields/viz: protokit:register-extension hook, plugin pattern |

## Progressive Loading

Load only what you need:

- Defining fields, collections, or layout? → [references/schema.md](references/schema.md)
- Writing `usePrototype` or composable options? → [references/composables.md](references/composables.md)
- Using `<ProtoTool>`, `<ProtoCrudModal>`, `<ProtoCalendar>`? → [references/components.md](references/components.md)
- Configuring `visualizations: []` in schema? → [references/visualizations.md](references/visualizations.md)
- Encryption, multi-tenant, corruption? → [references/offline-first.md](references/offline-first.md)
- Custom field or viz type? → [references/extensions.md](references/extensions.md)
- No UI, programmatic storage? → [references/headless.md](references/headless.md)
- Building a Nuxt module that ships extensions? → [references/module-authoring.md](references/module-authoring.md)

**DO NOT read all files at once.** Load based on current task.

## Related Skills

- **`nuxt`** — Nuxt 4 routing, server routes, middleware
- **`nuxt-ui`** — @nuxt/ui components for surrounding page layout
- **`vue`** — Vue 3 composables, reactivity patterns

## Module Config (`nuxt.config.ts`)

```ts
export default defineNuxtConfig({
  modules: ['@websideproject/nuxt-protokit'],
  protokit: {
    serverSync: true,          // default — syncs to /api/yjs
    // serverSync: false       // local-only, no HTTP
    // serverSync: { enabled: true, baseUrl: '/api/yjs' }
  }
})
```

_Token efficiency: Main skill ~400 tokens. Each reference file ~800–1400 tokens._
Pliki w paczce (9)
  • SKILL.md 5 KB
  • references/components.md 7 KB
  • references/composables.md 6 KB
  • references/extensions.md 4 KB
  • references/headless.md 5 KB
  • references/module-authoring.md 8 KB
  • references/offline-first.md 4 KB
  • references/schema.md 9 KB
  • references/visualizations.md 6 KB

Wersje

W bazie nie ma innych skilli o nazwie nuxt-protokit.

Migawka bazy z 13.11.2026 · wersja paczki cc1ed48262fe (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100nuxt-data-audit
    Audytuje pobieranie danych w Nuxt, wydajność oraz granice schematu między paginacją po stronie klienta i serwera; nie dotyczy projektów spoza Nuxt.
  • 100bun-nuxt
    Uruchamia Nuxt 3 na runtime Bun i konfiguruje projekty Nuxt do rozwoju i produkcji z Bun, w tym aplikacje Vue.
  • 96nuxt
    Wspiera rozwój Nuxt: aplikacje fullstack, SSR i SSG z Vue, moduły Nuxt oraz budowę aplikacji.
  • 85arch-nuxt-module-builder
    Buduje i utrzymuje moduły Nuxt z @nuxt/module-builder: szkielet, typy i część uruchomieniową.
  • 95auth0-nuxt
    Konfiguruje w Nuxt 3 i 4 uwierzytelnianie Auth0: sesje, ochronę tras middleware, tokeny dostępu i composables przez SDK.
  • 85nuxt
    Pomaga w tworzeniu aplikacji Nuxt z SSR, automatycznymi importami i routingiem opartym na plikach.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.