@glatek/rutabaga
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@glatek/rutabaga

Biome Vitest

Rutabaga Logo

JSON Schema-backed CRUD operations in Service Workers with IndexedDB.

Description

That short intro is a mouth full. This project takes JSON Schema definitions and:

  • Creates API routes for CRUD
  • Generates HTML forms
  • Stores the data in IndexedDB via Dexie.JS
sequenceDiagram
    participant A as App
    participant S as ServiceWorker
    participant D as IndexedDB
    critical CREATE | POST /api/:table
        A->>S: Request
        S->>D: read
        D-->>S: read success
        S-->>A: Response
    end
    critical READ | GET /api/:table
        A->>S: Request
        S->>D: write
        D-->>S: write success
        S-->>A: Response
    end
    critical UPDATE | PUT /api/:table
        A->>S: Request
        S->>D: update
        D-->>S: update success
        S-->>A: Response
    end
    critical DELETE | DELETE /api/:table
        A->>S: Request
        S->>D: delete
        D-->>S: delete success
        S-->>A: Response
    end

Usage

Coming soon...

Package Sidebar

Install

npm i @glatek/rutabaga

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

292 kB

Total Files

9

Last publish

Collaborators

  • karlsson