{"id":31841555,"url":"https://github.com/psiace/tileable","last_synced_at":"2026-01-20T16:57:31.507Z","repository":{"id":316456122,"uuid":"1063460390","full_name":"PsiACE/tileable","owner":"PsiACE","description":"The modular framework for your ideas. Create. Combine. Repeat.","archived":false,"fork":false,"pushed_at":"2025-09-24T17:17:14.000Z","size":691,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-24T19:09:34.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tileable.dev","language":"Python","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/PsiACE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-09-24T16:52:33.000Z","updated_at":"2025-09-24T17:05:03.000Z","dependencies_parsed_at":"2025-09-24T19:19:55.317Z","dependency_job_id":null,"html_url":"https://github.com/PsiACE/tileable","commit_stats":null,"previous_names":["psiace/tileable"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PsiACE/tileable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Ftileable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Ftileable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Ftileable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Ftileable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PsiACE","download_url":"https://codeload.github.com/PsiACE/tileable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Ftileable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010341,"owners_count":26084738,"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-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2025-10-12T05:20:56.191Z","updated_at":"2025-10-12T05:20:57.977Z","avatar_url":"https://github.com/PsiACE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tileable\n\n[![Release](https://img.shields.io/github/v/release/psiace/tileable)](https://img.shields.io/github/v/release/psiace/tileable)\n[![Build status](https://img.shields.io/github/actions/workflow/status/psiace/tileable/main.yml?branch=main)](https://github.com/psiace/tileable/actions/workflows/main.yml?query=branch%3Amain)\n[![Commit activity](https://img.shields.io/github/commit-activity/m/psiace/tileable)](https://img.shields.io/github/commit-activity/m/psiace/tileable)\n[![License](https://img.shields.io/github/license/psiace/tileable)](https://img.shields.io/github/license/psiace/tileable)\n\nTileable is a Python 3.12+ framework for composing event-driven workflows from small, typed “tiles”. It keeps ergonomics, observability, and testability front and centre.\n\n## Quickstart\n\n```bash\nmake install          # set up the uv environment + pre-commit hooks\npython -m examples.greeting\n```\n\nExample output:\n\n```text\n[debug] {'tile': 'greeting', 'message': 'Tileable'}\nHi, Tileable!\nruns=1\n```\n\nPrefer a REPL? The demo tile is wired exactly like production code:\n\n```python\nfrom examples.greeting import GreetingPayload, GreetingPlugin, showcase\nfrom tileable import EventBus, TilePluginManager, TileRegistry, invoke_tile\n\n# Discover tiles via the bundled plugin\nresult, debug_events, state = showcase(message=\"Tileable\")\n\n# Or assemble the pieces manually\nregistry = TileRegistry()\nplugins = TilePluginManager()\nplugins.register(GreetingPlugin())\nbus = EventBus()\nstate = {\"runs\": 0}\n\nwith bus.record() as lifecycle:\n    result = invoke_tile(\n        \"greeting\",\n        GreetingPayload(message=\"Operator\"),\n        registry=registry,\n        plugins=plugins,\n        event_bus=bus,\n        state=state,\n    )\n\nprint(result.response)\nprint(lifecycle.payloads(\"tile.debug\"))\nprint(state[\"runs\"])\n```\n\n## Why tiles feel good\n- **Predictable primitives** — A tile is just a tiny class with typed payload/result models.\n- **Observability first** — `EventBus.record()` captures lifecycle events without throwaway subscribers.\n- **State you can trust** — Services and per-run state live on `TileContext`, keeping plugins and tiles aligned.\n- **Plugins without pain** — `TilePluginManager` contributes tiles, startup hooks, and shutdown hooks on demand.\n\n## Build, observe, extend\n\n**Run tiles and capture context**\n\n```python\nfrom tileable import invoke_tile\n\nresult, ctx = invoke_tile(\n    \"greeting\",\n    GreetingPayload(message=\"Developer\"),\n    return_context=True,\n)\n\nprint(result.response)\nprint(dict(ctx.services))      # services added during execution\nprint(ctx.state.get(\"runs\"))\n```\n\n**Scope runtime state for tests**\n\n```python\nfrom tileable import scoped_runtime, TileRegistry\n\nwith scoped_runtime(registry=TileRegistry()):\n    ...  # run tiles without touching the global defaults\n```\n\n**Listen in when you need full control**\n\n```python\nbus = EventBus()\n\nunsubscribe = bus.subscribe(\"tile.failed\", lambda sender, **payload: print(payload))\ninvoke_tile(..., event_bus=bus)\nunsubscribe()\n```\n\n## Quality gates\n\n```bash\nmake check    # ruff lint + formatter, ty type-checking, deptry hygiene\nmake test     # pytest (sync + async paths and doctests)\ntox -e py312,py313  # interpreter matrix + coverage xml\n```\n\nCI expects these commands to pass before merging. Pre-commit hooks (`uv run pre-commit run -a`) keep formatting aligned.\n\n## Learn more\n- Full documentation: \u003chttps://tileable.dev/\u003e\n- Additional demos: `examples/`\n- Advanced recipes: `docs/advanced.md`\n- Contributor handbook: `AGENTS.md`\n\n---\n\nRepository initiated with [fpgmaas/cookiecutter-uv](https://github.com/fpgmaas/cookiecutter-uv), heavily customised for Tileable’s design philosophy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsiace%2Ftileable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsiace%2Ftileable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsiace%2Ftileable/lists"}