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

@mongodb-js/compass-connect

v7.21.0

Published

Connection Screen Plugin that supports Compass

Readme

Compass Connect

This plugin is the initial connection screen dialog that appears when you open MongoDB Compass.

Usage

There are two ways in which you can connect to your desirable database: fill in connection fields manually or connect via a connection string (URI).

Connecting via URI

A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.

The standard MongoDB URI connection scheme has the form:

mongodb://[username:password@]host1[:port1][,...hostN[:portN]]][/[database][?options]]

And includes the following components:

mongodb:// -  A required prefix to identify that this is a string in the standard MongoDB connection format.

username:password@ - Optional authentication credentials. If specified, the client will attempt to log in to the specific database using these credentials after connecting.

host[:port] - The host (and optional port number) where the mongod instance (or the mongos instance for a sharded cluster) is running. You can specify a hostname, IP address, or UNIX domain socket. It can contain as many hosts as appropriate for your deployment topology.

/database - The optional name of the database to authenticate if the connection string includes authentication credentials in the form of username:password@.

?<options> - The optional query string that specifies connection string options as <name>=<value> pairs.

Here is some example of MongoDB URI:

mongodb://myDBReader:P%[email protected]:27017/admin?replicaSet=myRepl

uri-view

Connecting via the form

Users can switch to the form view by clicking "Fill in connection fields individually" on the top right corner of the screen. The connection form attributes are split into "Hostname" and "More options" views. On the first view users can enter hostname, port, indicate whether it is SRV record or regular one and specify the authentication mechanism. On the second view, a request can be decorated with additional connection options such as read preference, SSL method or SSH tunnel.

form-view