{"id":31571603,"url":"https://github.com/yaonyan/sstore","last_synced_at":"2026-04-15T12:39:05.264Z","repository":{"id":54520057,"uuid":"338509777","full_name":"yaonyan/sstore","owner":"yaonyan","description":"store things at serverless function runtime","archived":false,"fork":false,"pushed_at":"2021-12-05T08:01:05.000Z","size":70,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T01:55:41.328Z","etag":null,"topics":["cloudbase","database","databases","db","function","scf","severless","store","tencent"],"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/yaonyan.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}},"created_at":"2021-02-13T06:09:12.000Z","updated_at":"2023-03-07T06:40:52.000Z","dependencies_parsed_at":"2022-08-13T18:30:55.260Z","dependency_job_id":null,"html_url":"https://github.com/yaonyan/sstore","commit_stats":null,"previous_names":["beetcb/tcb-conf","yaonyan/sstore","beetcb/sstore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yaonyan/sstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaonyan%2Fsstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaonyan%2Fsstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaonyan%2Fsstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaonyan%2Fsstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaonyan","download_url":"https://codeload.github.com/yaonyan/sstore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaonyan%2Fsstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31638482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"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":["cloudbase","database","databases","db","function","scf","severless","store","tencent"],"created_at":"2025-10-05T13:13:56.349Z","updated_at":"2026-04-10T10:32:53.166Z","avatar_url":"https://github.com/yaonyan.png","language":"JavaScript","readme":"[![npm](https://img.shields.io/npm/v/@beetcb/sstore?style=social)](https://www.npmjs.com/package/@beetcb/sstore)\r\n\r\n### What the hack is `sstore`?\r\n\r\n**s**erverless-**store** is how you store tiny things at serverless function runtime **temporarily**，inspired by [conf](https://github.com/sindresorhus/conf).\r\n\r\n### When to use it?\r\n\r\nWhen you have a tiny piese of data(an expiring `access-token`, for example), `sstore` stores it for you to path `/temp/conf/${md5('conf.json')`.\r\n\r\nBetter yet, sstore **won't block any code execution** during runtime.\r\n\r\n### How to use it?\r\n\r\n```js\r\nconst sstore = require('@beetcb/sstore')\r\n\r\nexports.main = () =\u003e {\r\n  // If `secret` is undefind, set it\r\n  console.log(sstore.get('secret') || sstore.set('secret', 'xxx 🕊'))\r\n  // Code logic is done, starts storing,\r\n  sstore.close()\r\n}\r\n```\r\n\r\n**sstore.\\\u003c`method`\\\u003e**:\r\n\r\n- get(`key`): get `key`'s value\r\n- set(`key`, `value`): set `key` using `value`\r\n- del(`key`): delete `key`'s value\r\n- clear(): delete all the key value pairs\r\n- **`close()`**: This is where the sstore really starts to store\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaonyan%2Fsstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaonyan%2Fsstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaonyan%2Fsstore/lists"}