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

@yannosay/sinth

v0.14.4

Published

A declarative & reactive language that compiles to pure HTML, CSS, and JavaScript.

Readme

Sinth

The language that fixes HTML. Declarative. Reactive. Compiles to pure HTML.

Find out more: https://www.youtube.com/watch?v=W0tOMTiIF0Q Discord: Join here!

npm version npm downloads license

Why Sinth?

Reactive forms in one line.

Input(bind: userName, placeholder: "Enter your name")
Paragraph { "Hello, " + userName }

No useState. No onChange. No e.target.value.

page
title = "Counter"

var int count = 0

Main {
  Heading(level: 1) {count}
  Button(onClick: count = count + 1) {"Increment"}
}

Logic and UI live together.

if user.isAdmin {
Button(onClick: "deletePost()") { "Delete" }
}

No JSX ternaries. No v-if. No separate script tags. Mixed logic. Clean.

Functions - easy as you know it

page

title = "Functions"

var str userName = "Sinths User"

function greet(str name) -> str {
  "Hello, " + name
}

function renderHeading(str label) -> ui {
  Heading(level: 2) {
    (label)
  }
}

Div {
  (greet(userName)) + " — welcome back!"
}

(renderHeading(userName))
(renderHeading("This renders!"))

or

page

title = "Checkbox Test"

var bool isAdmin = false

function toggleAdmin() {
  isAdmin = not isAdmin
}

function getStatus() -> str {
  if (isAdmin) {
    return "ON"
  }
  return "OFF"
}

Checkbox(checked: isAdmin, onChange: toggleAdmin(), label: "Admin mode?")

Paragraph {
  "Admin mode is " + (getStatus()) + "! :D"
}

NEW (0.13.5): Fullscreen activation + if-else inside Component

page
title = "Fullscreen"

var bool isFullscreen = false
var str userName = ""

Main {
    Button(onClick: isFullscreen = !isFullscreen, fullscreen: isFullscreen) {
        if isFullscreen {
            "Exit Fullscreen"
        } else {
            "Enter Fullscreen"
        }
    }
    Input(bind: userName)
    Paragraph {
        if userName == "Sinth" {
            "Oh, welcome back!"
        } else {
            "Hello, " + userName + "!"
        }
    }
}

Fullscreen Sync (0.13.6)

Opt-in Escape key handling. fullscreenSync keeps your variable in sync with the browser's fullscreen state.

Button(onClick: isFullscreen = !isFullscreen, fullscreen: isFullscreen, fullscreenSync: isFullscreen) {
    if isFullscreen { "Exit Fullscreen" } else { "Enter Fullscreen" }
}

Without fullscreenSync, pressing Escape exits fullscreen but the variable stays true. With it, Escape resets the variable to false — button text updates automatically.

Animations that make sense.

for item, index in items {
Paragraph(delay: index * 300) { item.name }
}

Staggered animations. One expression. No useEffect. No setTimeout chains.

Multiple actions, single handler.

Button(onClick: show = not show; deleted = true) { "Toggle & Delete" }
Chain statements with ;. No wrapper functions. No script blocks.
if done == true {
    remove "myElement"
}

Delete elements. No virtual DOM diffing!

Compiles to pure HTML.

Reactivity at its finest

page
title = "Reactivity but easy"

var str begForFullscreen = ""
var bool doFullscreen = false

Main {
    Input(bind: begForFullscreen, fullscreen: doFullscreen) 
    if begForFullscreen == "do fullscreen pls!!" {
        doFullscreen = true
    } else {
        doFullscreen = false
    }
}
page
title = "Counter Demo"

var int count = 0
var int addVar = 1
var int stepSize = 1

Main {
  Heading(level: 1) {count}
  
  Paragraph {"Increment by:"}
  Input(bind: addVar, step: stepSize)
  
  Br()
  Button(onClick: count = count + addVar) {"Increment"}
  
  Br()
  Br()
  Paragraph {"Step size for arrows:"}
  Input(bind: stepSize, step: 1)
}
NEW! (0.14.0):

Sinth now supports Reactivity in Functions!

page
title = "Reactive Counter"

var int apples = 1
var int bananas = 2
var int oranges = -6

function Counter(int value) -> ui {
  Heading(level: 1) {"Count is at: " + (value) + "!"}
  Button(onClick: value = value + 1) {"Increment"}
}

Main {
  (Counter(apples))
  (Counter(bananas))
  (Counter(oranges))
}

Install

npm install -g @yannosay/sinth

Quick Start

sinth init

sinth dev pages/index.sinth

Open your browser. Edit your .sinth file. Watch it update live.

Your First Sinth File

page
title = "My Sinth Project"


Main {
   var str nameVar = "User"
   Heading(level: 1) { "Hello, " + nameVar }
   Paragraph { "Welcome to Sinth." }
}

Features

  • Mixed logic — if, for, and expressions right in your UI
  • Two-way binding — Input(bind: variable) in one line
  • Reactivity
  • Import own Components
  • Expression-based delays ("delay: index * 300") for staggered animations
  • Object support: var obj with dot notation (user.name)
  • Object iteration: for key, value, index in object
  • SCSS support: style blocks with scoped CSS
  • Tree-shaken output: static pages get zero JS, reactive apps get only what they need
  • VS Code extension: full syntax highlighting (search "Sinth" in the marketplace)
  • Live reload dev server: sinth dev watches your files
  • Self-contained HTML
  • + more!
Nothing you like? Give us feedback on our Discord Server!

Shared Runtime

For multi-page projects, extract helpers into a cached file: sinth build --shared-runtime

This creates a sinth-runtime.js file shared across all pages. Each page shrinks to ~25 lines of render logic. The browser caches the helpers once.

Helpful when working on big projects.

Security

Sinth's reactive runtime does not use eval(). Every expression is pre-compiled into optimized JavaScript functions at build time. No code injection possible. No runtime string evaluation. The most secure way to power reactive UI.

Don't trust? -> Ctrl+F "eval(" returns nothing!

Commands

  • sinth init — scaffold a new project
  • sinth dev [file] — start dev server with live reload
  • sinth build — compile to static files
  • sinth build --shared-runtime — build with shared runtime (useful when using a heavier runtime)
  • sinth check — lint without output
  • sinth version — print version

Imports

Importing made easy!

page

import components/MyComponent.sinth as Navbar


Navbar

Main {

}

Links

License

AGPL-3.0