Skip to content

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

License

Notifications You must be signed in to change notification settings

betwixt-labs/bebop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

99f1fe8 Β· Mar 5, 2025
Sep 27, 2024
Nov 5, 2023
Oct 19, 2024
Nov 1, 2024
Oct 19, 2024
Mar 4, 2025
Oct 19, 2024
May 26, 2023
Mar 4, 2025
Sep 27, 2024
Mar 12, 2024
Sep 27, 2024
Feb 6, 2024
Oct 19, 2024
Feb 9, 2022
Oct 19, 2024
Sep 27, 2024
Apr 3, 2023
Feb 7, 2024
Apr 2, 2023
Dec 9, 2020
Oct 22, 2020
Mar 16, 2024
Feb 10, 2024
Jul 15, 2022
Jul 15, 2022

Repository files navigation

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...