https://kotlinlang.org logo
Join Slack
Powered by
# kobweb
  • s

    Shubham Singh

    03/12/2025, 8:48 PM
    This guy asked a tricky question on LinkedIn 😂 cc: @Robert Jaros @David Herman let me know if I should've said something else instead. Here is the post BTW if you want to add in your own points as well.
    😂 2
    d
    r
    • 3
    • 4
  • m

    Meet

    03/19/2025, 3:26 PM
    Hello everyone, I'm thrilled to announce that Coding Meet's official portfolio website is now live! It is built using the powerful Kotlin-based framework, Kobweb and deployed using Firebase Hosting. Kobweb framework is built on top of compose HTML. 🌐 Portfolio - https://www.codingmeet.com 👨‍💻Repository - https://github.com/Coding-Meet/Porfolio-Kobweb Please do visit the site and and repository and star it.
    🔥 3
    👏 2
    K 2
    d
    a
    • 3
    • 34
  • a

    Ahmed Riyadh

    03/19/2025, 5:54 PM
    I'm not sure if this is an issue but it looks like the JS code is being executed after the
    index.html
    on production mode, which loads light first (which is set in the generated
    index.html
    ) and then switches to the User's Color mode (in my case Dark).
    d
    • 2
    • 12
  • a

    Ahmed Riyadh

    03/20/2025, 11:26 AM
    Is there a built-in way to exclude a page from SEO in Kobweb?
    s
    • 2
    • 6
  • f

    Filip Wiesner

    03/26/2025, 8:34 PM
    Hey, is there some easy way how to hide Popover when user clicks outside of it's bounds? I am trying to replicate shadcn/ui Popover component. I am playing with
    AdvancedPopover
    but I doesn't seem to support it out of the box. Am I missing some strategy?
    s
    d
    • 3
    • 22
  • d

    David Herman

    04/01/2025, 9:58 PM
    🕸️ Latest Kobwebs v0.20.5 and v0.21.0 🕸️ https://github.com/varabyte/kobweb/releases/tag/v0.20.5 https://github.com/varabyte/kobweb/releases/tag/v0.21.0 The releases are identical except 0.21.0 targets the latest Kotlin version 2.1.20. (We actually wanted to get a release out sooner but was held up by ongoing work with 0.20.5, which finally is out now after a big push. Thank you for your patience!) If anyone is concerned about the color flash issue in their site, definitely check out the release notes on this one.
    K 9
    🌗 2
    • 1
    • 3
  • s

    Shubham Singh

    04/03/2025, 4:13 PM
    @David Herman Just so happened that I stumbled upon an old comment of yours on Reddit 😛 https://www.reddit.com/r/Kotlin/comments/yt243j/comment/iw42fpa/?utm_source=share&ut[…]m=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button Just wanted to ask if you have any new information about it? Have there been any hot reloading improvements in Kotlin/JS since then? While developing the YouTube clone, I felt the same, didn't know others are facing it too.
    r
    d
    c
    • 4
    • 25
  • d

    David Herman

    04/07/2025, 12:31 AM
    🕸️ Latest Kobwebs v0.20.6 and v0.21.1 🕸️ https://github.com/varabyte/kobweb/releases/tag/v0.20.6 https://github.com/varabyte/kobweb/releases/tag/v0.21.1 We fixed a subtle color mode bug 🙂 If you upgraded to v0.20.5 or v0.21.0 earlier this week (note: these are functionally the same release, just different kotlin targets), you are encouraged to upgrade one more time!
    👏 4
  • m

    Mario Andhika

    04/11/2025, 8:29 AM
    Is Kobweb production-ready? Why?
    r
    s
    d
    • 4
    • 6
  • k

    Kumaran Masilamani

    04/15/2025, 9:29 AM
    👋 Hey folks! Has anyone here implemented Google (or any social) login in Kobweb? I'm working on adding a "Sign in with Google" button using Firebase Auth on the kobweb frontend, and then passing the token to a Ktor backend for verification. Would really appreciate any GitHub examples or documentation links 🙏 (Vibe coding isn't cutting it this time 😅)
    f
    a
    d
    • 4
    • 8
  • r

    Ryan Scott

    04/20/2025, 7:54 PM
    Hi All. Has anyone used Chart.js with kobweb? I'm having trouble generating the correct bindings.
  • r

    Ryan Scott

    04/20/2025, 7:54 PM
    I see that kvision has generated the bindings: https://github.com/rjaros/kvision/tree/master/kvision-modules/kvision-chart
  • r

    Ryan Scott

    04/20/2025, 7:55 PM
    But I don't want to pull that in just to show a chart.
  • r

    Ryan Scott

    04/20/2025, 8:00 PM
    At runtime, I get this error:
  • d

    David Herman

    04/20/2025, 8:12 PM
    (Let's create a thread and keep the discussion in there)
  • d

    David Herman

    04/20/2025, 8:12 PM
    Using Chart.js in Kobweb 🧵
    r
    • 2
    • 34
  • r

    Ryan Scott

    04/22/2025, 4:36 PM
    @David Herman I wonder if you could possibly help me with something else. I'm trying to make a fullstack app, and am encountering an issue if I ever use the
    @Api
    annotation.
    d
    • 2
    • 38
  • p

    phteven

    04/24/2025, 7:40 PM
    I am trying out kobweb. It looks really great so far. Is it possible to render a navigation menu with access to the router (possible to change route) without being in a @Page context? I can only do this by putting the navigation into each page. I noticed that the whole html re-renders in the browser even if it does not change. Having something like nested routes would be nice.
    d
    • 2
    • 27
  • p

    phteven

    04/28/2025, 1:51 PM
    I found this framework because I am looking for a way to migrate my TypeScript React components to Kotlin. I do not want to use the Kotlin-React wrappers, as I dislike the React-specific overhead (compared to function calls with named arguments in Compose). Everything except the React components has already been migrated to Kotlin (Redux reducer, actions, state, side effects, API client) because it is reused in Compose Multiplatform for Android, iOS, and desktop. This all works very well, but the remaining TypeScript files are starting to annoy me — mainly because refactoring the Kotlin parts requires manual updates to the TypeScript files. So far, I am considering kobweb/compose-html) as an alternative for the React parts — though I still need to check what third-party libraries I would need to replace and how (for example, react-virtualized). On a more general level, I would prefer if the framework allowed for a less opinionated setup. For example, I would like to control the app’s entry point and set up the router myself. Currently, my entry point is already a
    @Composable
    . Ideally, I would like something similar to an
    Application
    class that I fully control. Comparing this to React, where you explicitly call the initial render function:
    Copy code
    ReactDOM.createRoot(document.getElementById("root")).render(...);
    I am also looking into the Kilua project and I prefer its approach: https://github.com/rjaros/kilua/blob/main/examples/todomvc/src/commonMain/kotlin/TodoApp.kt In Kilua, you own the entry point, and you can set up dependencies like
    ApiClient
    and
    Storage
    classes outside of any
    @Composable
    . Routes are described as part of your app’s component tree, and nested routes are supported (e.g., for a navigation bar, main/details view). One important use case for this is passing the router into a DI container and using it inside side effects (such as Redux-Observables) to programmatically change the user’s route (for example, redirecting to the login screen on any “forbidden” response). Right now, this kind of navigation is only possible inside a page’s content.
    c
    d
    • 3
    • 4
  • d

    David Herman

    05/17/2025, 1:43 AM
    🕸️ Latest Kobwebs v0.22.0 🕸️ https://github.com/varabyte/kobweb/releases/tag/v0.22.0 This release introduces layouts. In short, you can now set up your site in a way that stateful UI in your layout composables now survive across page navigations without needing to use local storage tricks. There's an important warning, which is discussed in the release notes but I'll repeat again in the thread 🧵
    👍 3
    🕸️ 1
    • 1
    • 1
  • d

    David Herman

    05/17/2025, 1:49 AM
    Less than a week left for KotlinConf! If folks here weren't aware, I'll be speaking this year. https://kotlinconf.com/schedule/?day=2025-05-23&session=99af26ce-5c63-5ff5-a013-efcb16da833b I don't think there will be a livestream, but there will be a recording. Of course, if you are going to be there, please reach out to me and say hi in person!
    👏 9
    kodee happy 4
    🎉 1
    a
    • 2
    • 2
  • s

    Severiano Jaramillo

    05/19/2025, 1:12 AM
    I have been working as an Android dev for a few years, but have 0 experience with web development. I am hoping to use my Kotlin knowledge and some good vibes to build pet projects kodee happy I just created a sample project (
    kobweb create app
    ), did some minor updates and added configuration to build and deploy to GitHub Pages. This is not all I want to do, but first I would like to fix some simple issues. State such as color mode and menu state (when the available width is small) does not seem to work when the app is deployed, but it works when running it locally. Is this some kind of known issue?
    ✅ 1
    l
    d
    s
    • 4
    • 4
  • m

    Meet

    05/27/2025, 4:52 AM
    How can add sitemap.xml in kobweb if possible
    a
    c
    d
    • 4
    • 5
  • s

    Shubham Singh

    05/31/2025, 9:37 PM
    Update: Nevermind, I found this https://github.com/varabyte/kobweb/blob/main/frontend/silk-widgets/README.md Hi friends, is there some guidance available on how to add Kobweb into an existing Compose HTML project? I'd like to explore the possibility of using Kobweb to create Google Chrome Extensions. I know it's possible with Compose HTML and Kobweb is based upon it, so was wondering if someone has already tried doing this?
    s
    • 2
    • 7
  • d

    David Herman

    06/10/2025, 12:27 AM
    Just want to share a LinkedIn post one of our users shared on our Discord about their Kotlin multiplatform project ExpensePal. It uses Kobweb for the web portion and Compose Multiplatform for mobile OSes: https://www.linkedin.com/posts/dhavalshah53_kobweb-composemultiplatform-kotlinmultiplatform-activity-7337360426235576320-GNWL and the link has a nice embedded demo video which shows their project off with simultaneous Android / iOS / web views.
    kodee happy 1
    • 1
    • 1
  • d

    David Herman

    06/20/2025, 5:20 PM
    KotlinConf talks are up! Here's my talk on Kobweb. https://kotlinconf.com/talks/774286/
    yay 2
    K 12
    m
    s
    • 3
    • 6
  • d

    David Herman

    06/25/2025, 6:06 PM
    If anyone in here wanted to use Kobweb with Kotlin 2.2.0, you can try it out a little early with 0.23.0-SNAPSHOT
    Copy code
    kobweb = "0.23.0-SNAPSHOT"
    kotlin = "2.2.0"
    • 1
    • 2
  • c

    Christopher Mederos

    06/26/2025, 3:36 AM
    I've exported and deployed a static site with some markdown pages following the default example. I'm getting 404 responses when accessing those pages (https://my-app.com/about). However, if I go to my home page then click on a link to navigate there ( go to https://my-app.com then click on a link for https://my-app.com/about).... the pages are found! Curious if this sounds like an export configuration I'm missing in kobweb, or if I'm just having DNS issues
    d
    • 2
    • 32
  • c

    chax

    06/29/2025, 5:05 PM
    Hello all, Is there a rich text editor built into Kobweb or Kotlin JS that exists as an open-source project? potentially one that I can add a dependency to my project and create a blog of some sort. Thanks in advance cc @David Herman
    👀 1
    s
    d
    • 3
    • 22
  • d

    David Herman

    07/04/2025, 11:22 PM
    🕸️ Latest Kobwebs v0.23.0 🕸️ https://github.com/varabyte/kobweb/releases/tag/v0.23.0 First release since KotlinConf! Mostly a bunch of misc stuff (check out the release notes for details!), but we now officially support Kotlin 2.2.0.
    • 1
    • 1