{"id":50351078,"url":"https://github.com/srid/opencode-haskell","last_synced_at":"2026-05-29T21:01:18.738Z","repository":{"id":344244452,"uuid":"1181101637","full_name":"srid/opencode-haskell","owner":"srid","description":"Haskell client library for OpenCode","archived":false,"fork":false,"pushed_at":"2026-03-13T21:18:26.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-21T08:42:42.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/srid.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-13T18:48:23.000Z","updated_at":"2026-03-18T10:47:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/srid/opencode-haskell","commit_stats":null,"previous_names":["srid/opencode-haskell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srid/opencode-haskell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fopencode-haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fopencode-haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fopencode-haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fopencode-haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srid","download_url":"https://codeload.github.com/srid/opencode-haskell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fopencode-haskell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33670211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":"2026-05-29T21:01:17.991Z","updated_at":"2026-05-29T21:01:18.728Z","avatar_url":"https://github.com/srid.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencode-haskell\n\n[![Hackage](https://img.shields.io/hackage/v/opencode.svg)](https://hackage.haskell.org/package/opencode)\n\nHaskell client library for [OpenCode](https://github.com/anomalyco/opencode) server API.\n\nSee the [OpenCode SDK docs](https://opencode.ai/docs/sdk/) for the full API reference.\n\n## Usage\n\n```haskell\nimport OpenCode\n\nmain :: IO ()\nmain = do\n  client \u003c- mkClient \"localhost\" 4096\n  \n  -- Check health\n  Right health \u003c- getHealth client\n  \n  -- Create session and send message\n  Right session \u003c- createSession client Nothing (SessionCreateInput (Just \"My Session\") Nothing)\n  Right response \u003c- promptSession client session.id Nothing (MessageInput [textPartInput \"Hello!\"])\n  \n  -- Clean up\n  deleteSession client session.id Nothing\n```\n\n## Run example\n\n```bash\njust example\n```\n\nOr with custom server:\n\n```bash\nnix run .#example -- localhost:4096\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fopencode-haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrid%2Fopencode-haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fopencode-haskell/lists"}