Skip to content

Latest commit

Β 

History

History
executable file
Β·
130 lines (106 loc) Β· 6.57 KB

File metadata and controls

executable file
Β·
130 lines (106 loc) Β· 6.57 KB

author stars Size license

downloads version version

DX-first UI rendering library.

  • πŸ₯³ Delightful
    • With an API designed to be intuitive and user-friendly, web development becomes effortless with DLight, whether you're building a simple website or a complex web application.
  • πŸš€ Performant
    • With a minuscule file size of just 5KB, DLight is lightning-fast and ultra-lightweight, delivering optimal performance without the need for manual optimization.
  • ✨ DX-first
    • DLight uses the syntax of function calls and dot notation to make development more enjoyable, without the need to write outdated and hard-to-read XML code.
  • πŸͺΆ Intuitively Simple
    • DLight is born reactive and is designed to be intuitively simple, with a minimalistic API that requires no memorization of complex functions or libraries.

Preview

import { View } from "@dlightjs/dlight"

@View
class MyComp {
  night = false
  fruits = ["🍎", "🍊", "πŸ₯‘"]

  Body() {
    h1("hello, dlight js")

    for (const fruit of this.fruits) {
      div(fruit)
    }

    button("toggle")
      .class("toggle")
      .onClick(() => {
        this.night = !this.night
      })

    if (this.night) {
      "πŸŒ™"
      "✨"
      "🌟"
    } else {
      "πŸ”†"
    }
  }
}

Credits

Thanks all existing frameworks for the inspiration and the great work they've done. DLight is standing on the shoulders of giants.

Thanks js-framework-benchmark for the benchmarking tooling that pulls my hair out.

Thanks component party for the syntax level comparison between different frameworks.

Contributors

Duan Yihan
Duan Yihan

πŸš‡ ⚠️ πŸ’»
orange04
orange04

πŸ’» 🎨
Guo-lab
Guo-lab

πŸ–‹
Gor
Gor

πŸ’» πŸ› πŸ’‘
Haibo Zheng
Haibo Zheng

πŸ› πŸ–‹
Duane Johnson
Duane Johnson

πŸ’» πŸ€” πŸ“– 🚧