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

smbls

v3.14.45

Published

[![npm version](https://img.shields.io/npm/v/smbls.svg)](https://www.npmjs.com/package/smbls) [![npm downloads](https://img.shields.io/npm/dm/smbls.svg)](https://www.npmjs.com/package/smbls) [![license](https://img.shields.io/npm/l/smbls.svg)](https://git

Readme

smbls

npm version npm downloads license

The main Symbols package. Bundles the design system framework, UI components, and rendering engine into a single import.

Install

npm install smbls

Quick start

import { init, create } from 'smbls'

init({
  color: {
    primary: '#3B82F6',
    gray: ['#1F2937', '#9CA3AF']
  },
  theme: {
    primary: {
      color: 'white',
      background: 'primary'
    }
  }
})

create({
  Header: {
    tag: 'header',
    H1: { text: 'Hello Symbols' }
  },
  Main: {
    Button: {
      text: 'Get Started',
      theme: 'primary'
    }
  }
}, { key: 'my-app' })

Create variants

import { create, createAsync, createSync, createSkeleton } from 'smbls'

create(App, ctx)          // render immediately
createAsync(App, ctx)     // render first, fetch remote config after
await createSync(App, ctx) // fetch remote config first, then render
createSkeleton(App, ctx)  // resolve extends only, no DOM rendering

Themes

Themes switch via CSS custom properties — no JavaScript re-renders:

init({
  theme: {
    document: {
      '@dark': { color: 'white', background: 'black' },
      '@light': { color: 'black', background: 'white' }
    }
  }
})
  • Auto — follows system preference
  • Forcedocument.documentElement.dataset.theme = 'dark'
  • Custom — add @ocean, @sunset, activate with data-theme="ocean"

Init options

init(config, {
  useVariable: true,        // CSS custom properties
  useReset: true,           // CSS reset
  useFontImport: true,      // @font-face declarations
  useIconSprite: true,      // SVG icon sprite
  useDocumentTheme: true,   // document-level theme
  globalTheme: 'auto',      // 'auto', 'dark', 'light', or custom name
  verbose: false
})

Plugins

domql supports a plugin system via context.plugins. Plugins hook into the element lifecycle and can extend how event handlers, props, and metadata are processed.

import { funcqlPlugin } from '@domql/funcql'
import { create } from 'smbls'

create(App, {
  plugins: [funcqlPlugin]
})

Plugin interface

A plugin is a plain object with optional lifecycle hooks and a handler resolver:

{
  name: 'my-plugin',

  // Lifecycle hooks — called on every element at each stage
  start (element, options) {},
  init (element, options) {},
  render (element, options) {},
  done (element, options) {},
  create (element, options) {},
  update (element, updatedObj, options) {},

  // Resolve non-function event handlers into callable functions
  resolveHandler (handler, element) {}
}

Available plugins

| Plugin | Package | Purpose | |--------|---------|---------| | funcql | @domql/funcql | Declare event handlers as JSON schemas instead of functions | | helmet | @symbo.ls/helmet | SEO metadata via lifecycle hooks | | shorthand | @symbo.ls/shorthand | Expand abbreviated component definitions |

import { funcqlPlugin } from '@domql/funcql'

create(App, {
  plugins: [funcqlPlugin]
})

// Now event handlers can be JSON schemas
const Button = {
  text: 'Play',
  onClick: {
    audio: 'scope.audio',
    if: ['audio.paused', 'audio.play()', 'audio.pause()']
  }
}

Included packages

| Package | Description | |---------|-------------| | domql | Reactive DOM element engine | | @domql/utils | Utility functions | | @symbo.ls/scratch | CSS framework | | @symbo.ls/css | Atomic CSS engine | | @symbo.ls/default-config | Default design system configuration | | @symbo.ls/uikit | UI component library | | @domql/router | Client-side router | | css-in-props | CSS properties as component props | | attrs-in-props | HTML attributes as component props |

Also includes @symbo.ls/cli, @symbo.ls/fetch, @symbo.ls/sync, and @symbo.ls/helmet.

SEO metadata

Define metadata on your app or pages. Values can be static or functions:

const App = {
  metadata: {
    title: 'My App',
    description: 'Built with Symbols',
    'og:image': '/social.png'
  }
}

const AboutPage = {
  metadata: {
    title: 'About Us',
    description: (el, s) => s.aboutText
  }
}

See @symbo.ls/helmet for the full API.

CLI

smbls init       # initialize a project
smbls start      # start dev server
smbls build      # build for production
smbls fetch      # fetch remote config
smbls push       # push changes to platform
smbls ask        # AI assistant

See @symbo.ls/cli for the full command reference.

Documentation

symbols.app/developers

License

CC-BY-NC-4.0