Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.24 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.24 KB

@webcarrot/jsbcon - Simple transport format

@webcarrot/jsbcon

Simple transport format

WARNING: WIP

Use cases

  • "Replace" multipart/form-data
  • Delivering and receiving rich data in a simple and optimal way

Environments

  • nodejs
  • browsers
  • deno

Operating modes

  1. null
  2. binary
  3. JSON (optional compression)
  4. JSON (optional compression) + binary

TODO / WIP

  • RFC / Specification
  • Documentation
  • Accept/Content-Type header helpers - mime negotiation
  • Optional decode output binary transformations (from Uint8Array to Buffer / Blob / Whatever)
  • Add more compression methods
  • Add operating modes to produce and receive streams of:
    • binary
    • JSON (optional compression)
    • JSON (optional compression) + binary
  • Plugins/helpers for clients: fetch, axios, deno etc.
  • Plugins/helpers for servers: express, koa, deno etc.
  • CI
  • nodejs (http / express / koa) + browsers (playwright) integration tests
  • deno + browsers (playwright) integration tests

Examples

Node

Browsers

Deno