Bebop
๐ทNo ceremony, just code. Blazing fast, typesafe binary serialization.
Bebop No ceremony, just code. Blazing fast, typesafe binary serialization. The project is written primarily in C#, distributed under the Apache License 2.0 license, first published in 2020. It has gained significant community traction with 2,162 stars and 51 forks on GitHub. Key topics include: c-sharp, compiler, cpp, dart, deserialization.
Introduction
Bebop is a high-performance data interchange format designed for fast serialization and deserialization.
<table> <tr> <td> <pre lang="c"> <code> // Example Bebop Schema struct Person { string name; uint32 age; } </code> </pre> </td> <td> <pre lang="typescript"> <code> // Generated TypeScript Code new Person({ name: "Spike Spiegel", age: 27 }).encode(); </code> </pre> </td> </tr> <tr> <td>Write concise and expressive schemas with Bebop's intuitive syntax.</td> <td>Using a generated class to persist data.</td> </tr> </table>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.

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
bebopcinto 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. ๐
Contributors
Showing top 12 contributors by commit count.