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

satto

v1.1.3

Published

A minimal server-rendered web framework for Node.js

Downloads

158

Readme

Satto

Satto is a lightweight web framework for building server-rendered applications with a file-based structure, simple routing, and fast builds powered by Node.js, Express, and esbuild.

It is designed to be minimal, opinionated, and easy to reason about, focusing on productivity without unnecessary abstraction.

Key Features

  • File-based page structure
  • Simple and explicit routing
  • Server-Side Rendering (SSR)
  • Page-scoped CSS and JavaScript
  • Fast production builds with esbuild
  • Development mode with file watching
  • Minimal templating syntax for SSR
  • Zero configuration by default

Installation

Install globally to use the CLI:

npm install -g satto

Or install locally in a project:

npm install satto

Creating a New Project

satto init my-app

This command creates a new project with the following structure:

my-app/
├── src/
│   ├── app/
│   │   └── home/
│   │       ├── home.html
│   │       ├── home.css
│   │       └── home.js
│   ├── static/
│   │   └── styles.css
│   ├── index.html
│   └── server.js
└── package.json

Development Server

Start the development server with file watching enabled:

npm run dev

or

satto run dev

The application will be available at:

http://localhost:3000

Production Build

Create an optimized production build:

npm run build

or

satto run build

This generates the following output:

dist/
├── app/
├── static/
├── index.html
└── server.js

All assets are minified and ready for deployment.

Creating Routes

Generate a new route using the CLI:

satto route blog

This creates:

src/app/blog/
├── blog.html
├── blog.css
└── blog.js

And automatically updates src/server.js:

const routes = [
  { path: "/", page: "home" },
  { path: "/blog", page: "blog" },
];

Page Structure

Each route corresponds to a folder inside src/app/ and may contain:

  • page.html – Page markup
  • page.css – Page-specific styles
  • page.js – Page-specific scripts

The page content is automatically injected into <routes></routes> inside index.html.

Server-Side Rendering (SSR)

Satto provides a minimal SSR syntax for rendering data on the server.

Example

<ssr url="https://jsonplaceholder.typicode.com/posts" response="posts">
    <section>
        <for condition="let post in posts">
            <div>
                <h1>{{ post.title }}</h1>
            </div>
        </for>
    </section>
</ssr>

Supported Directives

  • {{ variable }}
  • <for condition="let item in array">
  • <if condition="expression">
  • Attribute binding: [src]="image.url"

Cache Busting

Satto automatically appends a version query string to assets:

styles.css?v=timestamp
page.js?v=timestamp

This ensures browsers always load the latest version.

API Reference

createServer

const createServer = require("satto");

const routes = [
  { path: "/", page: "home" },
  { path: "/blog", page: "blog" },
];

createServer(__dirname, routes, 3000);

Parameters:

  • root – Project root directory
  • routes – Array of route definitions
  • port – Server port (default: 3000)

Requirements

  • Node.js 18 or later
  • npm