{"id":19723613,"url":"https://github.com/nitrogen/canister","last_synced_at":"2025-06-24T01:03:02.288Z","repository":{"id":57482011,"uuid":"438691092","full_name":"nitrogen/canister","owner":"nitrogen","description":"Distributed session manager for Erlang (used by Nitrogen Web Framework)","archived":false,"fork":false,"pushed_at":"2024-04-10T20:08:21.000Z","size":52,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T23:47:16.704Z","etag":null,"topics":["distributed-systems","erlang","session-management"],"latest_commit_sha":null,"homepage":"https://nitrogenproject.com","language":"Erlang","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/nitrogen.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-15T16:06:31.000Z","updated_at":"2023-09-06T02:34:55.000Z","dependencies_parsed_at":"2024-11-11T23:27:42.575Z","dependency_job_id":"26e34339-a2e9-4032-ad81-679f5aa2a20e","html_url":"https://github.com/nitrogen/canister","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"cf4fb8b9292cc048bd012f43377927a3d2981459"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fcanister","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fcanister/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fcanister/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fcanister/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrogen","download_url":"https://codeload.github.com/nitrogen/canister/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592960,"owners_count":21614450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["distributed-systems","erlang","session-management"],"created_at":"2024-11-11T23:22:53.391Z","updated_at":"2025-04-29T22:31:00.864Z","avatar_url":"https://github.com/nitrogen.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Canister\n\nAn Erlang Session Management system\n\nThe standard session management system for [Nitrogen](https://nitrogenproject.com)\n\n## Features\n\n* Data Persistence (stored in mnesia)\n* Data is replicated across all connected node\n* Automatic self-healing in the event of split brain, new nodes being added to the cluster, and more.\n* Expired sessions automatically deleted accordingly\n\n## Include the dependency\n\nAdd as a rebar dependency in your rebar.config\n\n```erlang\n{deps, [canister]}.\n```\n\n## Start It\n\nPut it in your `app.src` file or start it explicitly with:\n\n```\napplication:ensure_all_started(canister).\n```\n\n## Functionality\n\n### Save a Session Variable\n```erlang\ncanister:put(SessionID, Key, Value).\n```\n\nReturns: Previously stored `Value` or `undefined`\n\n### Retrieving a Session Variable\n\n```erlang\ncanister:get(SessionID, Key).\n```\n\nReturns: `Value` or `undefined`\n\n### Inspecting specific Session Info\n\n```erlang\ncanister:session_info(SessionID).\n```\n\nRetrieves all data variables as well as relevant dates and times: when it was last accessed, updated, or deleted\n\n## Configuration\n\nSee [canister.config](https://github.com/nitrogen/canister/blob/master/src/canister_config.erl) for explanation of configuration variables.\n\n**Note**: `session_timeout` variable will also check the `nitrogen` and `nitrogen_core` app configs, just in case.\n\n## License\n\nCopyright 2022 Jesse Gumm\n\n[MIT Licensed](https://github.com/nitrogen/canister/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrogen%2Fcanister","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrogen%2Fcanister","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrogen%2Fcanister/lists"}