{"id":27118634,"url":"https://github.com/doga/qworum-for-web-pages","last_synced_at":"2026-03-01T06:32:29.653Z","repository":{"id":60924146,"uuid":"532593910","full_name":"doga/qworum-for-web-pages","owner":"doga","description":"A JavaScript library for Qworum-based web applications.","archived":false,"fork":false,"pushed_at":"2025-05-01T17:37:21.000Z","size":1149,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-08T21:24:33.092Z","etag":null,"topics":["es6-javascript","ipaas","ipaas-platform","javascript","javascript-library","paas","paas-framework","paas-frontend","qworum","saas","saas-api","web-development"],"latest_commit_sha":null,"homepage":"http://qworum.net/docs/qworum-for-web-pages/latest/Qworum.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doga.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}},"created_at":"2022-09-04T16:25:38.000Z","updated_at":"2025-05-01T17:37:05.000Z","dependencies_parsed_at":"2024-04-25T19:33:28.908Z","dependency_job_id":"9376db46-6a4f-48c1-aa6c-265627762627","html_url":"https://github.com/doga/qworum-for-web-pages","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/doga/qworum-for-web-pages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fqworum-for-web-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fqworum-for-web-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fqworum-for-web-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fqworum-for-web-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doga","download_url":"https://codeload.github.com/doga/qworum-for-web-pages/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fqworum-for-web-pages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29962022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T05:59:08.471Z","status":"ssl_error","status_checked_at":"2026-03-01T05:58:04.208Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["es6-javascript","ipaas","ipaas-platform","javascript","javascript-library","paas","paas-framework","paas-frontend","qworum","saas","saas-api","web-development"],"created_at":"2025-04-07T07:59:10.843Z","updated_at":"2026-03-01T06:32:29.622Z","avatar_url":"https://github.com/doga.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Qworum logo and name](https://raw.githubusercontent.com/doga/qworum-website/master/build/assets/images/logos/Qworum-logo-and-name.svg \"Qworum logo and name\")\n\n# Qworum for web pages\n\nThis is [Qworum](https://qworum.net)'s official JavaScript library for web frontends.\n\n## Documentation\n\nThe documentation for the latest version of this library is available [here](https://qworum.net/docs/qworum-for-web-pages/latest/Qworum.html).\n\n## Some projects that are using this library\n\n[Template for a Qworum application that uses RDF data](https://github.com/doga/qworum-application-template-with-semantic-data).\n\n## How to import this library in a web page\n\n`import { QworumScript, Qworum } from \"https://esm.sh/gh/doga/qworum-for-web-pages@1.7.0/mod.mjs\";`\n\n## Activating Qworum for a website\n\nQworum provides advanced browser capabilities through a browser extension.\nBy default Qworum is actived for [local development](https://qworum.net/en/developers/#local-development) only.\nActivating Qworum for a website requires a [subscription](https://qworum.net/en/plans/).\n\n## Usage\n\n_Tip: Run the examples below by typing this in your terminal (requires [Deno](https://deno.com/) 2+):_\n\n```shell\ndeno run \\\n  --allow-net --allow-run --allow-env --allow-read \\\n  jsr:@andrewbrey/mdrb@3.0.4 \\\n  --dax=false \\\n  https://raw.githubusercontent.com/doga/qworum-for-web-pages/master/README.md\n```\n\n\u003cdetails data-mdrb\u003e\n\u003csummary\u003eGenerate a Qworum script in-memory.\u003c/summary\u003e\n\n\u003cpre\u003e\ndescription = '''\nRunning this code is safe.\n'''\n\u003c/pre\u003e\n\u003c/details\u003e\n\n```javascript\nimport { QworumScript, Qworum } from 'https://esm.sh/gh/doga/qworum-for-web-pages@1.7.0/mod.mjs';\n\nconst\nScript   = QworumScript.Script.build,\nSequence = QworumScript.Sequence.build,\nCall     = QworumScript.Call.build,\nGoto     = QworumScript.Goto.build,\nscript   = Script(\n  Sequence(\n    Call(['@', 'shopping cart'], 'https://shopping-cart.example/view/'),\n    Goto(\"/home/\")\n  )\n);\n\nconsole.info(`${script}`);\n\n// In a browser the Qworum extension would run the Qworum script.\n// await Qworum.eval(script);\n```\n\nSample output for the code above:\n\n```text\nSequence(Call(object: [@, shopping cart], href: https://shopping-cart.example/view/),Goto(href: /home/))\n```\n\n\u003cdetails data-mdrb\u003e\n\u003csummary\u003eCreate semantic data sourced from a Turtle file.\u003c/summary\u003e\n\n\u003cpre\u003e\ndescription = '''\nRunning this code is safe.\n'''\n\u003c/pre\u003e\n\u003c/details\u003e\n\n```javascript\nimport { SemanticData, Qworum } from 'https://esm.sh/gh/doga/qworum-for-web-pages@1.7.0/mod.mjs';\n\nconst org = new SemanticData();\n\nawait org.readFromUrl(new URL('https://qworum.net/data/org.ttl'));\n\nconsole.info(`${org}`);\n\n// In a browser the Qworum extension could store this as session data.\n// await Qworum.setData('Organisation', org);\n```\n\nSample output for the code above:\n\n```text\nSemanticData(\n  …\n  \u003chttps://qworum.net/data/org.ttl#id\u003e a \u003chttp://www.w3.org/ns/org#Organization\u003e, \u003chttps://w3id.org/okn/o/sd#Organization\u003e;\n      \u003chttp://www.w3.org/ns/org#purpose\u003e \"Qworum is a provider of enterprise infrastructure software, with the overarching goal of making the web a fully fledged platform for applications.\"@en;\n  …\n)\n```\n\n\u003cdetails data-mdrb\u003e\n\u003csummary\u003eQworum scripts must not contain platform faults.\u003c/summary\u003e\n\n\u003cpre\u003e\ndescription = '''\nRunning this code is safe.\n'''\n\u003c/pre\u003e\n\u003c/details\u003e\n\n```javascript\nimport { QworumScript, Qworum } from 'https://esm.sh/gh/doga/qworum-for-web-pages@1.7.0/mod.mjs';\n\nconst\nScript     = QworumScript.Script.build,\nFault      = QworumScript.Fault.build,\nfaultTypes = ['* entitlement', 'payment cancelled', null];\n\nfor(const faultType of faultTypes){\n  try{\n    const script = Script(Fault(faultType));\n    console.info(`${script}`);\n  }catch(error){\n    console.error(`${error}`);\n  }\n}\n```\n\nSample output for the code above:\n\n```text\nTypeError: not a service-specific fault: '* entitlement'\nFault(type: payment cancelled)\nFault(type: * service-specific)\n```\n\n## License\n\nThis software is released under the terms of the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0).\n\n∎\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoga%2Fqworum-for-web-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoga%2Fqworum-for-web-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoga%2Fqworum-for-web-pages/lists"}