Skip to content

Simple JSON like transport format - binary and compression

License

Notifications You must be signed in to change notification settings

webcarrot/jsbcon

Repository files navigation

@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

About

Simple JSON like transport format - binary and compression

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published