{"id":22188856,"url":"https://github.com/qwreey/compactive-js","last_synced_at":"2026-02-11T17:35:17.373Z","repository":{"id":263063000,"uuid":"878913661","full_name":"qwreey/compactive-js","owner":"qwreey","description":"Web-COMponent based COMPACT reACTIVE library","archived":false,"fork":false,"pushed_at":"2024-12-06T05:49:04.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T18:56:26.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/qwreey.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,"zenodo":null}},"created_at":"2024-10-26T13:06:31.000Z","updated_at":"2025-01-23T08:47:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"b85aa80d-956d-4e7a-b829-755f71fa6ce8","html_url":"https://github.com/qwreey/compactive-js","commit_stats":null,"previous_names":["qwreey/compactive-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qwreey/compactive-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fcompactive-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fcompactive-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fcompactive-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fcompactive-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwreey","download_url":"https://codeload.github.com/qwreey/compactive-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fcompactive-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29339700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:14:43.024Z","status":"ssl_error","status_checked_at":"2026-02-11T16:14:15.258Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-12-02T11:12:56.570Z","updated_at":"2026-02-11T17:35:17.366Z","avatar_url":"https://github.com/qwreey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web-**COMP**onent based **COMPACT** re**ACTIVE** library\n\n## WHY??\n\nMany reactive libraries require downloading at least 16kB. compactive uses the Web-Component to minimize the size, and hit 1.7kB (!!!)\n\n## Example\n\n```html\n\u003c!-- In head... you should embed compactive.js or compactive.min.js --\u003e\n\u003cscript\u003e\nclass MY_Switch extends BaseElement {\n    static { Init(this,_=\u003e_\n        .tag(\"my-switch\")\n        .content(html`\n            \u003cbutton -ref=\"btn\"\u003e\u003cslot\u003e\u003c/slot\u003e\u003c/button\u003e\n        `)\n        .style(css`\n            button.activate {\n                background-color: red;\n            }\n        `)\n        .attr(\"activate\")\n    )}\n    constructor() {\n        super()\n        this.btn.onclick = () =\u003e { this.activate = !this.activate }\n    }\n    activateAttr(val) {\n        if (val) this.btn.classList.add(\"activate\")\n        else this.btn.classList.remove(\"activate\")\n    }\n}\n\u003c/script\u003e\n\u003c!-- In body... --\u003e\n\u003cmy-switch data-activate=\"true\"\u003e\n    Hello world\n\u003c/my-switch\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwreey%2Fcompactive-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwreey%2Fcompactive-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwreey%2Fcompactive-js/lists"}