I'm excited to share my latest pet project with yo...
# feed
s
I'm excited to share my latest pet project with you! I wanted to experiment with Compose for Web and take advantage of Ktor's new WASM support, so I built a seed browser for my favorite game Oxygen Not Included. ๐Ÿ˜Š Both the frontend and backend are entirely written in Kotlin, and the project is licensed under AGPL3. Check it out on https://stefan-oltmann.de/oni-seed-browser
K 13
๐ŸŽ‰ 14
๐Ÿ‘ 1
๐Ÿ‘๐Ÿผ 1
a
Looks great! Did you have any specific learnings or challenges? Apart from the SVG saga? ๐Ÿ˜‰
s
Thank you! ๐Ÿ˜Š No major challenges with the techโ€”itโ€™s working quite well already. One new experience for me was drawing on a canvas, something I hadnโ€™t done before. Since Iโ€™m not great with math, I relied on ChatGPT to help me draw the hexagon map. ๐Ÿ˜„ At the backend I used MongoDB, which looks great at first, but I quickly realized that slightly more complex queries require a ton of statements that make no sense to me. Even with the help of ChatGPT I wasn't able to implement the geyser count filter. Also, the Mongo Compass AI keeps generating invalid queries. This was my first time trying MongoDB and I think I don't like it.
b
This looks fantastic! Also ONI is a wonderful game!
๐Ÿ™‚ 1
โž• 2
๐Ÿ’ฏ 1
m
It says Safari is not supported ๐Ÿ˜ž
s
Yes, that's on Apple, unfortunately. They are the last to proper support WebAssembly.
m
Great project I have questions if possible the loading page is a little bit faster like any website open very fast loaded in wasm is take time 4-5 second loaded page
s
Thanks. Yes, the WASM file takes a bit to load. It's also about 15 MB in size with 8 MB for skiko alone. It takes 2 seconds on my device uncached. No idea how to make that faster.
m
yes that why i am not building my website in wasm it take time to load page so user gone website
s
I build my web projects in WASM because I love Kotlin and hate JavaScript. ๐Ÿ™‚
If the user want to find good game seeds for ONI they'll have to wait for WASM to be loaded. ๐Ÿ˜‰
m
yes, you are right i also love kotlin but i not talking about game like portfolio, service website so it take faster loaded page
s
This site is slower, because it also uses Compose for Web which requires skiko. https://stefan-oltmann.de/exif-viewer is also a WASM project, but renders HTML. This should load way faster.
For a portfolio website I would just make something static, to be honest. GitHub Pages with Jekyll or something like that.
m
i love kotlin so i deside to portfolio website in kotlin. but i dont know how can do responsive website in kotlin
s
Choose the right tool for the job.
๐Ÿ‘ 1
m
ok Thanks