{"id":50999790,"url":"https://github.com/dashpilot/pica-cdn","last_synced_at":"2026-06-20T13:05:00.301Z","repository":{"id":335143490,"uuid":"1144465904","full_name":"dashpilot/pica-cdn","owner":"dashpilot","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-28T18:06:59.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-29T08:46:14.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pica-cdn.vercel.app","language":"HTML","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/dashpilot.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-28T17:59:32.000Z","updated_at":"2026-01-28T18:07:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dashpilot/pica-cdn","commit_stats":null,"previous_names":["dashpilot/pica-cdn"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dashpilot/pica-cdn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fpica-cdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fpica-cdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fpica-cdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fpica-cdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashpilot","download_url":"https://codeload.github.com/dashpilot/pica-cdn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fpica-cdn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34570579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-20T13:04:59.628Z","updated_at":"2026-06-20T13:05:00.293Z","avatar_url":"https://github.com/dashpilot.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pica CDN build\n\nThis repo bundles [`nodeca/pica`](https://github.com/nodeca/pica) into browser-ready files you can host on any static CDN.\n\n## Build\n\n```bash\nnpm install\nnpm run build\n```\n\nOutputs:\n\n- `dist/pica.esm.js` (ES module)\n- `dist/pica.iife.js` (classic `\u003cscript\u003e` build, exposes `globalThis.pica`)\n- `dist/pica.iife.min.js` (minified classic build)\n\n## Use via CDN\n\n### Classic `\u003cscript\u003e` (global)\n\n```html\n\u003cscript src=\"https://pica-cdn.vercel.app/pica.iife.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const p = window.pica();\n  // await p.resize(from, to)\n\u003c/script\u003e\n```\n\n### ESM\n\n```html\n\u003cscript type=\"module\"\u003e\n  import pica from \"https://pica-cdn.vercel.app/pica.esm.js\";\n  const p = pica();\n\u003c/script\u003e\n```\n\n## Local demo\n\nAfter building, open `index.html` (served from a static server).\n\nExample:\n\n```bash\nnpx serve .\n```\n\n## Vercel\n\nThis repo includes `vercel.json` and the build writes `dist/index.html`, so Vercel can deploy it as a static site.\n\n- **Build Command**: `npm run build`\n- **Output Directory**: `dist`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Fpica-cdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashpilot%2Fpica-cdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Fpica-cdn/lists"}