๐ We just open-sourced something we wish existed earlier:
Compose Multiplatform Library Template
A clean, production-ready starting point for building libraries with Compose across Android, Desktop, and iOS.
When we first tried Compose Multiplatform, setting up a library project felt... fragile. Too many moving parts. Messy directory structures. Manual doc generation. There were several templates that existed, but they were not being maintained properly.
So we built what we needed.
๐ก ๐ช๐ต๐ฎ๐'๐ ๐ถ๐ป๐๐ถ๐ฑ๐ฒ ๐๐ต๐ถ๐ ๐๐ฒ๐บ๐ฝ๐น๐ฎ๐๐ฒ:
โจ Shared library module, structured for scale
๐ samples/ folder with ready-to-run apps (Android, iOS, Desktop)
๐ Dokka docs + CI setup to auto-publish
๐งผ Ktlint + Spotless to keep things clean
๐ Git hooks to auto-format code before commit
๐ค Contributor-friendly setup with CODE_OF_CONDUCT and PR templates
๐ Maven publish plugin ready to go
Whether you're building your first MPP library or maintaining several, this template gives you a strong foundation, minus the boilerplate.
๐ ๐๐
๐ฝ๐น๐ผ๐ฟ๐ฒ ๐๐ต๐ฒ ๐ฟ๐ฒ๐ฝ๐ผ:
https://github.com/meticha/compose-multiplatform-library-template
We're still working on the extensive documentation on publishing your own library. But meanwhile, you can let us know what you'd improve or what youโd love to see next ๐ฌ