{"id":21088583,"url":"https://github.com/fremantle-industries/stored","last_synced_at":"2026-04-08T13:31:20.998Z","repository":{"id":38820998,"uuid":"205457305","full_name":"fremantle-industries/stored","owner":"fremantle-industries","description":"Store \u0026 retrieve structs against various backends with a simple lightweight API","archived":false,"fork":false,"pushed_at":"2023-03-01T16:57:50.000Z","size":94,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-14T22:22:11.644Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/fremantle-industries.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}},"created_at":"2019-08-30T21:11:04.000Z","updated_at":"2025-01-21T18:16:52.000Z","dependencies_parsed_at":"2023-07-12T15:34:37.482Z","dependency_job_id":null,"html_url":"https://github.com/fremantle-industries/stored","commit_stats":null,"previous_names":["rupurt/stored"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fremantle-industries/stored","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fstored","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fstored/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fstored/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fstored/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fremantle-industries","download_url":"https://codeload.github.com/fremantle-industries/stored/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fstored/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["elixir"],"created_at":"2024-11-19T21:18:21.238Z","updated_at":"2026-04-08T13:31:20.976Z","avatar_url":"https://github.com/fremantle-industries.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stored\n\n[![Build Status](https://github.com/rupurt/stored/workflows/test/badge.svg?branch=main)](https://github.com/rupurt/stored/actions?query=workflow%3Atest)\n[![hex.pm version](https://img.shields.io/hexpm/v/stored.svg?style=flat)](https://hex.pm/packages/stored)\n\nStore \u0026 retrieve structs against various backends with a simple lightweight API.\n\nBy default `stored` ships with an ETS backend. Custom backends can be added by implementing the `Stored.Backend` behaviour.\n\n## Installation\n\n```elixir\ndef deps do\n  [\n    {:stored, \"~\u003e 0.0.8\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\ndefmodule Person do\n  defstruct ~w(first_name last_name)a\nend\n\ndefimpl Stored.Item, for: Person do\n  def key(p), do: \"#{p.first_name}_#{p.last_name}\"\nend\n\ndefmodule MyStore do\n  use Stored.Store\n\n  def after_backend_create, do: nil\n  def after_put(_record), do: nil\nend\n\n{:ok, pid_default} = MyStore.start_link()\n{:ok, pid_a} = MyStore.start_link(id: :a)\n\nlebron = %Person{first_name: \"Lebron\", last_name: \"James\"}\n\n{:ok, {r_lebron_key_default, r_lebron_default}} = MyStore.put(lebron)\n{:ok, {r_lebron_key_a, r_lebron_a}} = MyStore.put(lebron, :a)\n\npeople_default = MyStore.all()\npeople_a = MyStore.all(:a)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffremantle-industries%2Fstored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffremantle-industries%2Fstored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffremantle-industries%2Fstored/lists"}