by, Chris Axxwell

MerlinDB the indexedDB API database based on MongoDB.'Alakazam'

This entire site is using MerlinDB, so, you can test it in the dashboard and interestingly check the element inspector in IndexedDB. Bring your mongoDB and mongoose techniques to indexedDB!

Read de docsDownload
1
  • import
  • MerlinDB,
  • {
  • Schema
  • }
  • from
  • "@chrisaxxwell/merlin-db";
    2
  • //Or if you are using 'merlindb.max.js' just call 'new MerlinDB()';
  • 3
    4
  • const
  • merlin =
  • new
  • MerlinDB(
  • )
  • ;
    5merlin
  • .connect(
  • "MY-CATS-DATABASE"
  • )
  • ;
    6
    7
  • const
  • Cats = merlin
  • .model(
  • 'Cats-model',
  • {
  • 8  
  • name:
  • {
  • type:
  • String
  • ,
  • required:
  • true
  • }
  • ,
    9  
  • breed:
  • String
  • 10
  • }
  • )
  • ;
    11
    12Cats
  • .insertOne(
  • {
  • name:
  • "Alvin"
  • }
  • )
  • .then(
  • data =>
  • {
  • 13   console
  • .log(
  • data
  • )
  • ;
    14  
  • //Success
  • 🔮
    15
  • }
  • )
  • ;
    16
    17Cats
  • .find(
  • {
  • name:
  • "Alvin"
  • }
  • )
  • .then(
  • data =>
  • {
  • 18   console
  • .log(
  • data
  • )
  • ;
    19  
  • //{ name: "alvin", breed: "Siamese" };🔮
  • 20
  • }
  • )
  • ;

    MerlinDB is an IndexedDB-based database designed to store data locally in web browsers. Unlike conventional databases such as MongoDB, MerlinDB is optimized for web applications, offering an efficient and lightweight solution for storing data at browser runtime.

    🔮 Why MerlinDB?

    MerlinDB was carefully developed to simplify and improve the use of the IndexedDB API in web browsers. MerlinDb allows developers to add, get, update and remove data at scale, providing a fluid and effective experience. Inspired by the renowned MongoDB and Mongoose, MerlinDB is a sophisticated and intuitive tool especially designed for those familiar with MongoDB and Mongoose. Its intuitive interface and powerful features make it the ideal choice for professionals looking for superior productivity and performance in their web development projects.

    🔮 Getting started

    IntroductionGuetting StartCRUDGuides

    🔮 News

    Twitter

    🔮 Support

    GitHubMongoDB ManualBuy me a coffee ☕️