{"id":38505832,"url":"https://github.com/ad-si/mquickjs-hs","last_synced_at":"2026-01-20T19:04:56.522Z","repository":{"id":332579903,"uuid":"1134257160","full_name":"ad-si/mquickjs-hs","owner":"ad-si","description":"Haskell wrapper for the Micro QuickJS JavaScript Engine","archived":false,"fork":false,"pushed_at":"2026-01-14T14:43:10.000Z","size":1193,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T17:36:16.342Z","etag":null,"topics":["es5","haskell","javascript","library","mquickjs","quickjs","wrapper"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/mquickjs-hs","language":"C","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/ad-si.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["ad-si"],"custom":["https://www.paypal.me/adriansieber"]}},"created_at":"2026-01-14T13:25:06.000Z","updated_at":"2026-01-14T17:34:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ad-si/mquickjs-hs","commit_stats":null,"previous_names":["ad-si/mquickjs-hs"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ad-si/mquickjs-hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fmquickjs-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fmquickjs-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fmquickjs-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fmquickjs-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ad-si","download_url":"https://codeload.github.com/ad-si/mquickjs-hs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fmquickjs-hs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28543495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"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":["es5","haskell","javascript","library","mquickjs","quickjs","wrapper"],"created_at":"2026-01-17T06:10:20.145Z","updated_at":"2026-01-18T17:00:48.480Z","avatar_url":"https://github.com/ad-si.png","language":"C","readme":"# mquickjs-hs\n\nThis package provides a Haskell wrapper for the [Micro QuickJS](https://github.com/bellard/mquickjs) JavaScript Engine.\nIt has been inspired by the [quickjs-rs](https://github.com/theduke/quickjs-rs)\nand [ocaml-quickjs](https://github.com/dhcmrlchtdj/ocaml-quickjs) libraries.\n\n\n## Features\n\nThe functionality is quite basic and is currently limited to:\n- Evaluating JS code\n- Calling a JS function in the global scope\n- Marshalling [Aeson Values](https://hackage.haskell.org/package/aeson-1.5.3.0/docs/Data-Aeson.html#t:Value)\n    to and from JSValues.\n\n\n## Examples\n\nEvaluate an expression:\n\n```hs\nimport MQuickJS\n\none_plus_two = mquickjs $ do\n  res \u003c- eval \"1+2\"\n  liftIO $ print res\n```\n\nDeclare a function and call it on an argument:\n\n```hs\ncall_f = mquickjs $ do\n  _ \u003c- eval_ \"function f(x) { return x + 1; }\"\n  res \u003c- eval \"f(2)\"\n  liftIO $ print res\n```\n\nPass a Haskell value\n(which has a [ToJSON](https://hackage.haskell.org/package/aeson-1.5.3.0/docs/Data-Aeson.html#t:ToJSON) instance)\nto the JS runtime:\n\n```hs\naeson_marshall = mquickjs $ do\n  _ \u003c- eval_ \"function f(x) { return x + 1; }\"\n  res \u003c- withJSValue (3::Int) $ \\x -\u003e call \"f\" [x]\n  liftIO $ print res\n```\n\n\n## Contributing\n\nPlease feel free to report bugs/submit feature requests via the\n[github issue tracker](https://github.com/ad-si/mquickjs-hs/issues)\nand submit any pull requests to the\n[git repository](https://github.com/ad-si/mquickjs-hs/).\n","funding_links":["https://github.com/sponsors/ad-si","https://www.paypal.me/adriansieber"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fmquickjs-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fad-si%2Fmquickjs-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fmquickjs-hs/lists"}