---
title: "Announcing self-hosted Deno KV, continuous backups, and replicas"
description: "Deno KV can now be self-hosted via an open-source, MIT-licensed `denokv` binary backed by SQLite and reachable from `Deno.openKv` over KV Connect."
url: "https://swe.quest/articles/announcing-self-hosted-deno-kv-continuous-backups-and-replicas-81eccdaa35f080ea"
canonical: "https://deno.com/blog/kv-is-open-source-with-continuous-backup"
source: "Deno"
published: "2023-11-10"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["databases","sqlite","replication","javascript"]
---

# Announcing self-hosted Deno KV, continuous backups, and replicas

A post on [Deno](https://swe.quest/sources/deno.md), published 2023-11-10, 6 min read, Announcement. Original: [https://deno.com/blog/kv-is-open-source-with-continuous-backup](https://deno.com/blog/kv-is-open-source-with-continuous-backup)

## Summary

Deno KV can now be self-hosted via an open-source, MIT-licensed \`denokv\` binary backed by SQLite and reachable from \`Deno.openKv\` over KV Connect. Databases hosted on Deno Deploy (backed by FoundationDB) can also stream continuous backups to S3 or GCS, and \`denokv --sync-from-s3\` runs a read-only local replica from those buckets. The replica keeps full mutation history, so \`denokv pitr list\` and \`pitr checkout\` give point-in-time recovery by versionstamp. Self-hosters own backups, replication and HA themselves, and Litestream or LiteFS is recommended for the SQLite file.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- Deno runtime basics
- key-value stores
- S3 object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

Deno KV, denokv, Deno Deploy, SQLite, FoundationDB, KV Connect, Amazon S3, Litestream

## Related posts

- [Introducing KV Backup for Deno Subhosting](https://swe.quest/articles/introducing-kv-backup-for-deno-subhosting-6886c3813b5bf7c0.md): Deno · 2024-07-09 · Medium · 4 min read · Serverless, Databases, JavaScript, Cloud platforms
  Deno Subhosting now supports continuous backup of Deno KV databases to customer-owned S3-compatible object storage, enabling point-in-time recovery.
- [Use Deno KV in Node with the new official npm package](https://swe.quest/articles/use-deno-kv-in-node-with-the-new-official-npm-package-b89917dc2e71fbde.md): Deno · 2023-12-12 · Medium · 4 min read · JavaScript, Databases, Serverless
  Deno KV is now usable from Node.js through the official @deno/kv npm package, which exposes the same API as Deno's built-in KV through a single openKv function.
- [Announcing Deno KV](https://swe.quest/articles/announcing-deno-kv-d97d28c9a7128cf3.md): Deno · 2023-05-01 · Medium · 5 min read · Databases, Consistency models, Replication, JavaScript
  Deno KV is a strongly consistent key-value database built into the Deno runtime.
- [Deno 1.33: Deno 2 is coming](https://swe.quest/articles/deno-1-33-deno-2-is-coming-2b1565b87f38fa7f.md): Deno · 2023-04-28 · Medium · 8 min read · JavaScript, Runtimes & VMs, TypeScript
  Deno 1.33 ships a built-in, unstable KV database (Deno.openKv) that persists to disk locally and is geo-replicated on Deno Deploy.
- [How to Build a CRUD API with Oak and Deno KV](https://swe.quest/articles/how-to-build-a-crud-api-with-oak-and-deno-kv-91b6dbad01b74ff7.md): Deno · 2023-06-01 · Medium · 9 min read · TypeScript, Databases, API design, Consistency models
  Deno KV, a key-value database built into the Deno runtime, can back a simple CRUD API for users and addresses served by Oak's Router.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
