{"id":18627105,"url":"https://github.com/markshust/hymn-core","last_synced_at":"2025-11-04T01:30:30.797Z","repository":{"id":142878391,"uuid":"65515635","full_name":"markshust/hymn-core","owner":"markshust","description":"Core API for Hymn.","archived":false,"fork":false,"pushed_at":"2016-08-12T04:00:38.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T10:52:11.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/markshust.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":"2016-08-12T02:11:23.000Z","updated_at":"2017-07-24T20:58:17.000Z","dependencies_parsed_at":"2023-06-15T08:30:16.358Z","dependency_job_id":null,"html_url":"https://github.com/markshust/hymn-core","commit_stats":null,"previous_names":["markoshust/hymn-core"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fhymn-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fhymn-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fhymn-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fhymn-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markshust","download_url":"https://codeload.github.com/markshust/hymn-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238956243,"owners_count":19558457,"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":[],"created_at":"2024-11-07T04:40:17.853Z","updated_at":"2025-11-04T01:30:30.768Z","avatar_url":"https://github.com/markshust.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hymn-core\n\nCore API for Hymn.\n\n### Introduction\n\nThis repo contains the core APP api where we create an mantra app and initialize it.\n\nAlso, this package contains exported functions from both [`hymn-composer`](https://github.com/markoshust/hymn-komposer) and [`hymn-di`](https://github.com/markoshust/hymn-di).\nThat's purely for the ease of use.\n\nThe base of this project stems from \u003ca href=\"https://github.com/mantrajs/mantra-core\"\u003emantra-core\u003c/a\u003e. It is not intended to be backwards-compatible, as it will introduce breaking updates \u0026 new features.\n\n### Differences from mantra-core\n\n* Ability to module-namespace actions\n    - See https://github.com/kadirahq/mantra/issues/199 for details\n* Updates from latest hymn-composer and hymn-di\n* Future updates planned\n\n### Installation\n\n```\nnpm i --save hymn-core react\n```\n\n### App API\n\n```js\nimport MyComp from './myComp';\nimport {createApp} from 'hymn-core';\n\n// Here's a simple Hymn Module\nconst module = {\n  routes(injectDeps) {\n    const InjectedComp = injectDeps(MyComp);\n    // load routes and put `InjectedComp` to the screen.\n  },\n  load(context, actions) {\n    // do any module initialization\n  },\n  actions: {\n    myNamespace: {\n      doSomething: (context, arg1) =\u003e {}\n    }\n  }\n};\n\nconst context = {\n  client: new DataClient()\n};\n\nconst app = createApp(context);\napp.loadModule(module);\n// app.loadModule(someOtherModule);\napp.init();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fhymn-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkshust%2Fhymn-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fhymn-core/lists"}