54 stable releases

3.1.3 Oct 19, 2024
3.0.14 Aug 12, 2024
3.0.11 Jul 15, 2024
3.0.6 Mar 29, 2024
0.1.0 Oct 29, 2020

#2129 in Encoding

Download history 33/week @ 2024-08-14 10/week @ 2024-09-18 441/week @ 2024-09-25 40/week @ 2024-10-02 22/week @ 2024-10-09 329/week @ 2024-10-16 23/week @ 2024-10-23 24/week @ 2024-10-30 36/week @ 2024-11-06 5/week @ 2024-11-13 11/week @ 2024-11-20

62 downloads per month

Apache-2.0

18KB
295 lines

Bebop

Bebop

No ceremony, just code.
Blazing fast, typesafe binary serialization.

Apache License Discord
Twitter

Introduction

Bebop is a high-performance data interchange format designed for fast serialization and deserialization.

        
// Example Bebop Schema
struct Person {
  string name;
  uint32 age;
}
        
      
        
// Generated TypeScript Code
new Person({
    name: "Spike Spiegel",
    age: 27
}).encode();
        
      
Write concise and expressive schemas with Bebop's intuitive syntax. Using a generated class to persist data.

It combines the simplicity of JSON with the efficiency of binary formats, delivering exceptional performance. In benchmarks, Bebop outperforms Protocol Buffers by approximately 10 times in both C# and TypeScript. Compared to JSON, Bebop is roughly 10 times faster in C# and about 5 times faster in TypeScript.

Benchmark Graphs

Bebop provides a modern, developer-friendly experience while ensuring top-notch performance. It is the ideal choice for any application that requires efficient data serialization, especially in performance-critical scenarios.

To explore the schema language and see examples of the generated code, check out the playground.

Key Features

  • 🧙‍♂️  Supports Typescript, C#, Rust, C++, and more.
  • 🐎  Snappy DX - integrate bebopc into your project with ease. Language support available in VSCode.
  • 🍃  Lightweight - Bebop has zero dependencies and a tiny runtime footprint. Generated code is tightly optimized.
  • 🌗  RPC - build efficient APIs with Tempo.
  • ☁️  Runs everywhere - browsers, serverless platforms, and on bare metal.
  • 📚  Extendable - write extensions for the compiler in any language.

👉 For more information, check out the documentation. 👈

See You Space Cowboy...

Dependencies

~0–13MB
~172K SLoC