A desktop Kotlin script IDE built with Compose for Desktop that provides interactive script execution with real-time output and error navigation.
- Interactive Script Execution: Run Kotlin scripts with real-time output
- Clickable Error Navigation: Click on error locations to jump directly to the problematic code
- Input Handling: Support for
readLine()interactive script features - Dark/Light Mode: Toggle between themes
- JDK 17 or later
- Kotlin 2.1.20 or later
Download composescript.jar from the Releases page and run:
java -jar composescript.jargit clone https://github.com/zahid4kh/compose-ide-integration.git
cd compose-ide-integration
# Make gradlew executable (Linux/macOS only)
chmod +x gradlew
# Build and run
./gradlew clean build
./gradlew :run./gradlew :hotRun --mainClass ComposeIDEIntegration --autoLinux (with JRE included):
./gradlew packageDebWithWMClassThis creates a .deb package in build/compose/binaries/ that includes the JRE and can be installed system-wide.
Windows:
./gradlew packageMsimacOS:
./gradlew packageDmg./gradlew packageReleaseUberJarForCurrentOSThen run with:
java -jar build/compose/jars/*.jar./gradlew packageDistributionForCurrentOS- Write Script: Enter your Kotlin script in the left panel
- Run: Click the play button
- Interactive Input: When your script uses
readLine(), an input field will appear - Error Navigation: Click on blue underlined error locations to jump to the code
- Copy Output: Use the copy button to copy script output to clipboard
- Scripts are saved to
$HOME/.composeideintegration/foo.kts - Scripts are executed using
kotlinc -script foo.kts - Error locations like
file.kts:line:columnbecome clickable links - Real-time output streaming shows script execution progress
- Interactive prompts are automatically detected and handled
./gradlew run- Run the application./gradlew packageDebWithWMClass- Linux package with JRE./gradlew packageReleaseUberJarForCurrentOS- Standalone JAR./gradlew packageDistributionForCurrentOS- Native distribution
