{"id":26364933,"url":"https://github.com/jjosh102/obaki-local-storage","last_synced_at":"2026-05-08T06:53:01.519Z","repository":{"id":225830813,"uuid":"766982253","full_name":"jjosh102/obaki-local-storage","owner":"jjosh102","description":"obaki-local-storage is a lightweight utility for efficient data caching and retrieval, designed to optimize performance by minimizing unnecessary network requests.","archived":false,"fork":false,"pushed_at":"2024-03-04T14:37:38.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T18:31:54.883Z","etag":null,"topics":["npm-package","show","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jjosh102.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-04T13:48:36.000Z","updated_at":"2024-03-04T13:58:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea5cc6c1-715d-4654-a095-46931e871860","html_url":"https://github.com/jjosh102/obaki-local-storage","commit_stats":null,"previous_names":["obaki102/obaki-local-storage","joshjlp/obaki-local-storage","jjosh102/obaki-local-storage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jjosh102/obaki-local-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2Fobaki-local-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2Fobaki-local-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2Fobaki-local-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2Fobaki-local-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjosh102","download_url":"https://codeload.github.com/jjosh102/obaki-local-storage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2Fobaki-local-storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32770544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["npm-package","show","typescript"],"created_at":"2025-03-16T19:28:45.561Z","updated_at":"2026-05-08T06:53:01.500Z","avatar_url":"https://github.com/jjosh102.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obaki-local-storage\n\n[![npm version](https://badge.fury.io/js/obaki-local-storage.svg)](https://www.npmjs.com/package/obaki-local-storage)\n\n`obaki-local-storage` is a lightweight utility for efficient data caching and retrieval, designed to optimize performance by minimizing unnecessary network requests.\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install obaki-local-storage\n```\n## Usage\n\n`getCacheData`\n```typescript\nimport { getCacheData } from 'obaki-local-storage';\n\n// Define your fetch data function\nconst fetchDataFunction = async () =\u003e {\n  // Implement your data fetching logic here\n  // ...\n  return /* fresh data */;\n};\n\n// Example usage for getCacheData\nconst cachedData = await getCacheData('my-cache-key', fetchDataFunction);\n\nconsole.log('Cached Data:', cachedData);\n\n```\n\n`getEncryptedCacheData`\n```typescript\nimport { getEncryptedCacheData } from 'obaki-local-storage';\n\n// Define your fetch data function\nconst fetchDataFunction = async () =\u003e {\n  // Implement your data fetching logic here\n  // ...\n  return /* fresh data */;\n};\n\n// Set your encryption key\nconst encryptionKey = 'your-secret-key';\n\n// Example usage for getEncryptedCacheData\nconst encryptedData = await getEncryptedCacheData('my-encrypted-cache-key', fetchDataFunction, encryptionKey);\n\nconsole.log('Encrypted Data:', encryptedData);\n\n```\n\n`getEncryptedData`\n```typescript\nimport { getEncryptedData } from 'obaki-local-storage';\n\nconst key = 'myEncryptedDataKey';\nconst encryptionKey = 'SuperSecretKey';\n\n// Retrieve and decrypt data\nconst decryptedData =  getEncryptedData(key, encryptionKey);\n\nconsole.log('Decrypted Data:', decryptedData);\n\n\n```\n\n`setEncryptedData`\n```typescript\nimport { setEncryptedData } from 'obaki-local-storage';\n\nconst key = 'myEncryptedDataKey';\nconst encryptionKey = 'SuperSecretKey';\nconst dataToStore = ['confidential', 'information'];\n\n// Encrypt and store data\nsetEncryptedData(key, dataToStore, encryptionKey);\n\nconsole.log('Data encrypted and stored successfully.');\n\n\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjosh102%2Fobaki-local-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjosh102%2Fobaki-local-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjosh102%2Fobaki-local-storage/lists"}