{"id":18812531,"url":"https://github.com/jsreport/jsreport-mongodb-store","last_synced_at":"2025-04-13T21:24:07.951Z","repository":{"id":57286263,"uuid":"43899562","full_name":"jsreport/jsreport-mongodb-store","owner":"jsreport","description":"jsreport extension adding support for storing report templates inside mongodb.","archived":false,"fork":false,"pushed_at":"2021-08-20T16:49:03.000Z","size":252,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T11:43:34.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jsreport.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsreport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-08T15:42:20.000Z","updated_at":"2021-08-20T16:49:06.000Z","dependencies_parsed_at":"2022-09-09T23:11:52.715Z","dependency_job_id":null,"html_url":"https://github.com/jsreport/jsreport-mongodb-store","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-mongodb-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-mongodb-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-mongodb-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-mongodb-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsreport","download_url":"https://codeload.github.com/jsreport/jsreport-mongodb-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487671,"owners_count":21112191,"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":[],"created_at":"2024-11-07T23:34:01.716Z","updated_at":"2025-04-13T21:24:07.914Z","avatar_url":"https://github.com/jsreport.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**\n--\n\n# jsreport-mongodb-store\n\n[![Build Status](https://travis-ci.org/jsreport/jsreport-mongodb-store.png?branch=master)](https://travis-ci.org/jsreport/jsreport-mongodb-store)\n\n[jsreport](http://jsreport.net/) extension adding support for storing templates and reports inside [mongodb](https://www.mongodb.org/).\n\n## Installation\n\n\u003e npm install jsreport-mongodb-store\n\nThen alter jsreport configuration with:\n\n```js\n{\n  ....\n  \"store\": {\n    \"provider\": \"mongodb\",\n  },\n  \"blobStorage\": {\n    \"provider\": \"gridFS\"\n  },\n  \"extensions\": {\n    \"mongodb-store\": {\n      \"address\": \"127.0.0.1\",\n      \"databaseName\" : \"std\",\n      \"connectOptions\": { /* any custom mongodb connection options can be passed here */ },\n      \"prefix\": \"jsreport_\" // optional prefix for jsreport collections, defaults to no prefix\n    }\n  }\n}\n```\n\nConnection options can be passed as values of `mongodb-store` key in config or as values inside the `connectOptions` key.\n\nNote that both features are optional, you can use mongodb GridFS only for reports storage and fs-store (or any other store) for storing templates, also you can keep using file system storage for reports when required. In this case change `blobStorage` value to `fileSystem`.\n\nYou can also pass connection uri like this\n\n```js\n\"store\": {\n  \"provider\": \"mongodb\"\n},\n\"extensions\": {\n  \"mongodb-store\": {\n    \"uri\": \"mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test\"\n  }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-mongodb-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsreport%2Fjsreport-mongodb-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-mongodb-store/lists"}