{"id":30656287,"url":"https://github.com/whaaaley/universal-proxy","last_synced_at":"2025-08-31T10:44:06.237Z","repository":{"id":301458967,"uuid":"1009331387","full_name":"whaaaley/universal-proxy","owner":"whaaaley","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-27T00:54:51.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-27T01:35:25.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/whaaaley.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}},"created_at":"2025-06-27T00:47:38.000Z","updated_at":"2025-06-27T00:54:54.000Z","dependencies_parsed_at":"2025-06-27T01:35:27.735Z","dependency_job_id":"c1e90254-1344-4927-8562-58bba50a02bf","html_url":"https://github.com/whaaaley/universal-proxy","commit_stats":null,"previous_names":["whaaaley/universal-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whaaaley/universal-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaaaley%2Funiversal-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaaaley%2Funiversal-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaaaley%2Funiversal-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaaaley%2Funiversal-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whaaaley","download_url":"https://codeload.github.com/whaaaley/universal-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaaaley%2Funiversal-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971423,"owners_count":25024094,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":"2025-08-31T10:44:05.566Z","updated_at":"2025-08-31T10:44:06.222Z","avatar_url":"https://github.com/whaaaley.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Universal Proxy\n\n**A proxy that handles any property access, function call, or constructor.**\n\n## What it does\n\nReturns a proxy that responds to any operation:\n\n- Property access: `obj.any.nested.property`\n- Function calls: `obj.anyMethod()`\n- Constructors: `new obj.AnyClass()`\n- Array destructuring: `const [a, b] = obj()`\n- Primitive operations: `obj + 10`, `obj \u003e 0`, `String(obj)`\n\n## Installation\n\n```bash\ndeno add jsr:@cynthia/universal-proxy\n```\n\n## Usage\n\n```javascript\nimport anything from 'jsr:@cynthia/universal-proxy'\n\nconst { api, config, service } = anything()\n\n// All operations work without errors\nconst user = api.users.fetch()\nconst settings = config.app.theme\nconst instance = new service.Validator()\nconst [state] = api.useState()\n```\n\n## Known Limitations\n\n**Infinite iterators**: The proxy uses infinite generators for array destructuring. This means:\n\n```javascript\nconst { hook } = anything()\n\n// ✅ Works - manual break\nfor (const item of hook()) {\n  if (count++ \u003e 2) break\n}\n\n// ✅ Works - limited destructuring\nconst [a, b, c] = hook()\n\n// ❌ Hangs - tries to consume infinite iterator\nconst items = [...hook()]\nconst all = Array.from(hook())\n```\n\nUse manual breaks or limited destructuring when working with iterators.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhaaaley%2Funiversal-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhaaaley%2Funiversal-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhaaaley%2Funiversal-proxy/lists"}