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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mongo-runner

v0.6.3

Published

MongoDB Runner is a VSCode extension to connect MongoDB instance.

Downloads

11

Readme

MongoDB Runner

Mongo Runner is a VSCode plugin helps developers to connect to their MongoDB instance to do some basic operations such as: simple query, tree topology, index, server statistics etc.

Features

Mongo Runner provides general operations about using MongoDB. It can connect to Mongo Single Instance, Mongo Replicaset and Mongo Shard Cluster.

For example below is a sceenshot of Mongo Shard Cluster Topology:

MongoDB Shard Cluster Topology

MongoDB Runner Editor

By open MongoDB Runner editor, you can running MongoDB NodeJS driver inside VSCode and get the output on the right view.

MongoDB Runner Editor

Requirements

NA

Extension Settings

Setup MongoDB Connection in your workspace setting. Be aware that the name for each connection need to be unique.

"mongoRunner": {
        "connections": [
            {
                "name": "connection1",
                "url": "mongodb://localhost:27017/test"
            },
            {
                "name": "connection2",
                "url": "mongodb://localhost:27018/test"
            }
        ]
    }

In order to secure user's password, we don't support put password in the configuration file as plain text. Instead, when you specify the user name in the configuration file, MongoDB Runner will prompt you to input the password.

SSL Connection

For SSl connection, please use options configuration. You can also put all other mongo connection options there.

"mongoRunner": {
        "connection": [{
            "name": "connectionName",
            "url": "mongodb://localhost:27017",
            "user": "username",
            "options": {
                "ssl": true
            }
        }]
    }

Private key connection setting

"mongoRunner": {
        "connection": [{
            "name": "connectionName",
            "url": "mongodb://localhost:27017",
            "user": "username",
            "options": {
                "sslCert": "/Users/Document/mongodb.pem",
                "sslKey": "/Users/Document/mongodb-cert.key",
                "ssl": true
            }
        }]
    }

Query

Simple Query

User below format for querying ObjectId:

{ "_id": new ObjectID("5ba2bfcf6d2a0312c7ec12c6") }

Known Issues

Please submit any issues you found or any suggestions on github issues.

Support MongoDB Runner

While MongoDB Runner is generously offered to everyone free of charge, if you find it useful, please consider supporting it.

Donate via PayPal

Slack

Feel free join slack channel for MongoDB Runner at: mongodb-runner.slack.com