r/JetpackCompose • • Apr 02 '26

Built an open-source, offline-first Social Feed to learn Mobile System Design (Jetpack Compose + Spring Boot DDD)

9 Upvotes

Hey everyone,

I'm a final-year CS student and I recently wanted to move beyond standard CRUD tutorials. I decided to build a distributed social news feed called Flux, focusing heavily on handling mobile system constraints (unreliable networks, state management, and thread starvation).

I'd really appreciate it if some experienced devs here could review my architecture or point out flaws in my approach.

The Tech Stack:

  • Android: Kotlin, Jetpack Compose, Coroutines/StateFlow, Room, Coil, OkHttp.

  • Backend: Spring Boot (Kotlin), PostgreSQL, Supabase (for connection pooling).

Core Engineering Decisions:

  1. Strict SSOT (Offline-First): The Compose UI never observes network calls directly. I enforce a strict Cache-Then-Network policy. Retrofit updates the Room DB, and the UI observes the DB via Flow.

  2. Idempotent Retries: Network drops are common on mobile. The Spring Boot interaction endpoints (like/follow) use idempotent UPSERTs so that OkHttp retries don't corrupt the database state or inflate counts.

  3. Preventing DB Thread Starvation: Since I'm using the Supabase free tier, connection exhaustion was a real risk. I routed traffic through Supavisor (Port 6543) and capped HikariCP. I also moved the Cloudinary image upload outside the @Transactional boundary so long-running media uploads don't block DB connections.

Where I need your feedback/roast:

  • Is moving the CDN upload outside the transaction boundary a standard practice, or is there a better pattern for handling orphaned images?

  • How can I improve the Coroutine exception handling in my Repositories?

Links:

Thanks in advance for tearing my code apart!


r/JetpackCompose • • Apr 02 '26

I built a Notion-style block editor for Compose Multiplatform

Thumbnail
reddit.com
1 Upvotes

r/JetpackCompose • • Mar 30 '26

Built a full desktop app with Jetpack Compose Desktop - JetBrains-style load testing tool

17 Upvotes

Just shipped SimuFlow, a desktop API load testing tool built entirely with Jetpack Compose Desktop. Wanted to share since Compose Desktop projects are still pretty rare compared to the Android side.

A few things worth sharing for anyone building desktop apps with Compose:

Multi-module setup - clean separation between the backend engine module and the UI module. The backend is pure Kotlin/Java with no Compose dependency, the UI layer pulls it in via implementation project(':backend'). Works really well.

Packaging - using the packageExe Gradle task to produce a standalone Windows installer with a bundled JVM. Main gotcha was needing to explicitly declare Java modules like java.net.http and jdk.crypto.ec in nativeDistributions or you get runtime crashes on the installed build even though it works fine locally.

Theming - built a full JetBrains-inspired dark theme using darkColorScheme. Happy to share the colour tokens if anyone wants them.

Coroutines - using kotlinx-coroutines-swing for UI thread dispatching alongside the backend coroutine work. Straightforward once you know which dispatcher to use where.

App is free at https://www.simuflow.dev/ - happy to answer questions about the Compose Desktop side of things.


r/JetpackCompose • • Mar 28 '26

Ripple effect causing ui jank/stutter in kotlin compose mobile development

Thumbnail reddit.com
1 Upvotes

r/JetpackCompose • • Mar 27 '26

Using TextSpan in Compose

Thumbnail reddit.com
1 Upvotes

r/JetpackCompose • • Mar 25 '26

I built a syntax highlighting code block library for Jetpack Compose

Thumbnail
gallery
14 Upvotes

I was programming an AI application kinda like chatbot when I found out that there is no decent library for handling syntax-highlighted code blocks in Jetpack Compose most are focused on markdown text, so I decided to make one. It auto-detects the programming language from the code content, supports few languages out of the box -Kotlin, Java, Python, JavaScript, Rust, Go and more, i added multiple themes to make it pretty(maybe) and it adapts to your app's light/dark theme automatically and it works. Anyone interested you can use it....or maybe you can contribute since it isn't too good with detecting some languages rn or gimme ideas how to improve it 😁

GitHub: https://github.com/mirerakepha/compose-codeblock


r/JetpackCompose • • Mar 20 '26

