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

jelenjs-compiler

v0.1.7

Published

Compiler and build-time tools for JelenJS framework

Downloads

23

Readme

JelenJS Compiler

Build-time tools and compilers for the JelenJS framework.

Overview

This package contains all the compilation and build-time analysis tools for JelenJS, separated from the runtime for better modularity and smaller bundle sizes.

Features

  • AST-based compilation - Uses TypeScript and Meriyah parsers for robust code analysis
  • Static analysis - Analyzes signal usage and component dependencies
  • Conditional expression transformation - Automatically wraps reactive conditional expressions
  • Production optimizations - Advanced optimizations for production builds
  • Caching - Intelligent caching for faster builds

Installation

npm install jelenjs-compiler

Usage

Basic Compilation

import { compile } from 'jelenjs-compiler';

const result = compile(sourceCode, {
  filename: 'component.tsx',
  production: false
});

Static Analysis

import { analyzeComponent } from 'jelenjs-compiler';

const analysis = analyzeComponent(sourceCode, 'component.tsx');
console.log('Signals found:', analysis.signals);
console.log('Components used:', analysis.components);

AST Utilities

import { 
  parseSourceToAST, 
  isReactiveConditionalExpression,
  findSignalDeclarations 
} from 'jelenjs-compiler';

const ast = parseSourceToAST(sourceCode);
const signals = findSignalDeclarations(sourceCode);

Architecture

This package is designed to be used at build-time only. The main JelenJS runtime (jelenjs package) does not include any compilation code, keeping it lightweight for production use.

Modules

  • compiler.ts - Main compilation logic
  • compiler-prod.ts - Production-specific optimizations
  • static-analyzer.ts - Code analysis and signal detection
  • ast-utils.ts - AST manipulation utilities
  • parser.ts - Source code parsing
  • cache.ts - Build caching system

Integration

This package is automatically used by:

  • jelenjs-vite - Vite plugin for JelenJS
  • Other build tools and bundlers

License

MIT