{"id":20109842,"url":"https://github.com/hyper63/hyper-adapter-pouchdb","last_synced_at":"2025-08-15T15:14:07.218Z","repository":{"id":40558606,"uuid":"477828634","full_name":"hyper63/hyper-adapter-pouchdb","owner":"hyper63","description":"PouchDB adapter for Hyper Data port","archived":false,"fork":false,"pushed_at":"2023-11-29T00:18:10.000Z","size":110,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T20:38:37.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hyper63.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-04T18:39:04.000Z","updated_at":"2023-12-14T16:33:10.000Z","dependencies_parsed_at":"2023-11-29T01:28:38.579Z","dependency_job_id":"df6f97cc-519e-446c-b730-4d8aee71e57b","html_url":"https://github.com/hyper63/hyper-adapter-pouchdb","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"hyper63/adapter-template","purl":"pkg:github/hyper63/hyper-adapter-pouchdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-pouchdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-pouchdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-pouchdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-pouchdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyper63","download_url":"https://codeload.github.com/hyper63/hyper-adapter-pouchdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-pouchdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270586468,"owners_count":24611317,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T18:09:36.798Z","updated_at":"2025-08-15T15:14:07.175Z","avatar_url":"https://github.com/hyper63.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003ehyper-adapter-pouchdb\u003c/h1\u003e\n\u003cp align=\"center\"\u003eA Data port adapter that uses PouchDB in the \u003ca href=\"https://hyper.io/\"\u003ehyper\u003c/a\u003e  service framework\u003c/p\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nest.land/package/hyper-adapter-pouchdb\"\u003e\u003cimg src=\"https://nest.land/badge.svg\" alt=\"Nest Badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/hyper63/hyper-adapter-pouchdb/actions/workflows/test-and-publish.yml\"\u003e\u003cimg src=\"https://github.com/hyper63/hyper-adapter-pouchdb/actions/workflows/test-and-publish.yml/badge.svg\" alt=\"Test\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/hyper63/hyper-adapter-pouchdb/tags/\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/hyper63/hyper-adapter-pouchdb\" alt=\"Current Version\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003c!-- toc --\u003e\n\n- [Getting Started](#getting-started)\n  - [Storage Options](#storage-options)\n  - [Storage Directory](#storage-directory)\n- [Installation](#installation)\n- [Features](#features)\n- [Methods](#methods)\n- [Contributing](#contributing)\n- [Testing](#testing)\n- [License](#license)\n\n\u003c!-- tocstop --\u003e\n\n## Getting Started\n\n`hyper.config.js`\n\n```js\nimport { default as pouchdb } from 'https://x.nest.land/hyper-adapter-pouchdb@VERSION/mod.js'\n\nexport default {\n  app: opine,\n  adapter: [\n    { port: 'data', plugins: [pouchdb()] },\n  ],\n}\n```\n\n### Storage Options\n\nThis adapter can use either `memory`, `idb` (IndexedDB polyfill), or `indexeddb` (IndexedDB BETA.\nSee [distinction here](https://pouchdb.com/2020/02/12/pouchdb-7.2.0.html)) for `PouchDB` storage.\nYou may choose which storage to use by passing the `storage` option to the adapter:\n\n```js\nimport {\n  default as pouchdb,\n  PouchDbAdapterTypes,\n} from 'https://x.nest.land/hyper-adapter-pouchdb@VERSION/mod.js'\n\npouchdb({ storage: PouchDbAdapterTypes.memory })\n// OR use IndexedDB for persistence\npouchdb({ storage: PouchDbAdapterTypes.idb })\n```\n\nThe default storage option is `idb`\n\n### Storage Directory\n\nWhen using the `idb` (IndexedDB polyfill), you can specify where `.sqlite` files used by `indexeddb`\nare placed by providing a `dir` option:\n\n```js\nimport { default as pouchdb } from 'https://x.nest.land/hyper-adapter-pouchdb@VERSION/mod.js'\n\npouchdb({ dir: '/tmp' })\n```\n\nThe default directory is the `cwd`\n\n## Installation\n\nThis is a Deno module available to import from\n[nest.land](https://nest.land/package/hyper-adapter-pouchdb)\n\ndeps.js\n\n```js\nexport { default as pouchdb } from 'https://x.nest.land/hyper-adapter-pouchdb@VERSION/mod.js'\n```\n\n## Features\n\n- Create a `PouchDB` datastore\n- Remove a `PouchDB` datastore\n- Create a document in a `PouchDB` datastore\n- Retrieve a document in a `PouchDB` datastore\n- Update a document in a `PouchDB` datastore\n- Remove a document from a `PouchDB` datastore\n- List documents in a `PouchDB` datastore\n- Query documents in a `PouchDB` datastore\n- Index documents in a `PouchDB` datastore\n- Bulk create documents in a `PouchDB` datastore\n\n## Methods\n\nThis adapter fully implements the Data port and can be used as the\n[hyper Data service](https://docs.hyper.io/data-api) adapter\n\nSee the full port [here](https://nest.land/package/hyper-port-data)\n\n## Contributing\n\nContributions are welcome! See the hyper\n[contribution guide](https://docs.hyper.io/oss/contributing-to-hyper)\n\n## Testing\n\n```\n./scripts/test.sh\n```\n\nTo lint, check formatting, and run unit tests\n\n## License\n\nApache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fhyper-adapter-pouchdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyper63%2Fhyper-adapter-pouchdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fhyper-adapter-pouchdb/lists"}