Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Logo

AloeDB

Light, Embeddable, NoSQL database for Deno

Work in progress!

Features

  • ✨ Simple to use API, similar to MongoDB!
  • βš– No dependencies, even without std!
  • πŸš€ Optimized for a large number of operations.
  • πŸ“ Stores data in JSON file.

Example

import { AloeDB } from 'https://deno.land/x/aloedb/mod.ts'

// Structure of stored documents
interface Film {
    title: string;
    year: number;
    film: boolean;
    genres: string[];
    authors: { director: string };
}

// Initialization
const db = new AloeDB<Film>('./path/to/the/file.json');

// Insert operations
await db.insertOne({ 
    title: 'Drive', 
    year: 2011,
    film: true,
    genres: ['crime', 'drama', 'noir'],
    authors: { director: 'Nicolas Winding Refn' }
});

// Search operations
const found = await db.findOne({ title: 'Drive', film: true });

// Delete operations
await db.deleteOne({ title: 'Drive' });

P.S: More example can be found here!