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

@gribnoysup/compass-import-export

v6.0.0

Published

Compass Import/Export Plugin

Readme

Compass Import/Export Plugin

mongoimport and mongoexport functionality in Compass.

Development

After cloning this repository and running npm install, you can try this plugin with a real MongoDB Server in electron by running:

DEBUG=mongo* npm start

You can also utilize Storybook when developing components:

npm run storybook;

Testing

npm test

Import Test Cases

See files in the ./test directory.

TODO/Ideas

  • [x] Import: Move away from state.fields being array of objects to using all array's of strings. For now, there is some duplication of fields+transforms+excludes we'll come back to and fixup.
  • [x] import-apply-type-and-projection supports nested dotnotation and only uses state.importData.transforms
  • [ ] Import and Export: New Option: If you need to specify extended-json legacy spec
  • [ ] Import: bson-csv: support dotnotation expanded from . .<bson_type>() caster like mongoimport does today
  • [ ] Import: Preview Table: Use highlight.js, mongodb-ace-mode, or something so the text style of the value within a cell matches its destination type
  • [ ] Export: Use electron add to destination file to recent documents
  • [ ] Import and Export: Show system notification when operation completes. like dropbox screenshot message. toast "XX/XX documents successfully"
  • [ ] Import: expose finer-grained bulk op results in progress -> "View Import Log File"
  • [ ] Import: New Option: drop target collection before import
  • [ ] Import: New Option: define import mode: insert, upsert, merge
  • [ ] Import: New Option: specify a different path for _id such as business_id in the yelp dataset
  • [ ] Import: Option for path to pass to JSONStream for nested docs (e.g. results array when fetching JSON from a rest api)
  • [ ] Import: New Option: Paste URL to fetch from
  • [ ] Import: Preview Table: use react-table and react-window for fixed headers and more # of documents to preview
  • [ ] Import: Preview Table: Allow transpose on fields/values so all type selection and projection is in a single left aligned list
  • [ ] Import: Multi file import via archive (supports gzip/zip/bzip2/etc.)
  • [ ] Import: Use schema parser or something later to handle complete tabular renderings of sparse/polymorphic
  • [ ] Import: Improve import-size-guesstimator
  • [ ] Import: guess delimiter in src/utils/detect-import-file.js
  • [ ] Import and Export: Extract anything from ./src/utils that could live as standalone modules so other things like say a cli or a different platform could reuse compass' import/export business logic and perf.
  • [ ] Refactor src/modules/ so import and export reuse a common base

License

Apache 2.0