{"id":31392827,"url":"https://github.com/clebert/sigflow","last_synced_at":"2026-01-20T17:00:48.453Z","repository":{"id":314575504,"uuid":"1056077605","full_name":"clebert/sigflow","owner":"clebert","description":"A strict, synchronous reactive system with explicit state management and atomic updates.","archived":false,"fork":false,"pushed_at":"2025-09-15T14:52:02.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T19:56:17.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/clebert.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,"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":"2025-09-13T10:43:39.000Z","updated_at":"2025-09-15T14:52:06.000Z","dependencies_parsed_at":"2025-09-13T11:27:24.922Z","dependency_job_id":"3f8649d5-509f-4c2b-bba7-3852d059e41a","html_url":"https://github.com/clebert/sigflow","commit_stats":null,"previous_names":["clebert/sigflow"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/clebert/sigflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsigflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsigflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsigflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsigflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clebert","download_url":"https://codeload.github.com/clebert/sigflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsigflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"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":[],"created_at":"2025-09-29T04:46:23.263Z","updated_at":"2026-01-20T17:00:48.430Z","avatar_url":"https://github.com/clebert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sigflow\n\nA strict, synchronous reactive system with explicit state management and atomic updates. Enforces\nclear boundaries between reactive domains while preventing common pitfalls through well-defined\nexecution modes.\n\n```js\nimport { Signal } from \"sigflow\";\n\n// State signals\nconst $items = Signal.createSource([]);\nconst $taxRate = Signal.createSource(0.1);\nconst $discountCode = Signal.createSource(\"\");\n\n// Derived computations\nconst $subtotal = Signal.createComputation(() =\u003e\n  $items.subscribe().reduce((sum, item) =\u003e sum + item.price * item.quantity, 0),\n);\n\nconst $discount = Signal.createComputation(() =\u003e\n  $discountCode.subscribe() === \"SAVE10\" ? $subtotal.subscribe() * 0.1 : 0,\n);\n\nconst $total = Signal.createComputation(() =\u003e {\n  const subtotal = $subtotal.subscribe();\n  const tax = subtotal * $taxRate.subscribe();\n\n  return subtotal + tax - $discount.subscribe();\n});\n\n// Side effects\nconst cleanup = Signal.track(() =\u003e console.log(`Cart total: $${$total.subscribe().toFixed(2)}`));\n\n// Usage\nSignal.batch(() =\u003e {\n  $items.publish([\n    { name: \"Coffee\", price: 12.99, quantity: 2 },\n    { name: \"Mug\", price: 8.5, quantity: 1 },\n  ]);\n\n  $discountCode.publish(\"SAVE10\");\n});\n\ncleanup();\n```\n\n```\nCart total: $0.00\nCart total: $34.48\n```\n\n## Core Concepts\n\n**Signals as Communication Lines**: Signals flow along isolated \"lines\" - independent reactive\nenvironments that maintain separate execution state. This enables clean separation between different\nreactive domains and prevents cross-contamination.\n\n**Explicit State Management**: The system operates in distinct modes (batching, computing, tracking)\nwith strict rules about what operations are allowed in each. This prevents race conditions and\nensures predictable execution order.\n\n**Deferred Updates**: All signal changes are batched and applied atomically. Updates are deferred\nuntil batch completion, ensuring consistent state throughout the update cycle.\n\n## API Design\n\n- `createLine()` - isolated reactive environments\n- `createSource()` - mutable signals for application state\n- `createComputation()` - immutable derived signals that update automatically\n- `track()` - reactive subscriptions for side effects\n- `subscribe()` - read signal value and establish reactive dependency\n- `batch()` - atomic update operations\n- `publish()` - update mutable signal value (triggers reactive updates)\n- `peek()` - read signal value without establishing reactive dependency\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebert%2Fsigflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclebert%2Fsigflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebert%2Fsigflow/lists"}