Hi, what is the best way to find libraries for K/N...
# kotlin-native
a
Hi, what is the best way to find libraries for K/N?
n
Maven Central Repository Search if you have a basic idea of what you want to search for: https://search.maven.org/
Package Search IntelliJ plugin if you have a basic idea of what you want to search for: https://plugins.jetbrains.com/plugin/12507-package-search
Kotlin Links (look in the Libraries/Frameworks section): https://kotlin.link/
None of these will show Kotlin Native libraries by target (eg linuxX64).
I don't think anyone has developed a Kotlin Library Browser type app.
a
s
a
Hi, thanks a lot for all the links, esp. the last one looks interesting! KR Axel
kamp.ml also looks really good. IMO these sites should be advertised more. Many thanks again.
1
💯 2
n
Really like the fact that KAMP ( https://kamp.ml/ ) allows multiple targets to be selected for a search unlike the IceRock website. Also the KAMP website allows searching by keywords (picks up my libraries when doing a search for GUI for example) unlike IceRock.
Why isn't KAMP listed on the Kotlin website? KAMP certainly is a gem (very lucky find).
KAMP finds far more libraries with multiple targets than IceRock, below is a random sample: • linuxX64 - KAMP 261, IceRock 53 • linuxArm32Hfp - KAMP 83, IceRock 21 • linuxArm64 - KAMP 55, IceRock 10 • iosArm64 - KAMP 374, IceRock 131 • macosX64 - KAMP 302, IceRock 70 • jvm - KAMP 3549, IceRock 130 • js - KAMP 407 (IR ver), IceRock 110 (non IR ver)
Does KAMP have a REST API?
k
I don't know if there is a REST API, but I think it would be best to ask the author: @Big Chungus
b
There's a rest server behind kamp for sure. You can reverse engineer the api from source code on github.
Also kamp & icerock takes different approaches to package search. Icerock requires an explicit registration of libraries to their repo, that's why you see a lot less of them on the site. It then does nightly fetch of maven data for those libs to update stuff like latest version or description. Kamp, on the other hand, self updates nightly by doing maven central scan, finding all kotlin library artefacts, grouping platform-specific artefacts under a single root artefact and caching required data in mongodb.
I'd be interested to hear your use-case for kamp api, tho.
n
One use case for the KAMP API is to use it for developing a desktop app. Some users might want to develop a IntelliJ plugin, which would be very useful.
b
Interesting. I'll work on swagger docs for it over the weekend
🙏 1