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

@vobs/compiler

v1.7.2

Published

The TSX compiler of the vobs framework. Transforms JSX into targeted DOM operations with real statement-level source maps and structured diagnostics.

Readme

@vobs/compiler

The TSX compiler of the vobs framework. Transforms JSX into targeted DOM operations with real statement-level source maps and structured diagnostics.

No virtual DOM is emitted: attributes compile into independent effects (bindText, bindAttribute, bindProperty), control flow into insertDynamic, lists into insertList, and components into run-once calls wrapped in an Owner.

Install

npm install @vobs/compiler typescript

Used by @vobs/vite-plugin; can also be driven programmatically.

Quick start

import { compileWithSourceMap } from '@vobs/compiler'

const { code, map } = compileWithSourceMap(source, { filename: 'src/counter.tsx' })
// code: executable module referencing @vobs/vops runtime helpers
// map:  standard v3 source map with statement-level mappings back to the original file

Custom compiler plugins

import { createCompiler } from '@vobs/compiler'

const compiler = createCompiler({
  plugins: [
    {
      name: 'my-plugin',
      transform(context) {
        // context.helperRef(name) — collision-safe reference to a runtime helper
      }
    }
  ]
})

Plugins can analyze or rewrite the compile tree; context.helperRef guarantees injected helpers never collide with user bindings, and diagnostics flow through the same structured channel as the core compiler.

Diagnostics

Unsupported JSX shapes fail with structured errors — code VOBS_Cxxx, source location, code frame, and a fix hint — instead of silently emitting broken output (e.g. member-expression tags like <Foo.Bar> used as a DOM tag).

Component calls carry a { file, line, column } source location for error reporting and DevTools. Pass sourceLocation: false to omit it in production builds (the Vite plugin does this automatically for vite build); errors still carry component names and positions resolve via source maps.

API

| Signature | Description | | --- | --- | | compile(source, options) | Compiles TSX; throws a structured VobsError on error diagnostics. | | compileWithSourceMap(source, options) | Same, plus a v3 source map with sourcesContent. | | createCompiler(options) | Creates a reusable compiler instance with plugins. | | createI18nExtractor(options) | Analysis plugin that extracts t() message keys during compilation. |

Types

CompilerPlugin, CompilerContext, CompilerOptions, CompileResult, VobsSourceMap, CompilerDiagnostic, VobsCompiler, I18nExtractor(Options).