Skip to content

KodeBarista/darpan

Repository files navigation

Darpan (दर्पण)

Darpan is a privacy-focused mirror app for Android. Built with Material 3, it provides a distraction-free experience that turns your front camera into a precise, high-fidelity reflective surface.

  • Ad-Free by Design: No interruptions, no banners, just your reflection.
  • Material You: Seamlessly integrates with your Android theme and dynamic colors.
  • Privacy First: No data collection, no internet access, and no unnecessary permissions.
  • Lightweight: Optimized for instant launch and minimal battery drain.

Features

  • Front camera preview using CameraX
  • Step-snapped zoom control with dynamic max zoom detection
  • Mirror / natural preview toggle
  • Light assist via temporary screen brightness override
  • Runtime camera permission handling with rationale + settings fallback
  • Lifecycle-safe camera binding and cleanup
  • Fully state-driven UI using StateFlow

Permission Handling

  • Camera permission is requested on first launch

  • If denied:

    • A rationale is shown when appropriate
    • Otherwise, the user is guided to system settings
  • Permission changes made outside the app (Settings) are detected on ON_RESUME

Build & Run

Requirements:

  • Android Studio Hedgehog or newer
  • Android SDK 26+
  • Camera-enabled device or emulator

Clone and run:

./gradlew installDebug

Screenshots

Example Image    Example Image    Example Image   

About

Darpan is an ad-free mirror app built with Jetpack Compose, designed using Material 3 for a clean, modern, and distraction-free experience.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages