{"id":19000456,"url":"https://github.com/typesense/typesense-mongodb","last_synced_at":"2025-04-22T17:05:45.208Z","repository":{"id":38368418,"uuid":"374016086","full_name":"typesense/typesense-mongodb","owner":"typesense","description":"A Node.js CLI to sync documents from a MongoDB collection to Typesense.","archived":false,"fork":false,"pushed_at":"2021-08-16T09:39:18.000Z","size":1804,"stargazers_count":32,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-17T07:17:32.850Z","etag":null,"topics":["mongodb","typesense"],"latest_commit_sha":null,"homepage":"https://typesense.org/docs/0.21.0/guide/mongodb-full-text-search.html","language":"TypeScript","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/typesense.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":"2021-06-05T04:02:50.000Z","updated_at":"2025-01-23T13:33:07.000Z","dependencies_parsed_at":"2022-07-12T17:28:08.223Z","dependency_job_id":null,"html_url":"https://github.com/typesense/typesense-mongodb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Ftypesense-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Ftypesense-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Ftypesense-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Ftypesense-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typesense","download_url":"https://codeload.github.com/typesense/typesense-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285662,"owners_count":21405296,"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":["mongodb","typesense"],"created_at":"2024-11-08T18:07:17.905Z","updated_at":"2025-04-22T17:05:45.166Z","avatar_url":"https://github.com/typesense.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typesense MongoDB Integration\n![CircleCI](https://img.shields.io/circleci/build/github/typesense/typesense-mongodb/master)\n\nA CLI to sync documents from a MongoDB collection to Typesense. \n\n## Installation\n\n```bash\nnpm install -g typesense-mongodb\n```\n## Usage\n\n### Prerequisites\n\n- Make sure you are running MongoDB instance in a replica set. Or convert your [standalone MongoDB instance to MongoDB replica set](https://docs.mongodb.com/manual/tutorial/convert-standalone-to-replica-set/).\n- We highly recommend that you stop writes to your MongoDB collection until you get a message from the process.\n- If you are familiar with Typesense, it has an option to mark certain fields as **facets**. If you would like to use this feature, create your own Typesense collection and pass the collection name as an argument.\n\n### Example\n\n```bash\ntypesense-mongodb \\\n    --mongo-collection=collection \\\n    --mongo-database=database \\\n    --typesense-collection=collection \\\n    --mongo-url=mongodb://localhost:27017 \\\n    --typesense-url=http://localhost:8108 \\\n    --typesense-api-key=xyz\n```\n\n### Arguments\n\n| Parameter | Default | Description |\n| :--- | :--- |:--- |\n| `--mongo-database` | database | MongoDB database name |\n| `--mongo-collection` | collection | MongoDB collection name |\n| `--mongo-url` | mongodb://localhost:27017 | MongoDB instance URI along with username and passsword |\n| `--typesense-collection` | collection | Typesense collection name |\n| `--typesense-url` | http://localhost:8108 | Typesense endpoint URL |\n| `--typesense-api-key` | xyz | Typesense API key |\n\n\n## Support\n\nPlease open a Github issue or join our [Slack Community](https://join.slack.com/t/typesense-community/shared_invite/zt-mx4nbsbn-AuOL89O7iBtvkz136egSJg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesense%2Ftypesense-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypesense%2Ftypesense-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesense%2Ftypesense-mongodb/lists"}