{"id":49812827,"url":"https://github.com/denful/bend","last_synced_at":"2026-05-18T07:01:34.679Z","repository":{"id":357230962,"uuid":"1236005975","full_name":"denful/bend","owner":"denful","description":"Lens based data parser-combinators. Bidirectional transformation and validation pipelines for Nix.","archived":false,"fork":false,"pushed_at":"2026-05-16T06:25:49.000Z","size":988,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T06:03:01.654Z","etag":null,"topics":["data-access-library","lens","lenses","nix","parse-dont-validate","parser-combinators","validation-library"],"latest_commit_sha":null,"homepage":"http://bend.denful.dev/","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denful.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["vic"],"patreon":null,"open_collective":null,"ko_fi":"oeiuwq","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2026-05-11T21:33:02.000Z","updated_at":"2026-05-16T18:25:06.000Z","dependencies_parsed_at":"2026-05-14T03:01:24.776Z","dependency_job_id":null,"html_url":"https://github.com/denful/bend","commit_stats":null,"previous_names":["denful/bend"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/denful/bend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fbend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fbend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fbend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fbend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denful","download_url":"https://codeload.github.com/denful/bend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fbend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33168910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data-access-library","lens","lenses","nix","parse-dont-validate","parser-combinators","validation-library"],"created_at":"2026-05-13T02:15:30.241Z","updated_at":"2026-05-18T07:01:34.631Z","avatar_url":"https://github.com/denful.png","language":"Nix","funding_links":["https://github.com/sponsors/vic","https://ko-fi.com/oeiuwq"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"right\"\u003e\n  \u003ca href=\"https://dendritic.oeiuwq.com/sponsor\"\u003e\u003cimg src=\"https://img.shields.io/badge/sponsor-vic-white?logo=githubsponsors\u0026logoColor=white\u0026labelColor=%23FF0000\" alt=\"Sponsor Vic\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://deepwiki.com/denful/bend\"\u003e\u003cimg src=\"https://deepwiki.com/badge.svg\" alt=\"Ask DeepWiki\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/denful/den/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/denful/bend?style=plastic\u0026logo=github\u0026color=purple\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://dendritic.oeiuwq.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Dendritic-Nix-informational?logo=nixos\u0026logoColor=white\" alt=\"Dendritic Nix\"/\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/denful/bend\" alt=\"License\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/denful/bend/actions\"\u003e\u003cimg src=\"https://github.com/denful/bend/actions/workflows/test.yml/badge.svg\" alt=\"CI Status\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e bend and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)\n\n# **Bend**. Lens based data parser-combinators. Bidirectional transformation and validation pipelines for Nix.\n\nBend draws from Haskell profunctor optics, Scala's `Either`, the `adapt` primitive from [denful/nfx](https://github.com/denful/nfx) and parser-combinators.\n\nThe core idea is [Parse, Don't Validate](https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/): a validator for non-empty lists that returns `true` is discarding the proof it just computed; instead if the function returns `left empty` or `right { head; tail; }`, the data structure *is* the proof.\nEvery lens either refines data as proof on `right` or returns invalid data on `left`.\n\n\nBend’s combinator names deliberately match parser-combinator vocabulary:\nThis is not cosmetic. The names signal that [Bend is a parser combinator library](https://bend.denful.dev/explanation/validation-is-parsing), one that operates on Nix data structures instead of character streams, and that happens to also support bidirectional writes.\n\n## **[Documentation at https://bend.denful.dev](https://bend.denful.dev)**\n\n## Install\n\nBend has no dependencies\n\n```nix\n# flake.nix\ninputs.bend.url = \"github:denful/bend\";\nbend = inputs.bend.lib;\n```\n\n```nix\n# default.nix\nbend = import bend-sources.outPath;\n```\n\n## [zer0ver](https://0ver.org)\n\nBend uses 0-based versioning. `v0.x`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenful%2Fbend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenful%2Fbend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenful%2Fbend/lists"}