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

@jsreport/jsreport-mongodb-store

v4.2.0

Published

jsreport extension adding support for storing report templates inside mongodb

Readme

@jsreport/jsreport-mongodb-store

NPM Version

jsreport extension adding support for storing templates and reports inside mongodb.

Installation

npm install @jsreport/jsreport-mongodb-store

Then alter jsreport configuration with:

{
  ....
  "store": {
    "provider": "mongodb",
  },
  "blobStorage": {
    "provider": "mongodb"
  },
  "extensions": {
    "mongodb-store": {
      "address": "127.0.0.1",
      "databaseName" : "std",
      "connectOptions": { /* any custom mongodb connection options can be passed here */ },
      "prefix": "jsreport_" // optional prefix for jsreport collections, defaults to no prefix
    }
  }
}

Connection options can be passed as values of mongodb-store key in config or as values inside the connectOptions key.

Note that both features are optional, you can use mongodb GridFS only for reports storage and fs-store (or any other store) for storing templates, also you can keep using file system storage for reports when required. In this case change blobStorage value to fileSystem.

You can also pass connection uri like this

"store": {
  "provider": "mongodb"
},
"extensions": {
  "mongodb-store": {
    "uri": "mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test"
  }
}

Changelog

4.2.0

  • minimum node.js version is now 22.18.0

4.1.0

  • optimizations for big workspaces
  • create store indexes during schema creation

4.0.0

  • minimum node.js version is now 18.15.0
  • update mongodb client to v6

3.2.0

  • updated mongodb driver

3.1.1

  • use matched count instead of the modified count

3.1.0

  • optimizations regarding profiler persistence

3.0.1

don't fail when removing not existing blob

3.0.0-beta.1

Adaptations for the v3 APIs