{"id":51312870,"url":"https://github.com/chengchuu/layer-esm","last_synced_at":"2026-07-01T05:32:22.736Z","repository":{"id":366332354,"uuid":"1275890850","full_name":"chengchuu/layer-esm","owner":"chengchuu","description":"Modern ESM Layer Library for Web Popups and Dialogs","archived":false,"fork":false,"pushed_at":"2026-06-28T13:36:18.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-28T14:14:49.895Z","etag":null,"topics":["dialog","esm","layer","library","popup"],"latest_commit_sha":null,"homepage":"","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/chengchuu.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-21T09:12:06.000Z","updated_at":"2026-06-28T13:33:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chengchuu/layer-esm","commit_stats":null,"previous_names":["chengchuu/layer-esm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chengchuu/layer-esm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Flayer-esm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Flayer-esm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Flayer-esm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Flayer-esm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chengchuu","download_url":"https://codeload.github.com/chengchuu/layer-esm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Flayer-esm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34915002,"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-29T02:00:05.398Z","response_time":58,"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":["dialog","esm","layer","library","popup"],"created_at":"2026-07-01T05:32:22.235Z","updated_at":"2026-07-01T05:32:22.719Z","avatar_url":"https://github.com/chengchuu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# layer-esm\n\n[![npm version][npm-image]][npm-url]\n[![l][l-image]][l-url]\n\n[npm-image]: https://img.shields.io/npm/v/layer-esm\n[npm-url]: https://npmjs.org/package/layer-esm\n[l-image]: https://img.shields.io/npm/l/layer-esm\n[l-url]: https://github.com/chengchuu/layer-esm\n\nSpecial thanks to 贤心, the original author of Layer, for creating a popup library that has been widely used across the web community for many years. layer-esm is a modern ESM adaptation and refactoring effort inspired by the original Layer project.\n\n## Install\n\nUse layer-esm via [npm](https://www.npmjs.com/package/layer-esm).\n\n```bash\nnpm install layer-esm --save\n```\n\nOf course, you can also serve the built package files yourself. The ESM, CommonJS, and type declaration outputs are written to `dist/`.\n\n## Usage\n\n```javascript\nimport { close, confirm, load, msg } from \"layer-esm\";\n\nconst loadingIndex = load();\n\nconfirm(\"Continue?\", {}, () =\u003e {\n  msg(\"Confirmed\");\n  close(loadingIndex);\n});\n```\n\n## Guides\n\n- [Introducing layer-esm](./release-notes/introducing-layer-esm-v1.0.1.md)\n- [Release notes index](./release-notes/README.md)\n\n## Contributing\n\n### Development Environment\n\n| Dependency | Version  |\n|------------|----------|\n| Node.js    | v22.21.1 |\n| TypeScript | v5.1.6   |\n\n### Scripts\n\nInstall Dependencies:\n\n```bash\nnpm i\n```\n\nDevelopment:\n\n```bash\nnpm run dev\n```\n\nBuild:\n\n```bash\nnpm run build\n```\n\nTest:\n\n```bash\nnpm test\n```\n\nSingle test file:\n\n```bash\nnpm test -- test/layer.test.js\n```\n\nDocumentation:\n\n```bash\nnpm run docs\n```\n\nDocker:\n\n```bash\ndocker compose up -d --build\n```\n\nVisit: \u003chttp://localhost:8080\u003e\n\n## License\n\nThis software is released under the terms of the [MIT license](https://github.com/chengchuu/layer-esm/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchengchuu%2Flayer-esm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchengchuu%2Flayer-esm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchengchuu%2Flayer-esm/lists"}