Coder Social home page Coder Social logo

dlight's Introduction

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

๐Ÿ’ป ๐Ÿ› ๐Ÿ’ก

dlight's People

Contributors

iandxssxx avatar allcontributors[bot] avatar orange04 avatar scythewyvern avatar muzimuzhi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.