33 breaking releases

new 0.34.0 Nov 30, 2023
0.32.0 Nov 17, 2023
0.21.0 Jul 26, 2023
0.4.0 Mar 31, 2023

#360 in Database interfaces

Download history 1166/week @ 2023-08-10 920/week @ 2023-08-17 1091/week @ 2023-08-24 1118/week @ 2023-08-31 1403/week @ 2023-09-07 1050/week @ 2023-09-14 1130/week @ 2023-09-21 1013/week @ 2023-09-28 785/week @ 2023-10-05 761/week @ 2023-10-12 846/week @ 2023-10-19 898/week @ 2023-10-26 1169/week @ 2023-11-02 980/week @ 2023-11-09 806/week @ 2023-11-16 825/week @ 2023-11-23

3,941 downloads per month
Used in 11 crates (via deno_runtime)

MIT license

3MB
71K SLoC

TypeScript 37K SLoC // 0.2% comments JavaScript 22K SLoC // 0.1% comments Rust 12K SLoC // 0.5% comments

deno_kv

This crate provides a key/value store for Deno. For an overview of Deno KV, please read the manual.

Storage Backends

Deno KV has a pluggable storage interface that supports multiple backends:

  • SQLite - backed by a local SQLite database. This backend is suitable for development and is the default when running locally. It is implemented in the denokv_sqlite crate.
  • Remote - backed by a remote service that implements the KV Connect protocol, for example Deno Deploy.

Additional backends can be added by implementing the Database trait.

KV Connect

The KV Connect protocol allows the Deno CLI to communicate with a remote KV database. The specification for the protocol, and the protobuf definitions can be found in the denokv repository, under the proto directory.

Dependencies

~154MB
~3M SLoC