{"id":19947351,"url":"https://github.com/firstbatchxyz/hollowdb-lit-demo","last_synced_at":"2026-05-15T07:32:32.204Z","repository":{"id":193030866,"uuid":"687151699","full_name":"firstbatchxyz/hollowdb-lit-demo","owner":"firstbatchxyz","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-06T07:32:03.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T14:18:40.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/firstbatchxyz.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,"governance":null}},"created_at":"2023-09-04T18:29:42.000Z","updated_at":"2024-05-08T15:03:01.000Z","dependencies_parsed_at":"2023-09-06T12:58:07.274Z","dependency_job_id":null,"html_url":"https://github.com/firstbatchxyz/hollowdb-lit-demo","commit_stats":null,"previous_names":["firstbatchxyz/hollowdb-lit-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firstbatchxyz/hollowdb-lit-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstbatchxyz%2Fhollowdb-lit-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstbatchxyz%2Fhollowdb-lit-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstbatchxyz%2Fhollowdb-lit-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstbatchxyz%2Fhollowdb-lit-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstbatchxyz","download_url":"https://codeload.github.com/firstbatchxyz/hollowdb-lit-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstbatchxyz%2Fhollowdb-lit-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33057858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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-13T00:35:45.136Z","updated_at":"2026-05-15T07:32:32.186Z","avatar_url":"https://github.com/firstbatchxyz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to use HollowDB with Lit Protocol\n\n\nThis is an example project using Lit Protocol and HollowDB together to create a two-sided encryption flow.\n\nUsing Lit Protocol, any data can be encrpyted and can only be decrypted if certain access control conditions are met. See the [lit protocol docs](https://developer.litprotocol.com/SDK/Explanation/encryption) for more information.\n\nOn the otherside, HollowDB allows you to store your data permamently and privately. Unlike Lit Protocol, HollowDB hides your address information and lets you update the data only by providing ZK-proofs. Read more about HollowDB [here](https://docs.hollowdb.xyz/).\n\nCombining HollowDB with Lit Protocol gives you a two-sided encryption where both your identity and data is safe and encrypted.\n\n## Prerequisite\n\nWe will use `hollowdb-client` package for interact with the database/contract. \n```bash\nyarn add hollowdb-client\n```\nFor the basics please look at this usage:\n```js\nimport { HollowClient } from \"hollowdb-client\";\n\nasync function main() {\n  const client = await HollowClient.new({\n    apiKey: \"YOUR_API_KEY\",\n    db: \"Database-1\",\n  });\n\n  await client.put(key, payload)\n  await client.update(key, newPayload, proof);\n  const result = await client.get(key);\n}\n\nmain();\n```\nPlease sign in from [here](https://developer.hollowdb.xyz/sign-in) to HollowDB dashboard to get your  `Api_Key`, `Database_Name`, `ContractTxId` that you will use in demo. \n\n  `ContractTxId`: change in path lit/pages/api/hollowdb.js with the key found in [here](https://developer.hollowdb.xyz)\\\n  `DatabaseName`: change in path server/src/client/client.ts with the key found in [here](https://developer.hollowdb.xyz)\\\n  `ApiKeys`:change in path server/src/client/client.ts with the key found in [here](https://developer.hollowdb.xyz/api-keys)\n\nAlso 2 different node version needed to run this demo (Lit protocol uses v16, on the server side you can use v18). To do that first install `nvm` according to instructions in [here](https://dev.to/saanchitapaul/install-nvm-node-version-manager-inside-zsh-34ke) and then you open 2 different terminal windows (after running the `yarn install` for both `server/` and `lit/` folders). Now you should be able to use 2 different node version via running `nvm use \u003cnode_version\u003e` in two different terminal windows.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstbatchxyz%2Fhollowdb-lit-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstbatchxyz%2Fhollowdb-lit-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstbatchxyz%2Fhollowdb-lit-demo/lists"}