{"id":24424032,"url":"https://github.com/yutopp/bs-phoenix","last_synced_at":"2026-04-20T16:35:05.889Z","repository":{"id":143196808,"uuid":"113745071","full_name":"yutopp/bs-phoenix","owner":"yutopp","description":"BuckleScript bindings for the Phoenix.js client","archived":false,"fork":false,"pushed_at":"2017-12-24T06:21:57.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T18:39:48.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":false,"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/yutopp.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}},"created_at":"2017-12-10T11:41:32.000Z","updated_at":"2025-02-22T19:23:10.000Z","dependencies_parsed_at":"2023-05-23T10:15:09.058Z","dependency_job_id":null,"html_url":"https://github.com/yutopp/bs-phoenix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yutopp/bs-phoenix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutopp%2Fbs-phoenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutopp%2Fbs-phoenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutopp%2Fbs-phoenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutopp%2Fbs-phoenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutopp","download_url":"https://codeload.github.com/yutopp/bs-phoenix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutopp%2Fbs-phoenix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32055511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-01-20T10:48:53.038Z","updated_at":"2026-04-20T16:35:05.871Z","avatar_url":"https://github.com/yutopp.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bs-phoenix - BuckleScript bindings for Phoenix.js\n\nThis package is a fork of [yawaramin/bs-phoenix](https://github.com/yawaramin/bs-phoenix).\n\nPhoenix.js is the JavaScript client for the Phoenix framework:\nhttps://github.com/phoenixframework/phoenix/blob/v1.3/assets/js/phoenix.js\n\nThis binding aims to be as close as possible to idiomatic OCaml. There is\nanother existing binding, https://github.com/phoenix-china/bucklescript-phx ,\nwhich is more feature-complete. The difference between this one and that is,\nthis one is very much a work in progress! Also, this one sticks more closely\nwith the `Module.function` idiom that's normal in OCaml.\n\nFor example, a JavaScript snippet from the Phoenix.js module:\n\n```javascript\nlet socket = new Socket(\"/socket\", {params: {userToken: \"123\"}})\n```\n\ntranslates to the corresponding OCaml in bs-phoenix:\n\n```ocaml\nopen Phoenix\n\nlet socket = Socket.make \"/socket\" [%obj { params = { userToken = \"123\" } }]\n```\n\n## Use\n\nAdd the package to your npm project:\n\n    $ npm install @yutopp/bs-phoenix\n\nAdd the BuckleScript dependency to your `bsconfig.json`:\n\n    {\n      ...,\n      \"bs-dependencies\": [..., \"@yutopp/bs-phoenix\"]\n    }\n\nAnd see the `src/test.ml` file for examples of what the code should look\nlike.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutopp%2Fbs-phoenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutopp%2Fbs-phoenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutopp%2Fbs-phoenix/lists"}