{"id":15251167,"url":"https://github.com/matthewp/fritz","last_synced_at":"2025-04-10T20:12:11.113Z","repository":{"id":42676537,"uuid":"75236001","full_name":"matthewp/fritz","owner":"matthewp","description":"Take your UI off the main thread","archived":false,"fork":false,"pushed_at":"2023-02-16T23:31:20.000Z","size":2105,"stargazers_count":41,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T10:01:46.145Z","etag":null,"topics":["framework","javascript","webcomponents","workers"],"latest_commit_sha":null,"homepage":"https://fritz.work","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthewp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-11-30T23:20:29.000Z","updated_at":"2024-09-17T03:32:49.000Z","dependencies_parsed_at":"2024-06-21T15:37:54.652Z","dependency_job_id":"64a6f02d-b3a1-488e-9769-52ea106fe754","html_url":"https://github.com/matthewp/fritz","commit_stats":{"total_commits":236,"total_committers":5,"mean_commits":47.2,"dds":"0.31779661016949157","last_synced_commit":"d2128919ba984735df26ee4cd473ad8cf0200b73"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Ffritz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Ffritz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Ffritz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Ffritz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewp","download_url":"https://codeload.github.com/matthewp/fritz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288361,"owners_count":21078903,"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":["framework","javascript","webcomponents","workers"],"created_at":"2024-09-29T17:07:27.116Z","updated_at":"2025-04-10T20:12:11.095Z","avatar_url":"https://github.com/matthewp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fritz\n\nA library for rendering custom elements in a web worker.\n\n**worker.js**\n\n```js\nimport { Component, h } from 'fritz';\n\nclass Hello extends Component {\n  static get props() {\n    return {\n      name: { attribute: true }\n    }\n  }\n\n  render({name}) {\n    return (\n      \u003cspan\u003eHello {name}\u003c/span\u003e\n    );\n  }\n}\n\nfritz.define('x-hello', Hello);\n```\n\n**index.html**\n\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003ctitle\u003eMy App\u003c/title\u003e\n\n\u003cx-hello name=\"world\"\u003e\u003c/x-hello\u003e\n\n\u003cscript type=\"module\"\u003e\n  import fritz from '//unpkg.com/fritz@next/window.js';\n\n  fritz.use(new Worker('./worker.js'));\n\u003c/script\u003e\n```\n\n## Install\n\nUsing [Yarn](https://yarnpkg.com/en/):\n\n```shell\nyarn add fritz\n```\n\nUsing npm:\n\n```shell\nnpm install fritz\n```\n\n## License\n\nBSD 2 Clause","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewp%2Ffritz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewp%2Ffritz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewp%2Ffritz/lists"}