Thanks for your interest in contributing. This document gives a short guide to development and contributing.
- Runtime: Bun (Node works for install; Bun preferred for scripts).
- Install:
bun install - Build:
bun run build(output indist/) - Example:
bun run examplethen open http://localhost:3000/
- TypeScript with strict mode.
- Prefer small, focused modules.
- No Node-only APIs (package runs in the browser).
- Implement the
FrameworkAdapterinterface insrc/frameworks/adapters/<name>.ts:getEntry(files)— resolve entry file pathgetImportMap(files)— return import map for externals (e.g. frompackage.json)getHtmlTemplate(scriptsBlock, customHtml?)— return full HTML (use projectindex.htmlwhen provided)
- Export the adapter from
src/frameworks/adapters/index.ts. - Register it in
src/frameworks/registry.ts.
See src/frameworks/adapters/react.ts and vanilla.ts for examples.
- Open an issue or pick an existing one to discuss.
- Fork the repo, create a branch, make your changes.
- Ensure
bun run buildpasses. - Open a pull request with a clear description of the change.
By contributing, you agree that your contributions will be licensed under the same MIT License that covers this project.