u/alexstyl

Prosa.kt - Declarative code generation for Kotlin
▲ 14 r/Kotlin

Prosa.kt - Declarative code generation for Kotlin

I made a declarative API for generating Kotlin code.

I needed it for one of my desktop/browser Compose apps a while ago and noticed there was no KMP solution for Kotlin codegen.

While working on it, I decided to made the API declarative so the generated code was simpler to reason about. This work started before AI was as popular as it is today, so the design of the API was very important.

Fast forward two years: I realized I needed it for another project of mine, so I figured I might as well open-source the codegen part for the community.

And that's how Prosa.kt was born and proudly brought to you.

There’s a live demo on the landing page, so you can try it out directly.

Check it out at https://prosakt.com and give it a star on GitHub because I love vanity metrics.

u/alexstyl — 11 days ago

ComposeGradients.com – Gradients for Android developers

Hi folks. I made a new site called ComposeGradients.com

There was no place to browse beautiful gradients for Compose apps so I decided to build one.

The site has a plethora of beautiful looking gradients (linear and mesh), plus a small tool to create gradients straight from the browser.

✅ Browse beautiful gradients and copy their code

✅ Create your own gradients

✅ (Optionally) Submit your gradient to the site

You can Like your favorites by pressing the heart button. No account required.

Try it out at ComposeGradients.com

If you find the site useful, share the site with your friends :)

u/alexstyl — 2 months ago

Introducing the Composables CLI and MCP server

I built a little CLI app that creates new Compose apps in one command.

To install it do:

npm install -g composables-cli

and then create your new projects using:

composables init

New projects use the new KMP project structure, come with Composables UI out of the box, and Spotless.

The CLI can also run a Composables MCP server that gives your agent access to the Composables UI docs.

Your agent can ask for component usage, installation steps, API references, and code examples without relying on stale training data.

To configure a client run:

composables mcp install --client <client>

Comes with support for Android Studio, Antigravity, Claude, Codex and other MCP clients.

Learn more at the docs: https://composables.com/ui/docs/cli

The source code is part of the Composables UI monorepo: https://github.com/composablehorizons/composables-ui

u/alexstyl — 3 months ago

Composables UI: modern, accessible components for Compose Multiplatform

I built a collection of modern Compose components that look great on mobile, desktop and web.

They adapt to the device they run on.

For example, buttons are bigger and rounder on touch devices, so you can press them easier.

When a mouse is used, buttons become sharper and smaller, so they don't take up much space.

I can go on and on telling you all about it, but I'd rather show you.

You can try everything directly in your browser.

The site includes live previews, a sample multiplatform app and a LOT of code examples for easy copy-pasting.

Docs & live demo: https://composables.com/ui

Github: https://github.com/composablehorizons/composables-ui

u/alexstyl — 4 months ago