{"id":19737922,"url":"https://github.com/allo-media/canopy","last_synced_at":"2025-10-20T15:38:00.175Z","repository":{"id":50416745,"uuid":"132111215","full_name":"allo-media/canopy","owner":"allo-media","description":"A generic Tree API in Elm ","archived":true,"fork":false,"pushed_at":"2019-05-28T13:03:49.000Z","size":19,"stargazers_count":10,"open_issues_count":4,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-15T10:13:34.123Z","etag":null,"topics":["elm","rosetree","tree"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/allo-media/canopy/latest","language":"Elm","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/allo-media.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":"2018-05-04T08:23:28.000Z","updated_at":"2025-03-04T10:16:13.000Z","dependencies_parsed_at":"2022-07-31T17:19:05.881Z","dependency_job_id":null,"html_url":"https://github.com/allo-media/canopy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allo-media%2Fcanopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allo-media%2Fcanopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allo-media%2Fcanopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allo-media%2Fcanopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allo-media","download_url":"https://codeload.github.com/allo-media/canopy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251648465,"owners_count":21621347,"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":["elm","rosetree","tree"],"created_at":"2024-11-12T01:12:45.504Z","updated_at":"2025-10-20T15:37:59.872Z","avatar_url":"https://github.com/allo-media.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"Canopy\n======\n\nA Generic Tree API, based on the [Rose Tree](https://en.wikipedia.org/wiki/Rose_tree)\nalgebraic data type, augmented with helpers for building, querying and manipulating nodes.\n\nBuilding a tree is basically done with using `node` and `leaf`:\n\n```elm\ntree : Node String\ntree =\n    node \"root\"\n        [ node \"foo\"\n            [ leaf \"bar\" ]\n        , node \"baz\"\n            [ leaf \"qux\" ]\n        ]\n```\n\nThe API focuses on node values for common operations:\n\n```elm\ntree\n    |\u003e remove \"baz\"\n    |\u003e append \"foo\" \"bingo\"\n    == node \"root\"\n        [ node \"foo\"\n            [ leaf \"bar\"\n            , leaf \"bingo\"\n            ]\n        ]\n```\n\nIt exposes powerful helpers for working with tree data structures:\n\n```elm\nnode 1\n    [ node 2\n        [ leaf 3, leaf 4 ]\n    , node 5\n        [ leaf 6 ]\n    ]\n    |\u003e flatMap (value \u003e\u003e (*) 2)\n    |\u003e List.sum\n    == 42\n```\n\nLicense\n-------\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallo-media%2Fcanopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallo-media%2Fcanopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallo-media%2Fcanopy/lists"}