{"id":49560625,"url":"https://github.com/z4jdev/z4j-bare","last_synced_at":"2026-05-16T01:02:44.105Z","repository":{"id":353148186,"uuid":"1218188976","full_name":"z4jdev/z4j-bare","owner":"z4jdev","description":"z4j framework-free agent bootstrapper (Apache 2.0)","archived":false,"fork":false,"pushed_at":"2026-04-30T18:41:02.000Z","size":267,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T20:16:51.724Z","etag":null,"topics":["agent","apache-2-0","bare","python","task-queue","z4j"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/z4j-bare/","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/z4jdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","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}},"created_at":"2026-04-22T16:12:17.000Z","updated_at":"2026-04-30T18:41:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/z4jdev/z4j-bare","commit_stats":null,"previous_names":["z4jdev/z4j-bare"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/z4jdev/z4j-bare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4jdev%2Fz4j-bare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4jdev%2Fz4j-bare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4jdev%2Fz4j-bare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4jdev%2Fz4j-bare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z4jdev","download_url":"https://codeload.github.com/z4jdev/z4j-bare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4jdev%2Fz4j-bare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32562132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["agent","apache-2-0","bare","python","task-queue","z4j"],"created_at":"2026-05-03T08:10:16.749Z","updated_at":"2026-05-03T08:10:17.659Z","avatar_url":"https://github.com/z4jdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# z4j-bare\n\n[![PyPI version](https://img.shields.io/pypi/v/z4j-bare.svg?v=1.4.0)](https://pypi.org/project/z4j-bare/)\n[![Python](https://img.shields.io/pypi/pyversions/z4j-bare.svg?v=1.4.0)](https://pypi.org/project/z4j-bare/)\n[![License](https://img.shields.io/pypi/l/z4j-bare.svg?v=1.4.0)](https://github.com/z4jdev/z4j-bare/blob/main/LICENSE)\n\nThe framework-free agent runtime for [z4j](https://z4j.com).\n\nBootstraps a z4j agent inside any Python process, Celery worker,\nRQ worker, Dramatiq actor, plain script, custom service, and connects\nit to z4j over an authenticated WebSocket. Used directly when\nthere's no framework adapter (z4j-django / z4j-flask / z4j-fastapi);\nused indirectly by those framework adapters too.\n\n## What it ships\n\n- **Agent runtime**, connect, authenticate, supervise, reconnect\n  with bounded backoff\n- **Outbound buffer**, every event written to a local SQLite ring\n  before going out on the wire; durable across short brain outages\n  and agent restarts\n- **Engine signal hooks**, wired up by whichever engine adapter you\n  install (z4j-celery, z4j-rq, etc.); the runtime drains them into\n  the buffer\n- **Schedule inventory**, emits a full snapshot at boot, on a\n  periodic timer (default 15 min), and on demand from the brain's\n  *Sync now* command. Existing schedules show up automatically.\n- **Command dispatcher**, receives operator actions from the brain\n  (retry, cancel, restart, schedule.fire, schedule.resync, etc.)\n  and routes them to the right adapter\n\n## Install\n\n```bash\npip install z4j-bare\n```\n\nMost users install a framework adapter (z4j-django / z4j-flask /\nz4j-fastapi) which pulls z4j-bare automatically.\n\n## Quick start (framework-free worker)\n\n```python\nfrom z4j_bare import install_agent\nfrom z4j_celery import CeleryEngineAdapter\n\ninstall_agent(\n    engines=[CeleryEngineAdapter(celery_app=app)],\n    brain_url=\"https://brain.example.com\",\n    token=\"z4j_agent_...\",\n    project_id=\"my-project\",\n)\n```\n\n## Reliability\n\n- No exception from the agent ever propagates back into your worker /\n  signal handler / request path. Every brain interaction is wrapped in\n  a top-level try/except.\n- Events buffer locally when z4j is unreachable. Workers never\n  block on network I/O.\n- Supervisor reconnects on every transient failure (network, TLS,\n  protocol mismatch) with bounded backoff.\n\n## Documentation\n\nFull docs at [z4j.dev/frameworks/bare/](https://z4j.dev/frameworks/bare/).\n\n## License\n\nApache-2.0, see [LICENSE](LICENSE).\n\n## Links\n\n- Homepage: https://z4j.com\n- Documentation: https://z4j.dev\n- PyPI: https://pypi.org/project/z4j-bare/\n- Issues: https://github.com/z4jdev/z4j-bare/issues\n- Changelog: [CHANGELOG.md](CHANGELOG.md)\n- Security: security@z4j.com (see [SECURITY.md](SECURITY.md))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz4jdev%2Fz4j-bare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz4jdev%2Fz4j-bare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz4jdev%2Fz4j-bare/lists"}