{"id":18685808,"url":"https://github.com/grapesjs/storage-indexeddb","last_synced_at":"2025-04-12T04:51:56.599Z","repository":{"id":57253127,"uuid":"132336209","full_name":"GrapesJS/storage-indexeddb","owner":"GrapesJS","description":"IndexedDB storage wrapper for GrapesJS","archived":false,"fork":false,"pushed_at":"2023-06-12T08:42:28.000Z","size":184,"stargazers_count":24,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T04:51:44.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapesJS.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-05-06T12:27:39.000Z","updated_at":"2024-12-20T19:20:04.000Z","dependencies_parsed_at":"2024-01-29T20:35:07.092Z","dependency_job_id":null,"html_url":"https://github.com/GrapesJS/storage-indexeddb","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstorage-indexeddb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstorage-indexeddb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstorage-indexeddb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstorage-indexeddb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/storage-indexeddb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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-07T10:24:20.447Z","updated_at":"2025-04-12T04:51:56.565Z","avatar_url":"https://github.com/GrapesJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrapesJS IndexedDB\n\nIndexedDB storage wrapper for GrapesJS\n\n\u003e Requires GrapesJS v0.19.* or higher\n\n\n\n## Summary\n\n* Plugin name: `grapesjs-indexeddb`\n* Storage\n  * `indexeddb`\n\n\n\n\n\n## Options\n\n|Option|Description|Default|\n|-|-|-\n| `type` | Type id used to register the new storage. You can use this option in case you want to replace the already available storages (eg. `local`). | `indexeddb` |\n| `options` | Default storage options. | `{ key: 'gjsProject', dbName: 'gjs', objectStoreName: 'projects' }` |\n\n\n\n\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-indexeddb`\n* NPM\n  * `npm i grapesjs-indexeddb`\n* GIT\n  * `git clone https://github.com/GrapesJS/storage-indexeddb.git`\n\n\n\n\n\n## Usage\n\n```html\n\u003clink href=\"https://unpkg.com/grapesjs/dist/css/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003cscript src=\"https://unpkg.com/grapesjs\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-indexeddb.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  var editor = grapesjs.init({\n      container : '#gjs',\n      ...\n      storageManager: { type: 'indexeddb' },\n      plugins: ['grapesjs-indexeddb'],\n      pluginsOpts: {\n        'grapesjs-indexeddb': {\n          options: {\n            // In case of multiple projects on the same page indicate an id to\n            // prevent collisions\n            key: 'user-project-id',\n            // Update IndexedDB name for the DB and the table containing project data\n            dbName: 'editorLocalData',\n            objectStoreName: 'projects',\n          }\n        }\n      }\n  });\n\u003c/script\u003e\n```\n\n\n\n\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/GrapesJS/storage-indexeddb.git\n$ cd grapesjs-indexeddb\n```\n\nInstall dependencies\n\n```sh\n$ npm i\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\n\n\n\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fstorage-indexeddb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fstorage-indexeddb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fstorage-indexeddb/lists"}