{"id":26213311,"url":"https://github.com/grmvoid/chainvault","last_synced_at":"2025-08-22T13:34:49.073Z","repository":{"id":54001294,"uuid":"311720854","full_name":"grmvoid/chainvault","owner":"grmvoid","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-05T06:51:43.000Z","size":1014,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T07:31:07.928Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grmvoid.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,"publiccode":null,"codemeta":null},"funding":{"github":"nulldark"}},"created_at":"2020-11-10T16:34:42.000Z","updated_at":"2025-03-05T06:52:54.000Z","dependencies_parsed_at":"2025-01-02T02:29:37.406Z","dependency_job_id":"b3f3664e-c31d-4de4-9613-ee3cb6313b89","html_url":"https://github.com/grmvoid/chainvault","commit_stats":null,"previous_names":["macotsuu/safestack","bytebits9/safestack","nulldark/safestack","nuldark/safestack","nulxrd/safestack","sxbrsky/safestack","grmvoid/safestack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fchainvault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fchainvault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fchainvault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fchainvault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grmvoid","download_url":"https://codeload.github.com/grmvoid/chainvault/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243188191,"owners_count":20250457,"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":"2025-03-12T09:18:39.683Z","updated_at":"2025-03-12T09:18:40.406Z","avatar_url":"https://github.com/grmvoid.png","language":"TypeScript","readme":"# ChainVault\n\nChainVault is a database that saves data in files and memory. It is based on blockchain technology, so the data is immutable and any change in the data causes chain disturbances and data corruption. ChainVault provides only the SDK that we can implement in our project.\n\n## Setup\n\nClone this repo to your desktop and run npm install to install all the dependencies.\n\n## Example\n\n```\n    import ChainVault from 'chainvault'\n\n    const db = new ChainVault('db', 4)\n    db.initialize()\n\n    const blocks = db.find();\n    console.log(blocks);\n```\n\n## ToDo\n\n- [] Setup ESLint / Prettier\n- [] Prepare CI for Yarn Workspaces (Monorepo)\n- [] Make better docs / JSDocs\n- [] P2P Network\n- [] Implement Consensus algorithm\n- [] Make Unit Tests for all packages\n\n## API Reference\n\n    ChainVault(dbName: string, difficult: number): ChainVault\n\nConstructor for ChainVault class.\n\n    initialize(): void\n\nInitializes connection to database.\n\n    find(): Array\u003cBlock\u003e\n\nReturns all blocks from chain\n\n    findOne(index: number): Block\n\nReturn one block by specified index from chain\n\n    insert(data: object): Block\n\nSaves the new block and returns it.\n\n    validate(): boolean\n\nCheck validates of chain.\n\n## License\n\nChainVault is licensed under the MIT - see the [LICENSE](LICENSE) file for details.\n","funding_links":["https://github.com/sponsors/nulldark"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrmvoid%2Fchainvault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrmvoid%2Fchainvault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrmvoid%2Fchainvault/lists"}