{"id":44745408,"url":"https://github.com/metaory/platform-compat-screen","last_synced_at":"2026-02-28T11:01:03.145Z","repository":{"id":326090989,"uuid":"1103904722","full_name":"metaory/platform-compat-screen","owner":"metaory","description":"Device-targeted blocking and warning overlays","archived":false,"fork":false,"pushed_at":"2025-11-25T14:37:44.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-28T19:35:17.624Z","etag":null,"topics":["compatibility","compatible","device-detection","npm","pin","platform-detection"],"latest_commit_sha":null,"homepage":"https://metaory.github.io/platform-compat-screen/","language":"CSS","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/metaory.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-25T13:45:04.000Z","updated_at":"2025-11-25T14:40:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/metaory/platform-compat-screen","commit_stats":null,"previous_names":["metaory/platform-compat-screen"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/metaory/platform-compat-screen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fplatform-compat-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fplatform-compat-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fplatform-compat-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fplatform-compat-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/platform-compat-screen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fplatform-compat-screen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29931031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"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":["compatibility","compatible","device-detection","npm","pin","platform-detection"],"created_at":"2026-02-15T22:00:20.192Z","updated_at":"2026-02-28T11:01:03.111Z","avatar_url":"https://github.com/metaory.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"logo\" src=\"public/logo.svg\" width=\"80\"\u003e\n  \u003ch1\u003eplatform-compat-screen\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eDevice-targeted blocking and warning overlays\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003eA minimal library for showing platform compatibility screens - blocking or warning overlays for mobile/desktop devices.\u003c/p\u003e\n\u003c/div\u003e\n\n## Installation\n\n```bash\nnpm install platform-compat-screen\n```\n\n## Usage\n\n### NPM (Source Files)\n\n```javascript\nimport platformCompatScreen from \"platform-compat-screen\";\n\nplatformCompatScreen({\n  mode: \"block\",\n  target: \"mobile\",\n  message: \"This application requires a desktop device.\",\n});\n```\n\n### CDN (Unpkg)\n\n```html\n\u003clink\n  rel=\"stylesheet\"\n  href=\"https://unpkg.com/platform-compat-screen@latest/lib/style.css\"\n/\u003e\n\u003cscript\n  type=\"module\"\n  src=\"https://unpkg.com/platform-compat-screen@latest/lib/cdn.js?mobile=true\u0026mode=block\"\n\u003e\u003c/script\u003e\n```\n\n## API\n\n### `platformCompatScreen(options)`\n\n- `mode` (string): `'block'` | `'warn'` - Blocking or dismissible overlay\n- `target` (string): `'mobile'` | `'desktop'` | `'both'` - Device type to target\n- `message` (string): Message to display\n- `dismissText` (string): Button text for warn mode (default: 'Dismiss')\n\n## CDN Query Parameters\n\n- `mobile=true` - Target mobile devices\n- `desktop=true` - Target desktop devices\n- `mode=block` | `mode=warn` - Overlay mode\n- `message=Your%20message` - Custom message (URL encoded)\n\n## CSS Customization\n\nOverride design tokens:\n\n```css\n:root {\n  --pcs-bg: rgba(0, 0, 0, 0.6);\n  --pcs-bg-blur: 20px;\n  --pcs-text: #ffffff;\n  --pcs-button-bg: rgba(255, 255, 255, 0.9);\n  --pcs-button-text: #000000;\n  --pcs-padding: 2rem;\n  --pcs-gap: 1.5rem;\n  --pcs-font-size: 1.125rem;\n  --pcs-title-size: 1.5rem;\n  --pcs-title-weight: 600;\n  --pcs-border-radius: 1rem;\n  --pcs-z-index: 9999;\n}\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fplatform-compat-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fplatform-compat-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fplatform-compat-screen/lists"}