-
Notifications
You must be signed in to change notification settings - Fork 80
/
implementations.html
365 lines (363 loc) · 16.2 KB
/
implementations.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>BSON (Binary JSON): Implementations</title>
<link rel="stylesheet" href="css/spec.css" type="text/css">
</head>
<body>
<h2 class="nojs">Implementations</h2>
<div class="info" id="lib">
<p>
Implementations of BSON exist for many
different programming languages. Some implementations
are currently embedded
within <a href="https://www.mongodb.com">MongoDB</a>
drivers, since MongoDB was the first large project to
make use of BSON. Over time those libraries will be made
more stand-alone, but they should be usable
independently of MongoDB in their current state.
</p>
<div class="col" id="col1">
<h3>BSON Libraries</h3>
<p>Most of these libraries use the Apache 2 license, but check individual project details to confirm.</p>
<ul>
<li>
<p>AssemblyScript</p>
<ul>
<li><p><a href="https://github.com/nearprotocol/assemblyscript-bson">assemblyscript-bson</a> -
BSON encoder / decoder library written in AssemblyScript, compiles to WebAssembly.
Can be used to enable transfer of complex objects between JavaScript and WebAssembly.
Originally written to support smart contract development in WebAssembly.
</li>
</ul>
</li>
<li>
<p>C</p>
<ul>
<li><p><a href="https://github.com/mongodb/libbson/">libbson</a> - A library providing
useful routines related to building, parsing, and iterating BSON documents. Used by
the cross-platform libmongoc client library that provides a base for MongoDB drivers
in higher-level languages.
</li>
<li><p><a href="https://github.com/chergert/mongo-glib/tree/master/mongo-glib">Mongo-GLib</a> -
A library written in C to communicate with the MongoDB database in an asynchronous fashion.
Even though the library is written in C, it can be used from higher level libraries such as
Python and JavaScript through the use of GObject introspection.
</li>
</ul>
</li>
<li>
<p>C# / .NET</p>
<ul>
<li><p><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson">Newtonsoft.Json.Bson</a>
- Adds support for reading and writing BSON to the popular Json.NET library.</li>
<li><p><a href="https://github.com/mongodb/mongo-csharp-driver/tree/master/src/MongoDB.Bson">MongoDB.Bson</a>
- Included with the official MongoDB C#/.NET driver.</li>
<li><p><a href="https://github.com/karlseguin/Metsys.Bson">Metsys.Bson</a>
- A BSON serializer/deserializer for .NET.</li>
</ul>
</li>
<li>
<p>C++</p>
<ul>
<li><p>The <a href="https://mongodb.github.io/mongo-cxx-driver/">MongoDB C++ Driver Library</a> - The official
MongoDB C++ driver includes a robust and well tested BSON implementation. You can use just the BSON
portion of the driver library if desired.</li>
<li><p><a href="https://github.com/jbenet/bson-cpp">github.com/jbenet/bson-cpp</a> - A standalone C++ BSON
implementation forked from the MongoDB C++ driver, with the non-BSON code pruned away.</li>
<li><p><a href="https://github.com/dwight/bson-cxx">github.com/dwight/bson-cxx</a> - Yet another C++ BSON
implementation originating from the MongoDB C++ driver. Non-BSON code was eliminated, Endian-awareness
was added, and some attempts were made to simplify the interface.</li>
<li><p><a href="https://github.com/nlohmann/json">JSON for Modern C++</a> - A library to make JSON a
first-class data type in C++ which can read and write a subset of BSON that can map to JSON.</li>
<li><p><a href="https://github.com/oatpp/oatpp-mongo">oatpp-mongo</a> - BSON object-mapper plus MongoDB driver for
<a href="https://oatpp.io/">Oat++ applications</a>.</li>
<li><p><a href="https://github.com/danielaparker/jsoncons">jsoncons</a> - A C++ header-only library for
constructing JSON and JSON-like data formats including BSON, supports encode/decode of BSON byte string.</li>
<li><p><a href="https://github.com/getml/reflect-cpp">reflect-cpp</a> - A C++-20 library that
provides a unified reflection-based interface for various serialization formats, including BSON.</li>
</ul>
</li>
<li>
<p>D</p>
<ul>
<li><p><a href="http://vibed.org/api/vibe.data.bson/">vibe.data.bson</a>
- BSON serialization and value handling.</li>
</ul>
</li>
<li>
<p>Dart</p>
<ul>
<li><p><a href="https://pub.dartlang.org/packages/bson_codec">bson_codec</a>
- A flexible serializer and deserializer for BSON documents.</li>
</ul>
</li>
<li>
<p>Delphi</p>
<ul>
<li><p><a href="https://github.com/SeanSolberg/DynamicDataObjects">DynamicDataObjects</a>
- Supports JSON, MessagePack, CBOR, CSV, BinaryJData, ICS, Smile, ION, UBJSON, and DDO.
It includes tools for command-line conversion between formats, a windows app for editing and diffing these file types, and an explorer previewer plugin.</li>
<li><p><a href="https://github.com/pebbie/pebongo/blob/master/_bson.pas">pebongo</a></li>
<li><p><a href="https://github.com/stijnsanders/TMongoWire#bsontoolspas">TMongoWire</a></li>
<li><p><a href="https://github.com/kxMaxx/kxBSON">kxBSON</a></li>
</ul>
</li>
<li>
<p>Elixir</p>
<ul>
<li><p><a href="https://github.com/checkiz/elixir-bson">elixir-bson</a>
- BSON implementation used by the elixir-mongo MongoDB driver.</li>
<li><p><a href="https://github.com/sean-lin/elixir-cbson">elixir-cbson</a>
- BSON NIF for Elixir/Erlang language</li>
</ul>
</li>
<li>
<p>Erlang</p>
<ul>
<li><p><a href="https://github.com/JacobVorreuter/emongo/blob/master/src/emongo_bson.erl">emongo_bson</a>
- Included with the emongo driver for Erlang.</li>
<li><p><a href="https://github.com/wpntv/erlmongo/">Erlmongo driver</a></li>
</ul>
</li>
<li>
<p>Factor</p>
<ul>
<li><p><a href="https://github.com/factor/factor/tree/master/extra/bson">bson.reader and bson.writer</a></li>
</ul>
</li>
<li>
<p>Fantom</p>
<ul>
<li><p><a href="https://eggbox.fantomfactory.org/pods/afBson">afBson</a>
- Implementation created to support the development of the afMongo driver for MongoDB.</li>
</ul>
</li>
<li>
<p>Gleam</p>
<ul>
<li><p><a href="https://github.com/massivefermion/gleam_bson">gleam_bson</a>
- gleam implementation of the bson spec to support gleam_mongo</li>
<li><p><a href="https://github.com/massivefermion/gleam_mongo">gleam_mongo</a> - mongodb driver for gleam</li>
</ul>
</li>
<li>
<p>Go</p>
<ul>
<li><p><a href="https://github.com/mongodb/mongo-go-driver/">mongo-go-driver</a> - Official MongoDB Go driver.</li>
<li><p><a
href="https://github.com/mongodb/mongo-go-driver/tree/master/bson">bson</a>
- BSON library implemented within the official MongoDB Go
driver. See the <a href="https://www.mongodb.com/docs/drivers/go/current/fundamentals/bson/">documentation</a> to learn more.</li>
</ul>
</li>
<li>
<p>Haskell</p>
<ul>
<li><p><a href="http://hackage.haskell.org/package/bson">bson package</a></li>
</ul>
</li>
<li>
<p>Java</p>
<ul>
<li><p><a href="https://mvnrepository.com/artifact/org.mongodb/bson">The BSON library (org.mongodb.bson)</a>
- A standalone BSON library, with a new Codec infrastructure that you can use to build
high-performance encoders and decoders without requiring an intermediate Map instance.</li>
<li><p><a href="https://github.com/michel-kraemer/bson4jackson">bson4jackson</a>
- A pluggable BSON generator and parser for Jackson JSON processor.</li>
<li><p><a href="https://github.com/kohanyirobert/ebson">ebson</a>
- Extensible BSON encoder/decoder library written in Java with pluggable Java-to-BSON type mappings.</li>
<li><p><a href="https://github.com/bguerout/jongo/tree/master/src/main/java/org/jongo/bson">Jongo (org.jongo.bson)</a>
- Included in the Jongo driver for MongoDB.</li>
<li><p><a href="https://github.com/coconut2015/cookjson">CookJson</a>
- Contains JSON and BSON parsers/generators for JSON API for Java (JSR 353).</li>
</ul>
</li>
<li>
<p>Julia</p>
<ul>
<li><p><a href="https://github.com/MikeInnes/BSON.jl">BSON.jl</a>
- A Julia package for working with the Binary JSON serialisation format.</li>
</ul>
</li>
<li>
<p>Lisp</p>
<ul>
<li><p><a href="https://github.com/fons/cl-mongo/blob/master/src/bson.lisp">cl-mongo</a>
- Common Lisp interface for MongoDB.</li>
</ul>
</li>
<li>
<p>Lua</p>
<ul>
<li><p><a href="https://github.com/tcoram/bson-lua">bson-lua</a>
- BSON generator/parser in pure Lua.</li>
<li><p><a href="https://github.com/cloudwu/lua-bson">lua-bson</a>
- A simple BSON library for Lua (implemented in C).</p></li>
</ul>
</li>
<li>
<p>Nim</p>
<ul>
<li><p><a href="https://github.com/JohnAD/bson">bson</a> (<a href="https://nimble.directory/pkg/bson">nimble package</a>)
- A BSON library in pure Nim.</p></li>
</ul>
</li>
<li>
<p>Node.js</p>
<ul>
<li><p><a href="https://github.com/mongodb/js-bson">bson</a>
- BSON serialization and deserialization library used by the official MongoDB Node.js driver.</li>
</ul>
</li>
<li>
<p>OCaml</p>
<ul>
<li><p><a href="http://massd.github.io/bson/">Bson.ml</a>
- A BSON encoder / decoder in OCaml, built for MongoDB.
</li>
</ul>
</li>
<li>
<p>Perl</p>
<ul>
<li><p><a href="http://search.cpan.org/dist/MongoDB/lib/MongoDB/BSON.pm">MongoDB::BSON</a>
- Included with the official Perl driver for MongoDB.</li>
<li><p><a href="http://search.cpan.org/dist/Mango/lib/Mango/BSON.pm">Mango::BSON</a>
- Included with Mango, a Pure-Perl non-blocking I/O MongoDB driver.</li>
</ul>
</li>
<li>
<p>PHP</p>
<ul>
<li><p><a href="https://github.com/mongodb/mongo-php-driver">BSON</a>
- Interface included with the official MongoDB PHP driver.
Builds on the <i>libbson</i> C library.</li>
</ul>
</li>
<li>
<p>Prolog</p>
<ul>
<li><p><a href="https://github.com/khueue/prolog-bson">prolog-bson</a>
- BSON encoder/decoder for Prolog. Used by the Prolog MongoDB community driver prolongo.</li>
</ul>
</li>
<li>
<p>Python</p>
<ul>
<li><p><a href="https://github.com/mongodb/mongo-python-driver">PyMongo</a>
- official MongoDB driver</li>
<li><p><a href="https://github.com/py-bson/bson">bson</a>
- Independent BSON codec for Python that doesn't depend on MongoDB.</li>
<li><p><a href="https://github.com/seprich/py-bson-rpc">py-bson-rpc</a>
- A Python library for JSON-RPC 2.0 and BSON-RPC on sockets (TCP and TCP+TLS).</li>
</ul>
</li>
<li>
<p>Ruby</p>
<ul>
<li><p><a href="http://rubygems.org/gems/bson">bson</a>
(with <a href="http://rubygems.org/gems/bson_ext">optional C extension</a>)
- A full featured BSON specification implementation used by the official
MongoDB Ruby driver.</li>
</ul>
</li>
<li>
<p>Rust</p>
<ul>
<li><p><a href="https://crates.io/crates/bson">bson</a>
- Encoding and decoding support for BSON built using the Serde framework.</li>
</ul>
</li>
<li>
<p>Scala</p>
<ul>
<li><p><a href="https://github.com/mongodb/mongo-scala-driver">MongoDB Scala driver</a>
- Official MongoDB driver.</p></li>
<li><p><a href="http://reactivemongo.org">ReactiveMongo</a>
- Reactive Scala Driver for MongoDB.</li>
</ul>
</li>
<li>
<p>Smalltalk</p>
<ul>
<li><p><a href="http://www.squeaksource.com/MongoTalk.html">Mongo-BSON</a>
- Part of the MongoTalk driver for MongoDB.
</li>
</ul>
</li>
<li>
<p>Standard ML(SML)</p>
<ul>
<li><p><a href="https://github.com/mdirolf/mlmongo/blob/master/bson.sml">mlmongo</a>
- Standard ML driver for MongoDB.
</li>
</ul>
</li>
<li>
<p>Swift</p>
<ul>
<li><p><a href="https://github.com/Frizlab/BSONSerialization">BSONSerialization</a>
- BSON Serialization in native Swift 4.</li>
<li><p><a href="https://github.com/OpenKitten/BSON">BSON</a>
- Native Swift library for BSON.</li>
</ul>
</li>
</ul>
</div>
<div class="col" id="col2">
<h3>BSON Tools</h3>
<ul>
<li>
<p><a href="https://github.com/dwight/bsontools">bsontools</a>
- Command line utilities for manipulating BSON files and for translating
them to and from other formats such as CSV, JSON, and XML.
</p>
</li>
<li>
<p><a href="http://formats.kaitai.io/bson/">Kaitai Struct: BSON</a>
- Machine-readable description for generating a BSON parser automatically
(C#, Java, JavaScript, Perl, PHP, Python, Ruby, ...).
</p>
</li>
</ul>
</div>
</div>
<div class="col" id="col3">
<h3>Projects Using BSON</h3>
<ul>
<li>
<p><a href="https://www.mongodb.com">MongoDB</a>
- A distributed document-oriented database using BSON as both the
network and on-disk representation of documents.
</p>
</li>
<li>
<p><a href="http://modeshape.jboss.org/">ModeShape</a>
- A hierarchical JCR data store using BSON to serialize the data.
</p>
</li>
<li>
<p><a href="https://github.com/bauman/bsonsearch">bsonsearch</a>
- BSON matching engine to perform offline document comparisons
without a MongoDB server. C dynamic library with Python wrapper.
</p>
</li>
</ul>
</div>
<p class="clear">
If you know of other BSON implementations or projects
using BSON, please <a href="https://github.com/mongodb/bsonspec.org">add them</a>.
</p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7301842-4");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>