npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

coconutdb

v3.0.0-beta

Published

Non-Relational Document-Oriented Database

Readme

CoconutDB

About

  • South Asian and Sri Lankan First NoSQL Database and document-oriented database
  • Development Start: 28 November 2024
  • Developers: Jehan Weerasuriya

CoconutDB is a lightweight, developer-friendly NoSQL database that stores data in JSON files — perfect for small-scale applications, experiments, or educational projects.

  • 🚀 First released: 28 November 2024

  • 🧹 Document-oriented & NoSQL

  • ⚙️ Minimal configuration required

  • 🔧 Built-in CLI to generate models

  • 🌍 Designed for local file-based persistence

  • 📦 Latest version: v3.0.0

📁 Installation

  • install via node package manager (NPM)

npm i coconutdb

🚀 Quick Start

  1. install following NPM packages
  • in your existing NodeJS app (using Expres.js)

npm i joi
  • this joi for validate model inputs
  1. On Your NodeJS app
  • create file in model folder (student.js)

    const Joi = require('joi');
    const Model = require('coconutdb');

    const studentSchema = Joi.object({
        name: Joi.string().required(),
        email: Joi.string().email().required(),
        enrollmentNo: Joi.string().required(),
    });

    class StudentModel extends Model {
        constructor() {
            super('students', studentSchema);
        }
    }

    module.exports = new StudentModel();

  1. Use of Controller
  • create controller called StudentController.js in Controller folder

const studentModel = require('../model/Student');

exports.createStudent = async (req, res) => {
    try {
        const student = await studentModel.create(req.body);
        res.status(201).json(student);
    } catch (err) {
        res.status(400).json({ error: err.message });
    }
};

exports.getAllStudents = async (req, res) => {
    try {
        const students = await studentModel.findAll();
        res.json(students);
    } catch (err) {
        res.status(500).json({ error: err.message });
    }
};

  • or use can use your own approach for this
  1. Creating Route
  • in your NodeJS app on routes folder

  • create file called studentRoute.js


    const express = require('express');
    const router = express.Router();
    const studentController = require('../controller/studentController');

    router.post('/', studentController.createStudent);
    router.get('/', studentController.getAllStudents);

    module.exports = router;

  1. Call route in your entry file

const express = require('express');
const app = express();
const studentRoutes = require('./routes/studentRoutes');

app.use(express.json());

app.use('/students', studentRoutes);

app.get('/', (req, res) => {
    res.send(`Server running on port ${PORT}`);
});


const PORT = process.env.PORT || 5000;
app.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});

IMPORTANT

  • if you getting errors please check the paths is correct

    • controller
    • router

so if you need to check this use POSTMAN

Core Features

  • CoconutDB Web Alpha Version (Available for Limited time)
  • still in development stage

Releases

v1.0.0 28 November 2024

  • still in development stage

v2.0.0 19 December 2024

  • still in development stage
  • Access to CoconutDB Web Alpha Verison (Available for Limited time)

v3.0.0-beta 03 June 2025

  • Currently in development
  • 3rd Major Release
  • Simplified Integration (Core feature of the 3rd Major Release)
  • Access to CoconutDB Web Alpha Version (Previously available for a limited time) – ENDED NOW

Developers