{"id":18000365,"url":"https://github.com/dinubs/magmarath","last_synced_at":"2026-05-18T04:02:26.484Z","repository":{"id":42754161,"uuid":"279461530","full_name":"dinubs/magmarath","owner":"dinubs","description":"A simple storage system for Javascript","archived":false,"fork":false,"pushed_at":"2023-01-06T11:25:53.000Z","size":635,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-15T11:16:37.431Z","etag":null,"topics":["javascript","json"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/magmarath","language":"JavaScript","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/dinubs.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}},"created_at":"2020-07-14T02:31:00.000Z","updated_at":"2023-03-10T10:25:24.000Z","dependencies_parsed_at":"2023-02-05T23:46:12.420Z","dependency_job_id":null,"html_url":"https://github.com/dinubs/magmarath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dinubs/magmarath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinubs%2Fmagmarath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinubs%2Fmagmarath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinubs%2Fmagmarath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinubs%2Fmagmarath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinubs","download_url":"https://codeload.github.com/dinubs/magmarath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinubs%2Fmagmarath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279076974,"owners_count":26098231,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["javascript","json"],"created_at":"2024-10-29T23:11:34.954Z","updated_at":"2025-10-15T11:44:50.851Z","avatar_url":"https://github.com/dinubs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magmarath\n\nMagmarath is a simple storage system for Javascript. It helps ensure that values put into the store is formatted correctly and is a valid value. Helpful for simple maintaining an external storage (through local storage, JSON file, query string etc).\n\n## Feature\n\n* Central storage location allows you to access all state through one location\n* Item validation allows you to ensure that only a set of values will be present in an item\n* Display formatting allows you to turn a complex object into a string so it can be saved\n* Type formatting allows you to ensure that a value will always be an expected type\n* Easily turn your store into JSON and populate it from JSON\n\n## Example\n\n```js\nconst { Store, Item } = require('magmarath');\n\nconst store = new Store();\nconst item = new Item('country', {\n  defaultValue: 'US',\n  options: ['US', 'UK', 'CA'],\n  displayFormatter: (v) =\u003e v.toLowerCase(),\n  typeFormatter: (v) =\u003e v.toUpperCase(),\n});\n\nstore.addItem(item);\n\nstore.fromJson({ country: 'UK' });\n\nitem.value === 'UK' // true\n\nitem.update('AU');\nitem.value === 'AU'; // false\n\nstore.toJson() // { country: 'us' }\n```\n\n## Installation\n\n`npm i --save magmarath`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinubs%2Fmagmarath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinubs%2Fmagmarath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinubs%2Fmagmarath/lists"}