Skip to content

Lyt.jsUltra Lightweight Frontend Framework

Zero dependencies, pure native implementation, multi-platform rendering support

Write Light, Run Fast — What You See Is What You Code

Lyt.js is a zero-dependency, ultra lightweight frontend framework that provides a Vue 3-compatible API with built-in router, state management, and a rich UI component library. It is designed for developers who value simplicity, performance, and minimal bundle size.

Quick Start

bash
# Create a new project
npx @lytjs/cli create my-app
cd my-app
npm install
npm run dev

Or try it directly in the browser via CDN:

html
<script type="module">
  import { createApp } from '@lytjs/core'

  const app = createApp({
    template: `
      <div>
        <h1>{{ title }}</h1>
        <p>Count: {{ count }}</p>
        <button @click="count++">+1</button>
      </div>
    `,
    state: { title: 'Hello Lyt.js!', count: 0 }
  })

  app.mount('#app')
</script>

Documentation

Guides

API Reference

  • Core APIcreateApp, h(), defineComponent, lifecycle hooks, plugin system
  • Reactivity APIref, reactive, computed, watch, Signal API
  • Component API — Props, emits, slots, built-in components
  • Router APIcreateRouter, navigation guards, dynamic routes
  • Store APIcreateStore, state, getters, actions, modules
  • Component Library — 38+ UI components, theme system

Community

Released under the MIT License.