npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@harun-aksoy/lite-view

v0.1.0

Published

A lightweight declarative algorithmic UI library.

Downloads

6

Readme

LiteView

LiteView is the ultra-light, declarative, and algorithmic UI library that lets you build beautiful interfaces with pure JavaScript—effortlessly and intuitively.

Design, animate, and compose interactive UIs with a single, fluent API. Write less code, achieve more.


✨ Why LiteView?

  • Minimalist: No dependencies, no complex build steps—just pure JavaScript magic.
  • Truly Declarative: Describe your UI, chain your styles and logic, and watch it happen.
  • Algorithmic Power: Flexible enough for dynamic layouts and advanced effects.
  • Animation Built-In: Create smooth, chained, spring or time-based animations with zero hassle.
  • Extensible: Easily add or override behaviors, create custom components.
  • Developer Joy: Readable, chainable, fun to use—perfect for prototyping or production.

🚀 Quick Start

status: unstable

⚠️ Status: LiteView is currently in active development and its API may change. Not recommended for critical production use. Use with caution—ideal for prototypes, small and medium projects for now.

npm install @harun-aksoy/lite-view
import {View} from 'lite-view';

View('Hello, World!')
  .color('white')
  .padding(18, 32)
  .radius(12)
  .color('royalblue')
  .parent(document.body)

🪄 Core API Example

Build Nested UIs Declaratively

import {View} from 'lite-view';

const app = 
  View(
    View('LiteView Demo')
      .color('white')
      .padding(8, 20)
      .radius(8)
      .color('orange'),
    View('So easy, so declarative!')
      .color('white')
      .padding(8, 20)
      .radius(8)
      .color('mediumseagreen')
  )
  .frame(Infinity,Infinity)
  .color('#23272f')
  .parent(document.body)

⚡ Animate Anything

const box3 = View().parent(box2)
.color('cyan').frame(10,10).position(0,100)
.animation
    .ease("easeInOut",2)
    .delay(0.5)
    .repeat(Infinity)
    .reverse(true)
    .spring({ damping: 5, stiffness: 15 })
    .start((self,p) => {
      self.offset(100*p);
    })

🎉 Event Handling is a Breeze

View('Click me!')
  .color('white')
  .color('purple')
  .padding(12, 28)
  .radius(999)
  .on('click', self => {
    self.color('gold');
    alert('You clicked!');
  })
  .parent(document.body)

🏗️ Create Reusable Components

function Card(title, content) {
  return View(
    View(title).font.size(22).color('white'),
    View(content).color('white').opacity(0.9)
  )
  .color('#2c3e50')
  .radius(12)
  .padding(18, 24)
  .shadow('rgba(0,0,0,0.25)', 12, 0, 8);
}

Card('LiteView', 'Reusable UI components made easy!').parent(document.body)

📚 API Reference (Highlights)

| Method | Description | |------------------|---------------------------------------------| | .color(value) | Sets background or text color | | .frame(w,h) | Sets width & height | | .padding(...) | Sets inner spacing | | .radius(...) | Sets border radius | | .on(event, cb) | Adds event listener | | .animation... | Controls animation chain | | .parent(el) | Appends to parent element | | .child(...) | Adds or gets children | | .clone() | Deep clones the View | | .tags(...) | Sets or gets CSS class names | | .name(val) | Sets or gets element ID | | .destroy() | Removes and cleans up the View |

And many more—you can chain them all!


💡 Tips

  • You can extend with your own methods/components.
  • Built-in support for drag/drop, responsive handlers, custom fonts, Markdown rendering, and more.
  • Designed for both rapid prototyping and production use.

🔗 Live Demo

Try it online soon!


LiteView: Write UI like you always wanted—fast, readable, declarative, joyful.