{"id":15667799,"url":"https://github.com/holsee/inventory_es","last_synced_at":"2026-01-19T09:01:24.762Z","repository":{"id":47943398,"uuid":"220048298","full_name":"holsee/inventory_es","owner":"holsee","description":"Macros for an Event Sourced inventory system (from CodeMesh training w/ Greg Young)","archived":false,"fork":false,"pushed_at":"2023-01-05T00:39:06.000Z","size":1022,"stargazers_count":2,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T02:31:58.571Z","etag":null,"topics":["commands","elixir","events","macros"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/holsee.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":"2019-11-06T17:03:52.000Z","updated_at":"2022-11-27T21:39:51.000Z","dependencies_parsed_at":"2023-02-03T01:30:25.510Z","dependency_job_id":null,"html_url":"https://github.com/holsee/inventory_es","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holsee/inventory_es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Finventory_es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Finventory_es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Finventory_es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Finventory_es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holsee","download_url":"https://codeload.github.com/holsee/inventory_es/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Finventory_es/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["commands","elixir","events","macros"],"created_at":"2024-10-03T14:05:23.609Z","updated_at":"2026-01-19T09:01:24.745Z","avatar_url":"https://github.com/holsee.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inventory ES\n\nThe only interesting aspect is the way commands and events are defined.\n\nExamples same for commands.\n\n```elixir\ndefmodule Inventory.Events do\n  defevent CheckoutOut,\n    count: integer()\nend\n```\n\n```\niex -S mix\n```\n\nGenerated type specification:\n```elixir\nt Inventory.Events.CheckedOut.t()\n\n@type t() :: %Inventory.Events.CheckedOut{\n        count: integer(),\n        id: Id.t(),\n        timestamp: Timestamp.t()\n      }\n```\n\nCreate event:\n```elixir\nInventory.Events.CheckedOut.create(count: 100)\n\n%Inventory.Events.CheckedOut{\n  count: 100,\n  id: \"e5d37047-3873-4bad-b123-3d422adf25c5\",\n  timestamp: 1573060299826\n}\n```\n\nKey validation (not type, only dialyzer will save you):\n```elixir\nInventory.Events.CheckedOut.create()\n# =\u003e boom! 'count' missing\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholsee%2Finventory_es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholsee%2Finventory_es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholsee%2Finventory_es/lists"}