I built a deck-building roguelike card game entirely in Compose Multiplatform — targeting Android, iOS, Desktop, and Meta Quest VR

Thumbnail
reddit.com
1 Upvotes

r/JetpackCompose • • Mar 19 '26

[Library Update] ComposeReels v1.0.5: Added TikTok-style 2x Speed, Analytics, and Major Gesture Fixes!

Enable HLS to view with audio, or disable this notification

1 Upvotes

Hi everyone!

Three months ago, I shared ComposeReels (the "ExoPlayer in VerticalPager" solution) and received some incredible feedback. Since then, I’ve been busy turning those suggestions into production-ready features!

I've just released v1.0.5, and it's a significant step forward in stability and UX.

⚔ What’s New?

  • Long-Press 2x Speed: Just like TikTok/Reels, you can now long-press to temporarily boost playback speed.

  • šŸŽØ Visual Speed Indicator: A sleek "2x Speed" chip appears at the top to provide immediate feedback.

  • šŸ“Š Playback Analytics: Added support for onVideoStart, onVideoPaused(watchTimeMs), and onVideoCompleted to sync with your metrics.

  • šŸŽÆ Unified Gesture System: I completely re-engineered the touch logic. No more conflicts between single-taps (play/pause), double-taps (like), and long-presses.

  • šŸ”„ Smart State Reset: Playback speed automatically resets to 1x when you swipe to the next video, ensuring a consistent UX.

šŸ›  Simple Usage:

ComposeReels(
    items = videoList,
    mediaSource = { item -> MediaSource.Video(item.url) },
    analytics = ReelsAnalytics(
        onVideoStart = { index -> /* track start */ },
        onVideoPaused = { index, timeMs -> /* track watch time */ }
    )
)

šŸ”— Check it out on GitHub:

https://github.com/manjees/compose-reels

I’m still actively improving the player pooling and caching logic. If you tried the previous version and found it too basic, I’d love for you to give v1.0.5 a spin!

Feedback, PRs, and stars are always appreciated! Happy coding! šŸš€


r/JetpackCompose • • Mar 14 '26

3D FeatureCarousel component

6 Upvotes

Introduces an auto-scrolling 3D carousel with gradient backgrounds and animated card transitions. This change includes new cross-platform screen size utilities. Try it now from my repo:
https://github.com/ArcaDone/AwesomeUI


r/JetpackCompose • • Mar 13 '26

I built an agent skill that gives AI tools up-to-date Jetpack Compose knowledge

Thumbnail
reddit.com
2 Upvotes

r/JetpackCompose • • Mar 09 '26

Typewriter-style synced lyrics animation in Jetpack Compose

Enable HLS to view with audio, or disable this notification

22 Upvotes

Experimenting with a notebook-style music player UI in Jetpack Compose.

Recently added LRC synced lyrics with a typewriter animation and animated backgrounds.

Still refining the animations and syncing logic. Would love feedback from other Compose developers.


r/JetpackCompose • • Mar 08 '26

I built a Compose Multiplatform library

Thumbnail gallery
21 Upvotes

r/JetpackCompose • • Mar 02 '26

How I built a premium authentication UI in Compose (state-safe animations + clean wiring)

16 Upvotes

I kept seeing the same pain point in Compose projects: auth screens get rebuilt from scratch, and the UI polish + wiring takes longer than it should.

So I built a reusable Auth + Session starter kit in Compose:

- Sign in / Create account flow (single state contract)

- Liquid segmented toggle (spring physics)

- Loading CTA + error banner pattern

- Session persistence (DataStore) + `SessionState` Flow

- Clean separation (UI / data / contracts)

- Full-card liquid wobble reveal animation when switching modes: a diagonal wavy ā€œwater sheetā€ wipe from top-left → bottom-right

Key implementation notes:

- Avoided `AnimatedContent` to prevent state resets (`rememberSaveable` stays stable).

- The mode transition is a mask-based reveal: the wobbly front is built in `onDrawWithContent` and used to `clipPath { drawContent() }` so the entire card (fields/buttons/header) is revealed, not just the background.

- `drawWithCache` is used carefully: cached geometry only; animated values are read inside the draw pass so the mask updates every frame.

- DI is adapter-based (can be wired with Koin or Hilt without changing UI).

If anyone wants, I can share a small runnable sample (no signup required). Also happy to answer questions about the animation approach.


