{"id":26452096,"url":"https://github.com/bikebearlabs/arrow-atoms","last_synced_at":"2026-05-20T03:13:16.882Z","repository":{"id":282722829,"uuid":"949461806","full_name":"BikeBearLabs/arrow-atoms","owner":"BikeBearLabs","description":"Experimental, functional-expression-based WordPress blocks to fetch dynamic content without breaking into PHP.","archived":false,"fork":false,"pushed_at":"2025-03-16T14:51:54.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T15:27:07.792Z","etag":null,"topics":["gutenberg","php","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BikeBearLabs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-16T14:18:18.000Z","updated_at":"2025-03-16T14:58:52.000Z","dependencies_parsed_at":"2025-03-16T16:30:46.830Z","dependency_job_id":null,"html_url":"https://github.com/BikeBearLabs/arrow-atoms","commit_stats":null,"previous_names":["sxxov/arrow-atoms"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BikeBearLabs%2Farrow-atoms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BikeBearLabs%2Farrow-atoms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BikeBearLabs%2Farrow-atoms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BikeBearLabs%2Farrow-atoms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BikeBearLabs","download_url":"https://codeload.github.com/BikeBearLabs/arrow-atoms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244267780,"owners_count":20425895,"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":["gutenberg","php","wordpress","wordpress-plugin"],"created_at":"2025-03-18T17:26:14.082Z","updated_at":"2026-05-20T03:13:16.846Z","avatar_url":"https://github.com/BikeBearLabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arrow Atoms\n\nAn experimental WordPress plugin of server-side blocks, controlled using a functional language.\n\n\u003e [!WARNING]\n\u003e This plugin is in early development \u0026 is **not yet ready for production use**.\n\u003e\n\u003e ..._However_, there are large sites with real users currently using it. Do ensure you implement proper caching mechanisms \u0026 disaster fallback as warned in the [Current Limitations](#current-limitations) section.\n\n## Installation\n\nDownload the [latest release](https://github.com/BikeBearLabs/arrow-atoms/releases/latest) of the plugin \u0026 install it on your WordPress site.\n\n\u003e [!NOTE]\n\u003e This plugin currently depends on **Advanced Custom Fields Pro (ACF Pro)**.\n\u003e\n\u003e It's not per se, a strictly required dependency, but there are functions currently that assume it's there.\n\u003e\n\u003e Currently, you will need to modify the plugin's header code to remove the `Required dependencies: ` line if you don't have ACF Pro.\n\n## Overview\n\nArrow Atoms is a plugin mainly for experienced WordPress block developers, looking for a solution for interacting with server-side logic without leaving the blocks paradigm. This includes things like if-else statements, loops, \u0026 other control structures, that depend on logic such as post content or ACF fields.\n\n\u003e [!WARNING] \u003e **This plugin is not for everyone**. It is NOT a replacement for PHP. It is a tool for experienced developers to use in specific situations, \u0026 does not cover all of the use cases of proper server-side scripting.\n\u003e\n\u003e Though, if you do intend to go all-in on Arrow Atoms, you are expected to be able to modify it to your needs, specifically, the `evaluate.php` file.\n\u003e\n\u003e We acknowledge that is this not ideal, \u0026 there are plans to make extending the plugin easier in the future. Check out the [Roadmap](#roadmap) section for more information.\n\n## Usage\n\nIn code, simply refer to an Arrow Atom using one of the blocks:\n\n```html\n\u003c!-- wp:aa/as-text {\"of\":\"-\u003epost_content\"} /--\u003e\n```\n\nNotice that this uses the WordPress block syntax, with the `aa/as-text` block name. This is the block that will evaluate the Arrow Atom. For more information, refer to the [Blocks](#blocks) section.\n\nThe `of` attribute is the Arrow Atom to evaluate. In this case, it's `-\u003epost_content`, which is a property access returns the post content. For more information, refer to the [Language](#language) section.\n\n## Blocks\n\nTODO: Document all blocks [here](https://github.com/BikeBearLabs/arrow-atoms/blob/main/blocks).\n\n## Language\n\nTODO: Document `-\u003e` language [here](https://github.com/BikeBearLabs/arrow-atoms/blob/main/lib/of/evaluate).\n\n## Current Limitations\n\n- **No Caching**: Arrow Atoms are reparsed \u0026 reevaluated on every page load. This is a significant performance hit, especially for complex logic. You should implement your own caching mechanism, something like [Litespeed](https://wordpress.org/plugins/litespeed-cache/) or [WP Fastest Cache](https://wordpress.org/plugins/wp-fastest-cache/).\n- **No Disaster Fallback**: If Arrow Atoms fail to evaluate, they will stop rendering of the entire page, \u0026 the only way to see the stacktrace is with `wp-content/debug.log` (if you have it enabled). This is a \"skill issue\" as they say, but it's also a limitation of the plugin.\n- **No Extensibility**: There currently exists no way to add your own functions to the Arrow Atoms language. This is a planned feature, but it's not there yet. You will need to modify the `evaluate.php` file to add your own functions.\n\n## Roadmap\n\n- [ ] Action for registering custom functions\n- [ ] Parse cache (w/ proper AST)\n  - Either that, or improve performance some other way\n- [ ] Error handling\n  - Don't stop rendering on error\n  - Show error message in block\n- [ ] Better documentation\n  - Finish documenting blocks \u0026 language\n- [ ] `aa/if` block without `aa/if-then`\n  - Currently, `aa/if` will render everything within it, regardless of the condition. Only if you use `aa/if-then` within it, will it work as expected)\n- [ ] JSON syntax\n  - Write arrow atoms using a JSON object instead of a long, single-line string\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbikebearlabs%2Farrow-atoms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbikebearlabs%2Farrow-atoms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbikebearlabs%2Farrow-atoms/lists"}