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

lite-view-2

v2.0.0

Published

LiteView2 is a minimal, expressive UI layer for the DOM and engine system for GAMES.

Readme

LiteView 2.0

LiteView is a minimal, expressive UI layer for the DOM, engine system for GAME, focusing on chainable components, real-time updates, and platform closeness without frameworks or wrappers.

npm install @harun-aksoy/liteview

Basic View

View()
  .frame(200, 80)
  .position(self.center, self.center)
  .background(Color("purple"))
  .radius(16)

Everything is chainable. Everything is real.

Layout & Positioning

View()
  .frame(self.half, 60)
  .position(self.trailing, self.bottom)
  .offset(-20, -20)

Supported keywords: leading, center, trailing top, center, bottom full, half, quarter

Layouts respond naturally to resize events.

Resize-aware Components

View()
  .background(Color("orange"))
  .on("resize", (self, w, h) => {
    self.frame(w / 3, 50)
    self.position(self.center, self.center)
  })

Each component owns its own resize logic.

Text

Text("Hello Liteview")
  .size(24)
  .bold()
  .foreground("white")

Text is just styled DOM — no wrappers, no templates.

Gestures

View()
  .components(Gesture)
  .background(Color("blue"))
  .on("tap", (self, end) => {
    if (end) self.background(Color("red"))
  })
  .on("drag", (self, end, dx, dy) => {
    self.offset(dx, dy)
  })

Built-in gestures: tap, doubletap, press, longpress, drag, hover

Animation

View()
  .background(Color("green"))
  .ease("inout", 1, false, { loop: Infinity }, (self, p) => {
    self.angle(p * 360)
  })

Spring-based motion:

View()
  .spring(20, {}, (self, p) => {
    self.scale?.(1 + p * 0.2)
  })

Animations are driven by a fixed timestep update loop.

Physics (Optional)

Liteview can integrate with p2.js for simple physics-driven UI.

View()
  .components(Physic, Gesture)
  .frame(50, 50)
  .background(Color("orange"))
  .mass(1)
  .collider("circle")
  .on("tap", () => {
    self.addImpulse(0, -120)
  })

Static bodies:

View()
  .components(Physic)
  .mass(0)
  .collider("box")

DOM and physics stay automatically in sync.

Philosophy

Liteview does not try to be a framework.

It is a small, expressive layer that:

  • avoids indirection
  • exposes time instead of lifecycle hooks
  • keeps layout and motion explicit
  • stays close to the platform

If you can use the DOM, you already know Liteview.

Roadmap (Ideas)

Liteview intentionally grows slowly. Possible future directions include:

  • More layout helpers (flex / span / constraints)
  • Declarative transforms (scale, skew, pivot)
  • Timeline-based animations
  • Gesture extensions (swipe, pinch)
  • Headless rendering modes
  • Better composition patterns

Nothing is rushed. Everything stays minimal.