{"id":15059539,"url":"https://github.com/jschomay/elm-narrative-engine","last_synced_at":"2025-10-28T03:50:40.658Z","repository":{"id":51807569,"uuid":"61602719","full_name":"jschomay/elm-narrative-engine","owner":"jschomay","description":"A tool for building interactive fiction style stories in Elm.","archived":false,"fork":false,"pushed_at":"2023-08-18T21:18:20.000Z","size":1149,"stargazers_count":137,"open_issues_count":0,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-21T11:52:21.748Z","etag":null,"topics":["elm-lang","elm-narrative-engine","game-engine","interactive-fiction"],"latest_commit_sha":null,"homepage":"https://enegames.itch.io/elm-narrative-engine","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jschomay.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"jschomay","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-06-21T04:40:54.000Z","updated_at":"2025-05-03T08:55:39.000Z","dependencies_parsed_at":"2022-08-13T01:10:39.111Z","dependency_job_id":"7a4546e3-2b87-4d3f-b699-32d42e574178","html_url":"https://github.com/jschomay/elm-narrative-engine","commit_stats":{"total_commits":158,"total_committers":6,"mean_commits":"26.333333333333332","dds":0.05063291139240511,"last_synced_commit":"6401eb404f80b2f6d77f4f0e46be8ed04d4369ac"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/jschomay/elm-narrative-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschomay%2Felm-narrative-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschomay%2Felm-narrative-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschomay%2Felm-narrative-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschomay%2Felm-narrative-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jschomay","download_url":"https://codeload.github.com/jschomay/elm-narrative-engine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschomay%2Felm-narrative-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281381647,"owners_count":26491160,"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-28T02:00:06.022Z","response_time":60,"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":["elm-lang","elm-narrative-engine","game-engine","interactive-fiction"],"created_at":"2024-09-24T22:45:15.271Z","updated_at":"2025-10-28T03:50:40.620Z","avatar_url":"https://github.com/jschomay.png","language":"Elm","funding_links":["https://github.com/sponsors/jschomay"],"categories":["Examples"],"sub_categories":["Other editors"],"readme":"# Elm Narrative Engine\n\nA tool for building non-linear interactive story games.\n\n## Usage\n\n\n```elm\nworldModel =\n    parseWorldModel\n        [ entity \"PLAYER.fear=1\"\n        , entity \"TORCH.item.illumination=7.current_location=PLAYER\"\n        , entity \"CAVE.location.dark\"\n\n        -- etc...\n        ]\n\n\nrules =\n    parseRules\n        [ rule \"entering dark places\"\n            \"\"\"\n            ON: *.location.dark\n            \"\"\"\n            \"It's too dark to go in there!\"\n        , rule \"entering the cave with a light source\"\n            \"\"\"\n            ON: CAVE\n            IF: *.item.illumination\u003e5.current_location=PLAYER\n            DO: PLAYER.current_location=CAVE.fear+2\n            \"\"\"\n            \"You enter the cave, {PLAYER.fear\u003e4? your heart pounding | bravely}...\"\n\n        -- etc...\n        ]\n\n\ninventoryView =\n    query \"*.item.current_location=PLAYER\" worldModel |\u003e List.map item_view\n```\n\n\nClone https://github.com/jschomay/elm-interactive-story-starter to get started.\n\nSee the [visual editor](https://enegames.itch.io/elm-narrative-engine) to easily author you content and import it into your custom game.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschomay%2Felm-narrative-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjschomay%2Felm-narrative-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschomay%2Felm-narrative-engine/lists"}