{"id":19793570,"url":"https://github.com/darky/glorage","last_synced_at":"2026-03-19T11:44:57.217Z","repository":{"id":255210473,"uuid":"848908206","full_name":"darky/glorage","owner":"darky","description":"Gleam thread local storage","archived":false,"fork":false,"pushed_at":"2024-09-21T17:34:04.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T22:25:25.379Z","etag":null,"topics":["gleam","local","storage","thread"],"latest_commit_sha":null,"homepage":"","language":"Gleam","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/darky.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,"zenodo":null}},"created_at":"2024-08-28T16:16:59.000Z","updated_at":"2024-09-21T17:34:07.000Z","dependencies_parsed_at":"2024-08-28T16:47:41.690Z","dependency_job_id":"2a60ef55-e1a0-4a29-8df1-9d66832a589a","html_url":"https://github.com/darky/glorage","commit_stats":null,"previous_names":["darky/glorage"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/darky/glorage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darky","download_url":"https://codeload.github.com/darky/glorage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglorage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29828043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T14:53:59.163Z","status":"ssl_error","status_checked_at":"2026-02-25T14:53:23.002Z","response_time":61,"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":["gleam","local","storage","thread"],"created_at":"2024-11-12T07:10:25.716Z","updated_at":"2026-02-25T15:36:51.599Z","avatar_url":"https://github.com/darky.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glorage\n\n[![Package Version](https://img.shields.io/hexpm/v/glorage)](https://hex.pm/packages/glorage)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glorage/)\n![Erlang-compatible](https://img.shields.io/badge/target-erlang-a2003e)\n![JavaScript-compatible](https://img.shields.io/badge/target-javascript-f1e05a)\n\nGleam thread local storage\n\n```sh\ngleam add glorage\n```\n```gleam\nimport glorage\n\npub fn main() {\n  use \u003c- glorage.run // init thread local storage\n\n  inc(1) // 2\n\n  inc(7) // 2, because it's cached inside thread local storage\n\n  use n \u003c- glorage.with(inc) // ability to get thread local storage cached value, n is 2\n}\n\nfn inc(n) {\n  use \u003c- glorage.once(inc) // make function cachable inside thread local storage\n  n + 1\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/glorage\u003e.\n\n## Development\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fglorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarky%2Fglorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fglorage/lists"}