CouchDB Client for Deno Built top of Fetch

CouchDB Client for Deno Built top of Fetch

deno-couchdb CouchDB client for Deno built top of fetch


CouchDB client for Deno built top of fetch


import { CouchClient } from "";

export type User = {
  id: number;
  name: string;
  years: number[];
async function main() {
  // create couch client with endpoint
  const couch = new CouchClient("http://localhost:5984");
  // choose db to use
  const db = couch.database<User>("users");
  // check if specified database exists
  if (!(await couch.databaseExists("users"))) {
    // create new database
    await couch.createDatabase("users");
  // insert new document
  const uesr = {
    id: 100,
    name: "deno",
    years: [2018, 2019]
  const { id, rev } = await db.insert(user);
  // get existing document
  let user = await db.get(id); // {id: 100, name: "deno", years: [2018,2019]}
  // update existing document
  await db.put(id, user, { rev });
  // delete existing document
  await db.delete(id);

Compatibility Table


  • HEAD /{db}/{docid}
  • GET /{db}/{docid}
  • PUT /{db}/{docid}
  • DELETE /{db}/{docid}
  • COPY /{db}/{docid}


  • HEAD /{db}/{docid}/{attname}
  • GET /{db}/{docid}/{attname}
  • PUT /{db}/{docid}/{attname}
  • DELETE /{db}/{docid}/{attname}


  • WIP...


WELCOME! There are still missing features and actually I'm not familiar with CouchDB 😇

Download Details:

Author: keroxp

Source Code:

deno node nodejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

AEM Querybuilder for JavaScript (Browser, Node, Deno)

Helix Querybuilder .AEM Querybuilder for JavaScript (Browser, Node, Deno)

NKeys for JavaScript - Node.js, Browsers, and Deno

A public-key signature system based on Ed25519 for the NATS ecosystem system for JavaScript. The nkeys.js library works in Deno, Node.js, and the browser!

Javascript module for easily generating mazes,compatible with both Deno and Node

A work-in-progress Javascript maze generator module, compatible with both Deno and Node.

Deno Tutorial for Beginners: Deno vs. Node: Better Than NodeJS?

Deno is released, it’s time to find out if it can prove a worthy competition for Node.js. What is Deno? Why Deno can be considered an alternative to Node? The main differences between Deno and Node. Write a simple Deno app.

What is Deno? The Node.JS Killer? The Deno-minator to Node?

What is Deno? The Node.JS Killer? The Deno-minator to Node? Deno is the new hype and will it be better than node.js? Deno is a secure runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language that addresses Node’s shortcomings