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

thinsite

v0.1.8

Published

Building web applications can get complicated fast But maybe it doesn't have to be that way

Readme

Thinsite

Building web applications can get complicated fast But maybe it doesn't have to be that way

Note: This project is currently at a proof of concept stage. It is not ready for production use.

Simple, Flexible

Thinsite is a lightweight set of tools for building web applications. It is not a heavy framework that reinvents how websites work. It is a library of functions that acts as a thin layer between your code and the DOM. Rather than a complicated design with a specialized tool for each type of activity, it enables through a small number of flexibile tools.

Fast

It's simple, so it downloads and starts up quickly. Thinsite does not use brute force change detection like many major frameworks. Instead, it maintains an internal record of dependencies, allowing it to recalculate only the things that actually change when updates happen. This means complex applications running at high levels of abstraction are still fast and efficient.

Core concepts

  1. Your code assembles values, functions, bundles, arrays, and other things to represent your content. The rendering engine will then produce and maintain the DOM by applying the rendering rules to your content. Almost any javascript object or value is valid as content.
  2. Functions are used to represent dynamic content. The rendering engine will automatically re-evaluate the function and update the DOM whenever a change to something it depends upon is detected.
  3. A template literal tag called bundle is used to build markup. This syntax is a somewhat recent addition to javascript. You can read more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals Strings that look like HTML or SVG will not be rendered as markup, they will render as plain text nodes.
  4. The change detector needs to be told about mutable values. It proxies the properties to add code that alerts it when the value changes.
  5. Functions used as content are called with the element containing them as their first argument. This argument provides general programmatic access to elements so you can do things like attach event listeners. The libary includes a series of on.[eventname] functions as sugar to streamline event handling.

A Simple Example

Demo:

import {obs, install, bundle, on, map} from './node_modules/thinsite/exports.js';

let state = {
    name: 'World'
};
obs(state, 'name');     // notify change detector of mutable property

let content = bundle    // build a bundle of markup
    `<input ${on.input(ev => state.name = ev.target.value)} placeholder="name" />
    <h2>Hello, ${() => state.name}!</h2>`;

install(content, document.body);    // bootstrap our content

Get Started

First, add the files to your project

npm install thinsite --save

Use via import (recommended):

import {obs, install, bundle, on, map} from './node_modules/thinsite/exports.js';

Use as a script:

<script src="node_modules/thinsite/standalone/all.umd.js"></script>

Note: functions are attached to a single global "ts" variable when used via script tag so as not to pollute the window