Testing Software

Kobold – declarative Rust web interface library

Kobold is a library for creating declarative browser interfaces using Rust and WebAssembly. Its view macro provides HTML-like syntax for constructing interface elements while preserving type information that the Rust compiler can check. Views are represented by concrete types, allowing the library to generate code for manipulating browser elements without requiring a conventional virtual DOM representation.

The library places particular emphasis on reducing the work needed to render and update relatively small interface elements. Static markup can be represented directly in generated browser operations, while dynamic expressions are associated with the document nodes that display their values. When those expressions change, Kobold can update the affected elements rather than reconstructing the surrounding interface. Components are ordinary functions with typed parameters, and the library includes mechanisms for managing local component state, handling events, and expressing conditional interface content.

This is free and open source software.

Key Features

  • Declarative view macro – define interfaces using HTML-like syntax with optional closing tags.
  • Compile-time checking – preserve type information for interface expressions and component parameters.
  • Functional components – create reusable views through ordinary functions.
  • Optional component parameters – supply default values for selected component properties.
  • Local state management – construct stateful components using the stateful function.
  • Event handling – connect browser interactions to closures that modify component state.
  • Targeted DOM updates – update individual document nodes when their associated values change.
  • Static markup optimisation – generate direct DOM construction operations for elements without dynamic content.
  • Conditional rendering – support alternative view branches through component attribute handling.
  • Editor integration – retain type information that can be inspected and refactored using rust-analyzer.

Website: github.com/maciejhirsz/kobold
Support:
Developer: Maciej Hirsz
License: Mozilla Public License v2.0

Kobold is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Rust Frontend Web Frameworks
TauriFramework for building tiny, blazing fast binaries for all major desktop platforms
YewModern framework for creating multi-threaded front-end web apps
LeptosFull-stack, isomorphic Rust web framework
icedGUI library focused on simplicity and type-safety
DioxusReact-like library for building fast, portable, and beautiful user interfaces
SeedFramework for creating fast and reliable web apps with an Elm-like architecture
SycamoreNext generation UI library
ViziaDeclarative GUI library
XilemExperimental, next-generation cross-platform Rust UI framework
PerseusState-driven web development framework
PercyCollection of libraries for building interactive frontend browser apps
stdwebStandard library for the client-side Web
mogwaiView library for creating GUI applications
SilkenwebLibrary for building reactive web apps
sauronSuited for developing web application which uses progressive rendering
DominatorHigh-performance declarative DOM library
KoboldEasy declarative web interface
DracoBuild client side web applications with Web Assembly
SmithyBuild WebAssembly applications with Rust

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted