#data #document #keybd

keybd

instead of JSON when binary data more than string data

1 unstable release

new 0.1.0 May 1, 2025

#110 in #document

Download history 94/week @ 2025-04-27

94 downloads per month

MPL-2.0 license

7KB
141 lines

Key Binary Document

Key Binary Document, also as KeyBinDoc, is an easy and flexible binary internet-transferable format, when binary data more than string data instead of JSON.

KeyBinDoc is hashmap-like, nullable and JavaScript-compatible, and these basic types are supported below:

  1. NUL(0) - as null, property name is specified but no value is setted.
  2. NUMBER(1) - as unknown typed number stored as ascii, f64 is the first selection and i64 as the second.
  3. FALSE(2) and TRUE(3) - as both bool type.
  4. BUFFER(4) - as &[u8].
  5. STRING(5) - as UTF-8 String.
  6. ARRAY(6) - as dynamic typed Array of KeyBinDoc items.
  7. OBJECT(7) - as dynamic key-value Map of KeyBinDoc items.

No runtime deps