rnett

rnett / inspekt

Public

Compile time, multiplatform reflection for Kotlin

32
0
100% credibility
Found Feb 27, 2026 at 24 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Kotlin
AI Summary

Inspekt is a Kotlin Multiplatform library providing compile-time alternatives to runtime reflection for inspecting and invoking class members.

How It Works

1
🔍 Discover Inspekt

While building your Kotlin app, you learn about Inspekt, a tool that lets you peek inside classes and call their parts safely at build time.

2
🛠️ Add to your project

You simply add Inspekt to your project setup with one easy line, and it starts working right away.

3
Peek inside a class

In your code, you write inspekt(Class::class) and instantly get a full map of its functions, properties, and more.

4
📋 Explore and use members

You list functions and properties, check their details, and call them dynamically just like normal code.

5
🛡️ Build smart proxies

You create flexible stand-ins for interfaces that respond however you want, handling calls perfectly.

🎉 Dynamic power unlocked

Your app now handles classes dynamically with zero runtime cost, feeling fast and completely safe.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 24 to 32 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is inspekt?

Inspekt delivers compile-time reflection for Kotlin Multiplatform projects. Add the Gradle plugin, invoke `inspekt(Foo::class)`, and get a runtime `Inspektion` object exposing classes, functions, properties, constructors—even invocable suspend methods and JVM-style proxies. It handles top-level declarations, annotations, and Java interop, all generated at compile time for lean binaries.

Why is it gaining traction?

Unlike runtime reflection, which fails on JS/Native or bloats GraalVM natives, inspekt bakes everything in during compilation—enabling compile-time polymorphism and safe casting without macros. Multiplatform from day one, with seamless dependency reflection and dynamic proxies, it hooks devs dodging boilerplate visitors or string hacks.

Who should use this?

Kotlin Multiplatform library authors crafting serializers, DI containers, or dynamic APIs needing introspection. Suited for backend teams building compile-time code generators or frontend devs handling forms with runtime type checks in shared modules.

Verdict

Promising alpha for compile-time reflection fans, with strong docs and test coverage, but 23 stars and 1.0% credibility score mean it's unproven—test thoroughly before production. Grab it if KMP reflection pains you.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.