{"id":17358914,"url":"https://github.com/muke1908/iframy","last_synced_at":"2026-01-20T12:33:09.751Z","repository":{"id":44026592,"uuid":"227854391","full_name":"muke1908/iFramy","owner":"muke1908","description":"Embed Iframe to your site and communicate with your iframe super easily.","archived":false,"fork":false,"pushed_at":"2023-01-07T12:47:17.000Z","size":580,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T19:01:44.027Z","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/muke1908.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}},"created_at":"2019-12-13T14:12:19.000Z","updated_at":"2020-04-13T13:51:27.000Z","dependencies_parsed_at":"2023-02-07T04:45:29.348Z","dependency_job_id":null,"html_url":"https://github.com/muke1908/iFramy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2FiFramy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2FiFramy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2FiFramy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2FiFramy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muke1908","download_url":"https://codeload.github.com/muke1908/iFramy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485286,"owners_count":20946398,"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","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":"2024-10-15T19:07:30.372Z","updated_at":"2026-01-20T12:33:09.660Z","avatar_url":"https://github.com/muke1908.png","language":"JavaScript","readme":"# iFramy\nEmbed Iframe to your site and communicate with your iframe super easily.\n\n## How to use: \nOnce you import the script, `iFramy` will be avaiable in global scope.  \n\n### Render iFrame: \n```\niFramy.mount({\n      containerId: \u003c container_id \u003e,\n      url: \u003ciframe_url\u003e,\n      debug: \u003c true | false \u003e,\n      height: 500,\n      eventHandlers: Object,\n      onLoad: onLoadHandler      \n})\n```\n\n### Communication:\n1. You can pass set of events and handlers in `eventHandlers` as key-value pair.  \nExample `eventHandlers`:  \n```\n{ \n  customEventFromIframe: customEventHandler,\n  someOtherEventFromIframe: someOtherEventHandler \n}\n```\n\n2. Send message to iframe:  \n```\niFramy.sendToIframe({ eventType, data, targetOrigin })\n```  \n\n### Troubleshoot known issue:  \n**Height:**   \nSetting height of iframe in host site is always tricky because of unknown content height. \nThere is a default handler in `iFramy` to set height. You can check height in your iframe by adding a `resize` listener \nand send it back to parent by:\n```\nwindow.addEventListener(\"resize\", ()=\u003e {\n  // get and set height\n  window.parent.postMessage({\n    eventType: 'setHeight',\n    data: { height }\n  }, '*');\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuke1908%2Fiframy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuke1908%2Fiframy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuke1908%2Fiframy/lists"}