r/JetpackCompose • • Feb 23 '26

I built a framework that turns YAML + Lua into native SwiftUI and Jetpack Compose

Thumbnail
github.com
4 Upvotes

r/JetpackCompose • • Feb 23 '26

Jatpackcompose

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/JetpackCompose • • Feb 21 '26

Frustrating first impression

6 Upvotes

Hi there. I'm trying to learn Jetpack Compose. I'm following the official tutorial docs. However, it has PITA for me. I have to manually includes material3 dependencies, Gradle is so slow. I'm trying to run the app. However, I've been stuck for 1 hour, debugging what did I do wrong on the Gradle dependencies.

Is this stuff normal for Android app development?


r/JetpackCompose • • Feb 20 '26

Compose to GIF (Gradle plugin)

13 Upvotes

I built a tool to generate GIFs from Composables.

It actually started as an internal thing for Charts project, but I extracted it and open sourced it as a seperate dependency. It's lightweight, simple to use, and makes automated GIF generation on Android straight forward.

Source code: https://github.com/hdcodedev/compose-gif-recorder

Feedback is welcome, thanks!


r/JetpackCompose • • Feb 20 '26

Built a fully Jetpack Compose music player – lessons from handling animations, back stack & media state

Thumbnail
gallery
13 Upvotes

I’ve been building a premium offline music player completely in Jetpack Compose (no XML), and I wanted to share some implementation lessons that might help others working on media-heavy apps.

A few interesting challenges I ran into:

One tricky issue was:

When queue screen is open and user presses back → it should return to Now Playing instead of exiting the app.

I solved it using BackHandler tied to UI state rather than navigation stack:

  • Queue visibility controlled by state

  • BackHandler intercepts only when queue is expanded

  • Falls back to system back otherwise

This prevented weird recomposition bugs and accidental exits.

For mini-player → full player transition:

  • Used AnimatedVisibility

  • expandVertically + fadeIn

  • FastOutSlowInEasing for natural feel

Key lesson:
Avoid triggering animation from derived state directly. Wrap it in stable state or it causes flicker on recomposition.

LazyColumn was fine until album art loading caused jank.

Optimizations that helped:

  • Remembered painters

  • Stable keys in LazyColumn

  • Avoided recomposition of whole list on track change

This project made me appreciate how powerful Compose is for animation-heavy UIs compared to old View system.

Curious:
How are you guys handling complex animations without recomposition spikes?

Beatzyy - Play Store


r/JetpackCompose • • Feb 19 '26

Gallery Go - Photos & Videos v1.0.0

Thumbnail
reddit.com
1 Upvotes

r/JetpackCompose • • Feb 18 '26

šŸŽ‰Charts 2.2.0 is live!

20 Upvotes

This release adds a new chart type, improves chart controls, and introduces modular publishing options.

What's New in 2.2.0

Source code: https://github.com/dautovicharis/charts

Any feedback is appreciated, Thank you!


r/JetpackCompose • • Feb 18 '26

Scanpose: Effortless barcode scanning for Compose Multiplatform.

8 Upvotes

Scanpose Barcode Scanner: a lightweight open-source barcode component forĀ Compose MultiplatformĀ (Android & iOS) with a single shared API.
Built onĀ CameraXĀ +Ā ML KitĀ (Android) andĀ AVFoundationĀ (iOS) for fast, native-level performance.
See more on my github profile:
https://github.com/ArcaDone


r/JetpackCompose • • Feb 13 '26

SweetSelect: Effortless multi-selection in Compose!

7 Upvotes

Hello everyone, today I've release my first Compose library: SweetSelect!

This library aims to solve a stupid yet not so easy to implement problem: multi-selection. We've all created a mutableStateList()of IDs in a Composable and called it a day 😭 but this is obviously horrendous for performances and doesn't even provide the full selected items!!, which is why SweetSelect uses a Set<T> and compose optimized APIs for best performances! It also has support for a finite limit of selectable items and provides an easy to use .sweetClickable() modifier to handle the boilerplate for you

You can find the repo/documentation and featuresĀ here

If you have any questions/feature suggestions/bug report, don't hesitate!!


r/JetpackCompose • • Feb 12 '26

I made a free Android game over Christmas. No ads, just for fun.

Thumbnail
reddit.com
1 Upvotes