{"id":13404069,"url":"https://github.com/mongodb-js/compass-import-export","last_synced_at":"2025-03-14T08:32:27.938Z","repository":{"id":51801862,"uuid":"113749936","full_name":"mongodb-js/compass-import-export","owner":"mongodb-js","description":"Compass Import/Export Plugin","archived":true,"fork":false,"pushed_at":"2021-05-09T22:55:33.000Z","size":15918,"stargazers_count":6,"open_issues_count":28,"forks_count":2,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-10-19T02:00:41.721Z","etag":null,"topics":["compass-plugin"],"latest_commit_sha":null,"homepage":"https://mongodb-js.github.io/compass-import-export","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-10T12:56:09.000Z","updated_at":"2023-01-28T08:51:29.000Z","dependencies_parsed_at":"2022-08-17T15:40:43.248Z","dependency_job_id":null,"html_url":"https://github.com/mongodb-js/compass-import-export","commit_stats":null,"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-js%2Fcompass-import-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-js%2Fcompass-import-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-js%2Fcompass-import-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-js%2Fcompass-import-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-js","download_url":"https://codeload.github.com/mongodb-js/compass-import-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243547578,"owners_count":20308733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compass-plugin"],"created_at":"2024-07-30T19:01:38.524Z","updated_at":"2025-03-14T08:32:27.364Z","avatar_url":"https://github.com/mongodb-js.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Compass Import/Export Plugin [![][travis_img]][travis_url]\n\n\u003e [mongoimport][mongoimport] and [mongoexport][mongoexport] functionality in [Compass][compass].\n\n## Development\n\nAfter cloning this repository and running `npm install`, you can try this plugin with a real MongoDB Server in electron by running:\n\n```bash\nDEBUG=mongo* npm start\n```\n\nYou can also utilize [Storybook](https://storybook.js.org/) when developing components:\n\n```bash\nnpm run storybook;\n```\n\n## Testing\n\n```bash\nnpm test\n```\n\n### Import Test Cases\n\nSee files in the `./test` directory.\n\n## TODO/Ideas\n\n- [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.\n- [x] import-apply-type-and-projection supports nested dotnotation and only uses `state.importData.transforms`\n- [ ] Import and Export: New Option: If you need to [specify extended-json legacy spec](https://github.com/mongodb/js-bson/pull/339)\n- [ ] Import: bson-csv: support dotnotation expanded from `.` .\u003cbson_type\u003e() caster like [mongoimport does today][mongoimport]\n- [ ] 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\n- [ ] Export: Use electron add to destination file to [recent documents](https://electronjs.org/docs/tutorial/recent-documents)\n- [ ] Import and Export: Show system notification when operation completes. like dropbox screenshot message. toast \"XX/XX documents successfully\"\n- [ ] Import: expose finer-grained bulk op results in progress -\u003e \"View Import Log File\"\n- [ ] Import: New Option: drop target collection before import\n- [ ] Import: New Option: define import mode: insert, upsert, merge\n- [ ] Import: New Option: specify a different path for `_id` such as `business_id` in the yelp dataset\n- [ ] Import: Option for path to pass to JSONStream for nested docs (e.g. `results` array when fetching JSON from a rest api)\n- [ ] Import: New Option: Paste URL to fetch from\n- [ ] Import: Preview Table: use `react-table` and [`react-window`](https://www.npmjs.com/package/react-window-infinite-loader) for fixed headers and more # of documents to preview\n- [ ] Import: Preview Table: Allow transpose on fields/values so all type selection and projection is in a single left aligned list\n- [ ] Import: Multi file import via archive (supports gzip/zip/bzip2/etc.)\n- [ ] Import: Use schema parser or something later to handle complete tabular renderings of sparse/polymorphic\n- [ ] Import: Improve import-size-guesstimator\n- [ ] Import: guess delimiter in `src/utils/detect-import-file.js`\n- [ ] 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.\n- [ ] Refactor src/modules/ so import and export reuse a common base\n\n## License\n\nApache 2.0\n\n[travis_img]: https://travis-ci.org/mongodb-js/compass-import-export.svg?branch=master\n[travis_url]: https://travis-ci.org/mongodb-js/compass-import-export\n[compass]: https://github.com/mongodb-js/compass\n[mongoimport]: https://docs.mongodb.com/manual/reference/program/mongoimport\n[mongoexport]: https://docs.mongodb.com/manual/reference/program/mongoexport\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-js%2Fcompass-import-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-js%2Fcompass-import-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-js%2Fcompass-import-export/lists"}