{"id":18701119,"url":"https://github.com/piotrfleury/micro-elements","last_synced_at":"2026-06-23T17:32:07.671Z","repository":{"id":110088798,"uuid":"574205778","full_name":"PiotrFLEURY/micro-elements","owner":"PiotrFLEURY","description":"This project is a Proof Of Concept of micro front end with Flutter part","archived":false,"fork":false,"pushed_at":"2022-12-04T18:51:39.000Z","size":340,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T07:31:36.657Z","etag":null,"topics":["flutter","microfrontends","web"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PiotrFLEURY.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}},"created_at":"2022-12-04T18:44:25.000Z","updated_at":"2022-12-04T18:49:42.000Z","dependencies_parsed_at":"2023-05-06T06:46:04.925Z","dependency_job_id":"f8315dc3-c79b-4ada-b082-2e78d13a3c50","html_url":"https://github.com/PiotrFLEURY/micro-elements","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PiotrFLEURY/micro-elements","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrFLEURY%2Fmicro-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrFLEURY%2Fmicro-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrFLEURY%2Fmicro-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrFLEURY%2Fmicro-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiotrFLEURY","download_url":"https://codeload.github.com/PiotrFLEURY/micro-elements/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrFLEURY%2Fmicro-elements/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34700906,"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-23T02:00:07.161Z","response_time":65,"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":["flutter","microfrontends","web"],"created_at":"2024-11-07T11:40:40.739Z","updated_at":"2026-06-23T17:32:07.656Z","avatar_url":"https://github.com/PiotrFLEURY.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micro frond end with Flutter\n\nThis project is a Proof Of Concept of micro front end with Flutter part\n\n## Getting Started\n\nFirst run the Flutter bottom_bar app on web in release mode\n\n```bash\ncd bottom_bar\nflutter run -d chrome --release --web-port=3000\n```\n\nThen start a live-server in the root folder\n\n```bash\nlive-server\n``` \n\n## How it works\n\nThis project uses custom HTML element definitions.\n\n### Base layer\n\nA first abstraction layer is defined in `micro/micro-element.js`\n\n### Define custom element\n\nTo define a new micro element, you need to extend the `MicroElement`.\n\n```js\nclass MicroBottomBar extends MicroElement {\n    content = (attributes) =\u003e {\n        let { width, height } = attributes;\n        return `\n    \u003cstyle\u003e\n        #app-container {\n          height: ${height};\n          width: ${width};\n          margin: 0 auto;\n          border: none;\n          referer-policy: same-origin;\n        }\n      \u003c/style\u003e\n    \u003ciframe \n        id=\"app-container\"\n        src=\"http://localhost:3000/\"\u003e\n    \u003c/iframe\u003e\n        `;\n    }\n\n    microAttributes = [ 'width', 'height' ];\n}\n\ndefineElement('micro-bottom-bar', MicroBottomBar);\n```\n\n### Use custom element\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003c!-- header content --\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n\n        \u003c!-- ... --\u003e\n        \n        \u003c!-- This is a custom HTML element containing a Flutter Web app --\u003e\n        \u003cmicro-bottom-bar width=\"100%\" height=\"100px\"\u003e\u003c/micro-bottom-bar\u003e\n\n        \u003c!-- ... --\u003e\n\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Communication between micro elements\n\n__TODO - This part has not been yet etablished.__\n\n\u003e Requirements:\n\u003e - Being able to listen events from a micro element\n\u003e - Being able to send events to a micro element","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrfleury%2Fmicro-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrfleury%2Fmicro-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrfleury%2Fmicro-elements/lists"}