{"id":28908313,"url":"https://github.com/prakhar1989/jsjs","last_synced_at":"2025-08-25T18:39:13.710Z","repository":{"id":65982159,"uuid":"50222902","full_name":"prakhar1989/JSJS","owner":"prakhar1989","description":"A strongly typed language for the web!","archived":false,"fork":false,"pushed_at":"2016-05-17T00:30:50.000Z","size":3721,"stargazers_count":40,"open_issues_count":18,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-21T16:08:51.107Z","etag":null,"topics":["compilers","ocaml","programming-language","typed-language"],"latest_commit_sha":null,"homepage":"http://jsjs-lang.org","language":"OCaml","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/prakhar1989.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}},"created_at":"2016-01-23T04:11:42.000Z","updated_at":"2024-10-25T15:51:36.000Z","dependencies_parsed_at":"2023-02-19T18:30:31.856Z","dependency_job_id":null,"html_url":"https://github.com/prakhar1989/JSJS","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/prakhar1989/JSJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FJSJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FJSJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FJSJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FJSJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prakhar1989","download_url":"https://codeload.github.com/prakhar1989/JSJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FJSJS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272116053,"owners_count":24876264,"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-08-25T02:00:12.092Z","response_time":1107,"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":["compilers","ocaml","programming-language","typed-language"],"created_at":"2025-06-21T16:08:50.052Z","updated_at":"2025-08-25T18:39:13.705Z","avatar_url":"https://github.com/prakhar1989.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![img](logo.png)\n\n\u003e A strongly typed language for the web.\n\n##### Syntax\n```scala\nval gcd = /\\(a, b) =\u003e {\n  if a == b then a\n  else {\n    if a \u003e b\n    then gcd((a - b), b)\n    else gcd((b - a), a);\n  };\n};\n\nprint_num(gcd(12, 8));\n\n// support for optional types\nval pow = /\\(base, exp) =\u003e {\n  val aux = /\\(accum, e): num =\u003e {\n    if (e == 1) then accum\n    else aux (accum * base, e - 1);\n  };\n  aux(base, exp);\n};\n\nval chess_squares = pow(8, 2);\n\nprint_string(\"Total number of squares on a chessboard: \");\nprint_num(chess_squares);\n```\n#### Install\n1. Install ocaml\n  - For mac, using homebrew: `brew install ocaml ocamlbuild opam` \n2. Configure opam enviroment: `opam init`\n3. Install dependencies: `opam install ocamlfind core menhir`\n\n#### Build\n```shell\n$ make clean\n$ make\n```\n\n#### Compile\n```shell\n$ ./jsjs.out examples/list.jsjs\n$ node out.js\n```\n\n#### Test\n```shell\n$ make test\n$ make run-test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar1989%2Fjsjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprakhar1989%2Fjsjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar1989%2Fjsjs/lists"}