Deno KV

Deno KV

DenoKV is a fast, simple key-value DB for persistent storage in Deno apps

Deploy Deno KV

denokv

denoland/denokv:latest

Just deployed

/data

DenoKV is a built-in key-value database designed for the Deno runtime, allowing developers to store and retrieve simple data structures in a persistent and scalable manner. It supports both local and remote databases, making it flexible for various application needs. With a minimalistic API and seamless integration into Deno, DenoKV is ideal for projects requiring fast and efficient data storage.

How to Connect with a Custom URL

To connect to a DenoKV instance using a custom URL, use the following example:

// Connect to the DenoKV instance using a custom URL
const kv = await Deno.openKv("http://denokv.railway.internal");

// Set a value with the specified key
await kv.set(["key"], "value");

// Retrieve and log the value associated with the key
console.log(await kv.get(["key"])); // Output: value

Public Access on Railway

Note: To make your DenoKV instance publicly accessible, you need to add a custom domain on Railway. This step ensures external applications can interact with your DenoKV instance. You can configure this by setting up a custom domain within your Railway project settings and pointing it to your DenoKV service. This allows for easy public access to your database via the provided URL.


Template Content

More templates in this category

New

ReadySet

ReadySet

A lightweight caching engine for Postgres


0

New

Flare

Flare

A modern, lightning-fast file sharing platform built for self-hosting


0

New

EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


0