{"id":13565536,"url":"https://github.com/ciao-lang/ciaowasm","last_synced_at":"2026-03-12T05:34:48.191Z","repository":{"id":128804581,"uuid":"510275459","full_name":"ciao-lang/ciaowasm","owner":"ciao-lang","description":"Ciao Prolog for Javascript (w/ WebAssembly)","archived":false,"fork":false,"pushed_at":"2024-11-15T18:33:39.000Z","size":90,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-15T19:31:50.321Z","etag":null,"topics":["ciao-prolog","javascript","prolog","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ciao-lang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2022-07-04T08:31:56.000Z","updated_at":"2024-11-15T18:33:49.000Z","dependencies_parsed_at":"2024-01-16T18:58:37.004Z","dependency_job_id":"9bd0c079-d638-4b0f-a763-c5a36d26360f","html_url":"https://github.com/ciao-lang/ciaowasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciao-lang%2Fciaowasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciao-lang%2Fciaowasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciao-lang%2Fciaowasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciao-lang%2Fciaowasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciao-lang","download_url":"https://codeload.github.com/ciao-lang/ciaowasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247090265,"owners_count":20881940,"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","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":["ciao-prolog","javascript","prolog","wasm","webassembly"],"created_at":"2024-08-01T13:01:49.578Z","updated_at":"2025-10-29T04:59:41.041Z","avatar_url":"https://github.com/ciao-lang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Ciao Prolog for JavaScript\n\nThis bundle provides a Ciao **engine** variant for WebAssembly\n[Emscripten](https://emscripten.org/docs/getting_started/downloads.html),\nand a **high-level JS client** (`ciao-prolog.js`). It also provides a\n`wasm` **build grade** (see `src_builder/`), necessary to pack and\ndistribute bundles for this backend.\n\n## Build and Usage\n\nInstall and enable\n[Emscripten](https://emscripten.org/docs/getting_started/downloads.html)\nSDK (EMSDK). Then use the `build.sh` script to prepare a build. Build\nand installation will populate the `build/site/` directory in the\ncurrent workspace.\n\nThis interface is used in the **Ciao Playground** and **(LPdoc) Active\nLogic Documents** to provide client-side Prolog execution in the\nbrowser.\n\n### Running from NodeJS\n\nAdditionally, experimental support for [Node.js](https://nodejs.org)\nis available:\n```\n$ node build/site/js/ciao-prolog.js\nCiao 1.22.0 (2023-04-27 11:02:14 +0200) [EMSCRIPTENwasm32]\n?- \n```\n\nYou can select different architectures `wasm32`, `wasm64` or hybrid\n`wasm32p64` by setting the `CIAOARCH` environment variable:\n```\nCIAOARCH=wasm64 node ../../../build/site/js/ciao-prolog.js\n```\n  \n### Documentation of JavaScript bindings\n\nDocumentation of JavaScript bindings is auto-generated using\n[JSDoc](https://jsdoc.app).\n\n```\njsdoc -c Manifest/jsdoc-conf.json\n```\n\nThe HTML documentation will be generated in the `doc/js/` folder.\nInstall `jsdoc` with `npm install -g jsdoc` (or `npm install\n--save-dev jsdoc` locally).\n\n## Caveats\n\n - Operations repending on blocking IO (like console interaction) are\n   not handled nicely in\n   Emscripten. [Asyncify](https://emscripten.org/docs/porting/asyncify.html)\n   may be considered as an option but we must study its impact on\n   performance (but it is written to be large and slow without `-O3`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciao-lang%2Fciaowasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciao-lang%2Fciaowasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciao-lang%2Fciaowasm/lists"}