{"id":25345437,"url":"https://github.com/funtechinc/handshake","last_synced_at":"2026-02-12T23:02:08.719Z","repository":{"id":276716021,"uuid":"930073349","full_name":"FunTechInc/handshake","owner":"FunTechInc","description":"🤝 Shake hands with iframe","archived":false,"fork":false,"pushed_at":"2025-02-11T13:50:16.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T12:43:04.974Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FunTechInc.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}},"created_at":"2025-02-10T02:44:05.000Z","updated_at":"2025-08-18T16:10:51.000Z","dependencies_parsed_at":"2025-02-10T03:21:56.698Z","dependency_job_id":"e0ae1392-fbe8-4483-9134-eb057e62c223","html_url":"https://github.com/FunTechInc/handshake","commit_stats":null,"previous_names":["funtechinc/handshake"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FunTechInc/handshake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunTechInc%2Fhandshake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunTechInc%2Fhandshake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunTechInc%2Fhandshake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunTechInc%2Fhandshake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FunTechInc","download_url":"https://codeload.github.com/FunTechInc/handshake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunTechInc%2Fhandshake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29384996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"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":"2025-02-14T12:35:15.430Z","updated_at":"2026-02-12T23:02:08.685Z","avatar_url":"https://github.com/FunTechInc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Promise-based postMessage iframe communication library.\n0 dependencies, Lightweight.\n\n```bash\n$ npm i @funtech-inc/handshake --D\n```\n\n```html\n// CDN\n\u003cscript src=\"https://unpkg.com/@funtech-inc/handshake@latest\"\u003e\n```\n\n## Example\n\n**parent**\n\n```javascript\nnew Handshake.Parent({\n   container: \"container\",\n   url: \"http://example.com/child\",\n}).ready(({ on, emit, container, iframe }) =\u003e {\n   console.log(container); // HTMLElement\n   console.log(iframe); // HTMLIFrameElement\n   emit(\"parentToChild\", \"hello child\");\n   on(\"childToParent\", (data) =\u003e {\n      console.log(data);\n   }); // Log... \"hello parent\"\n});\n```\n\n**child**\n\n```javascript\nnew Handshake.Child({ url: \"http://example.com/\" }).ready(({ on, emit }) =\u003e {\n   emit(\"childToParent\", \"hello parent\");\n   on(\"parentToChild\", (data) =\u003e {\n      console.log(data);\n   }); // Log... \"hello child\"\n});\n```\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuntechinc%2Fhandshake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuntechinc%2Fhandshake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuntechinc%2Fhandshake/lists"}