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

@tachui/core

v0.8.1-alpha

Published

tachUI core framework with reactive system and compiler

Readme

@tachui/core

The core tachUI framework - SwiftUI-inspired web development with fine-grained reactivity

npm version License: MPL-2.0

Overview

tachUI core provides a SwiftUI-inspired declarative framework for building web applications with fine-grained reactivity, direct DOM manipulation, and a familiar component-based architecture.

Features

  • 🎯 SwiftUI-compatible API - Familiar components and modifiers
  • Fine-grained reactivity - SolidJS-inspired signal system
  • 🏗️ 50+ Components - Complete UI component library
  • 🎨 Chainable modifiers - SwiftUI-style component styling
  • 📱 Responsive design - Built-in breakpoint system
  • 🔧 TypeScript-first - Complete type safety
  • 🚀 Performance-focused - Direct DOM manipulation

Quick Start

Installation

npm install @tachui/[email protected]
# or
pnpm add @tachui/[email protected]

Basic Example

import { Text, Button, VStack, createSignal } from '@tachui/core'

// Create reactive state
const [count, setCount] = createSignal(0)

// Build SwiftUI-style components
const counterApp = VStack({
  children: [
    Text(() => `Count: ${count()}`)
      .modifier.fontSize(24)
      .fontWeight('bold')
      .foregroundColor('#007AFF')
      .build(),

    Button('Increment', () => setCount(count() + 1))
      .modifier.backgroundColor('#007AFF')
      .foregroundColor('white')
      .padding({ horizontal: 24, vertical: 12 })
      .cornerRadius(8)
      .build(),
  ],
  spacing: 16,
  alignment: 'center',
})

// Mount to DOM
counterApp.mount('#app')

Core Components

Layout

  • VStack, HStack, ZStack - Flexible layout containers
  • Grid - Advanced grid systems with responsive support
  • ScrollView - Scrollable content with pull-to-refresh
  • Spacer - Flexible space distribution

Content & Input

  • Text - Typography with reactive content
  • Image - Progressive loading with content modes
  • Button - Interactive buttons with states
  • BasicInput - Text input with validation
  • Toggle - Switch controls with reactive binding

Data & Logic

  • List, ForEach, Section - Dynamic content rendering
  • Show, Unless, When - Conditional rendering
  • Form - Form containers with validation

Modifier System

Chain modifiers just like SwiftUI:

Text('Hello tachUI')
  .modifier.fontSize(18)
  .fontWeight('semibold')
  .foregroundColor('#007AFF')
  .padding(16)
  .backgroundColor('#f0f8ff')
  .cornerRadius(12)
  .shadow({ x: 0, y: 2, radius: 4, color: 'rgba(0,122,255,0.2)' })
  .onTap(() => console.log('Tapped!'))
  .build()

Available Modifiers

  • Layout: .frame(), .padding(), .margin(), .position()
  • Appearance: .foregroundColor(), .backgroundColor(), .font(), .cornerRadius()
  • Visual Effects: .shadow(), .opacity(), .clipShape(), .backdrop()
  • Interactions: .onTap(), .onHover(), .disabled(), .cursor()
  • Responsive: .responsive() - breakpoint-based styling

Reactivity System

Fine-grained reactive updates using signals:

import { createSignal, createComputed, createEffect } from '@tachui/core'

// Create reactive state
const [name, setName] = createSignal('World')
const [count, setCount] = createSignal(0)

// Computed values
const greeting = createComputed(() => `Hello, ${name()}!`)

// Side effects
createEffect(() => {
  console.log(`Count changed to: ${count()}`)
})

// Update state
setName('tachUI')
setCount(count() + 1)

TypeScript Support

Full TypeScript support with excellent IntelliSense:

import { ComponentProps, Modifier } from '@tachui/core'

// Typed component props
interface MyComponentProps extends ComponentProps {
  title: string
  count: number
  onUpdate?: (value: number) => void
}

// Custom components with modifiers
const MyComponent = createComponent<MyComponentProps>('MyComponent', props => {
  return Text(props.title)
    .modifier.fontSize(props.count > 10 ? 20 : 16)
    .build()
})

Performance

tachUI's architecture provides:

  • Surgical DOM updates - Only affected elements re-render
  • Automatic dependency tracking - No manual effect management
  • Memory-safe cleanup - WeakMap-based automatic cleanup
  • Sub-millisecond updates - Direct DOM manipulation

Concatenation Optimization (New in 0.8.1-alpha)

Revolutionary bundle size reduction for component concatenation patterns:

// Before: Uses full 87.76KB concatenation runtime
Text('Hello').build().concat(Text('World').build())

// After: Smart optimization with 94.9% bundle reduction
// • Static patterns: 0KB runtime (compile-time concatenation)
// • Dynamic patterns: 1.2-1.9KB selective runtime based on accessibility needs
  • Automatic Detection: TypeScript AST analysis finds .build().concat() patterns
  • Smart Runtime Selection: Minimal (1.18KB), ARIA (1.42KB), or Full (1.93KB) based on component needs
  • CLI Integration: Use tachui analyze --concatenation for optimization insights
  • Production Ready: 27 tests passing, handles 250+ files in <500ms

Plugin Ecosystem

Extend tachUI with additional packages:

Documentation

Community

License

Mozilla Public License 2.0 - see LICENSE for details.


tachUI - The future of SwiftUI-inspired web development 🚀