{"id":51836267,"url":"https://github.com/fildon/peripheral","last_synced_at":"2026-07-22T22:03:52.280Z","repository":{"id":355386852,"uuid":"1227894935","full_name":"fildon/peripheral","owner":"fildon","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-03T10:58:08.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T12:23:02.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fildon.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-05-03T10:03:58.000Z","updated_at":"2026-05-03T10:58:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fildon/peripheral","commit_stats":null,"previous_names":["fildon/peripheral"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fildon/peripheral","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fildon%2Fperipheral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fildon%2Fperipheral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fildon%2Fperipheral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fildon%2Fperipheral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fildon","download_url":"https://codeload.github.com/fildon/peripheral/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fildon%2Fperipheral/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35778989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"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-07-22T22:03:51.642Z","updated_at":"2026-07-22T22:03:52.275Z","avatar_url":"https://github.com/fildon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peripheral\n\nPeripheral is a browser-based webcam effect that keeps the center of the frame relatively clear while degrading detail toward the edges into noisy Voronoi-like cells.\n\nFrom a user perspective, this feels like peripheral vision simulation:\n\n- Center region: higher detail and finer cells\n- Periphery: larger, noisier cell regions with reduced effective detail\n- Live controls: tune how strong and how smooth the effect feels in real time\n\n## Features\n\n- Live webcam processing in the browser (no backend)\n- Radially weighted Voronoi-like sampling\n- Organic periphery abstraction with stable Voronoi-like cells\n- Real-time controls for:\n  - Seed Count\n  - Center Radius\n  - Falloff Width\n- Status indicators for camera state, FPS, and processing resolution\n\n## Tech Stack\n\n- Vanilla HTML/CSS/JavaScript\n- Canvas 2D rendering\n- `http-server` for local static serving\n\n## Local Development\n\n### Prerequisites\n\n- Node.js + npm\n- OpenSSL available on PATH\n\n### Install\n\n```bash\nnpm install\n```\n\n### Run (HTTPS local dev)\n\n```bash\nnpm run dev\n```\n\nThe `dev` script currently performs the secure local flow through package scripts:\n\n1. `cert:prepare` - ensures the `cert` directory exists\n2. `cert:generate` - generates a self-signed localhost certificate and key\n3. `dev:https` - starts `http-server` over HTTPS on port `5173`\n\nOpen:\n\n- `https://127.0.0.1:5173`\n- or `https://localhost:5173` (if listed by your server output)\n\n## First-Run Notes\n\n- Browser will likely show a warning for the self-signed certificate.\n- The app attempts to start the camera automatically on page load.\n- Allow camera access when the browser permission prompt appears.\n- Webcam APIs require a secure context, so `file://` is not sufficient.\n\n## Deployment Notes\n\nFor GitHub Pages, you do **not** need to ship your local certs.\nGitHub Pages serves over trusted HTTPS, so users just grant camera permission in-browser.\n\n## Project Structure\n\n- `index.html` - UI layout and controls\n- `styles.css` - visual design and responsive layout\n- `app.js` - webcam capture, effect pipeline, render loop, and controls\n- `package.json` - local development scripts\n- `cert/` - local self-signed cert artifacts (development only)\n\n## Troubleshooting\n\n- Camera not available:\n  - Check browser site permissions\n  - Confirm another app is not locking the camera\n- OpenSSL command not found:\n  - Install OpenSSL and ensure it is on PATH\n- Browser still blocks camera on local dev:\n  - Verify you are on `https://...`, not `http://...` or `file://...`\n- Performance is choppy:\n  - Reduce Seed Count\n  - Reduce browser tab and background app load\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffildon%2Fperipheral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffildon%2Fperipheral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffildon%2Fperipheral/lists"}