I'm excited to share my latest pet project with you! I wanted to experiment with Compose for Web an...
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