Arkive
Arkive turns your Compose previews and XML views into a browsable web catalogue of your
app's UI — recorded on the JVM with Roborazzi
(or optionally Paparazzi), no device or emulator,
no test code to write.
See it in action
https://github.com/user-attachments/assets/8134c6d3-88d0-4c5e-b7b4-badd36761f26
Live demo: the sample app's catalogue is deployed to
GitHub Pages on every merge to main.
Requirements
- AGP 9 — the plugin is compiled against AGP 9.3.1 and targets the AGP 9.x line
(which itself requires Gradle 9.1+ and Kotlin 2.2.10+). Projects still on AGP 8
should use Arkive 0.0.3.
- Kotlin 2.2.10 or newer for plain Android/JVM consumers (AGP 9's own Kotlin
floor).
@ArkiveComposable in commonMain of a KMP module needs Kotlin 2.3.21+
— on older Kotlin the annotations wire into androidMain instead, and plain
@Preview in commonMain still works.
- Gradle JDK 17 or newer with the Roborazzi engine; the Paparazzi engine needs a
JDK 21+ Gradle daemon (see Engines).
- KSP applied to every module using Arkive.
- Kotlin Multiplatform modules use the
com.android.kotlin.multiplatform.library
layout — see Kotlin Multiplatform.
The classic com.android.library + androidTarget() layout is rejected by AGP 9
itself; those modules should stay on Arkive 0.0.3.
Install with AI skills (recommended)
The fastest way to adopt Arkive is to let your coding agent do it. This repo ships agent
skills (the open SKILL.md standard) that install Arkive
correctly — right version, every module with previews, flavor-aware configuration — and
end with the catalogue open in your browser.
/plugin marketplace add infinum/arkive
/plugin install arkive@arkive
codex plugin marketplace add infinum/arkive
then inside Codex:
/plugin install arkive@arkive
Any other agent
Cursor, Gemini CLI, Copilot, … — one command, works with any agent that supports
skills:
npx skills add infinum/arkive
Run the setup
Whichever install option you chose, finish with this step: ask your agent to set up
Arkive, or call the skill directly:
/arkive:setup
The /arkive: prefix comes from the plugin installs. With npx skills add the skills
are unprefixed — call /setup, /annotate, /find, /design-loop,
/snapshot-testing instead.
The skills
| Skill | What it does |
|---|
/arkive:setup | Installs the latest published version (pinned), applies Arkive to every module with previews, configures flavors, fixes the common silent traps (private previews, empty test source sets), generates the first catalogue, and opens it in your browser |
/arkive:annotate | Adds or edits @ArkiveComposable / @ArkiveView following consistent naming, grouping, and tagging conventions — so the catalogue sidebar stays clean as the team grows it |
/arkive:find | The reuse gate: before building a "new" screen or component, searches the catalogue and source for an existing implementation, visually compares the candidates, and answers use-it / extend-it / build-new |
/arkive:design-loop | Implement → regenerate → visually compare each screen against its Figma frame (or your spec) → fix or stop-and-ask. Uses the designNodeId annotations to find the right Figma node automatically |
/arkive:snapshot-testing | Turns the catalogue into a regression net: enables golden retention, records and verifies goldens, and diagnoses verifyShowcase failures |
Manual installation
Apply the plugin to every Android module whose previews you want in the catalogue:
plugins {
id("com.google.devtools.ksp") version "<ksp version>" // required — Arkive runs on KSP
id("com.infinum.arkive") version "<latest version>"
}
And to the root project (this registers the aggregate generateWebShowcase task —
mandatory if your build uses org.gradle.configureondemand):
// root build.gradle.kts
plugins {
id("com.infinum.arkive") version "<latest version>"
}
An arkive { engine(…) } block per module is mandatory — the build fails until you
choose a snapshot engine (see Engines). You don't need to declare Roborazzi
or Paparazzi — Arkive applies the selected engine's plugin, and if your build already
has one, Arkive uses yours (see
Already using Roborazzi or Paparazzi?).
Toolchain prerequisites are listed under Requirements.
Kotlin Multiplatform / Compose Multiplatform