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

zau-framework

v1.0.6

Published

Client runtime, Signals reactivity, and Native 3D Spatial Canvas for ZAU Framework

Readme

zau-framework

  ███████╗ █████╗ ██╗   ██╗
  ╚══███╔╝██╔══██╗██║   ██║
    ███╔╝ ███████║██║   ██║
   ███╔╝  ██╔══██║██║   ██║
  ███████╗██║  ██║╚██████╔╝
  ╚══════╝╚═╝  ╚═╝ ╚═════╝ 

Core Client Runtime & Native 3D Spatial Canvas for ZAU Framework

Signals Reactivity · Three.js r160 Spatial Canvas · Server Actions RPC · Progressive Draco LOD


Installation

Install the core client runtime and peer dependencies:

# Using npm
npm install zau-framework three

# Using pnpm
pnpm add zau-framework three

# Using yarn
yarn add zau-framework three

# Using bun
bun add zau-framework three

Core Features

  • Fine-Grained Signals Reactivity: Ultra-lightweight reactive primitives (useState, useEffect) with zero external runtime overhead.
  • Native 3D Spatial Canvas: Direct Three.js r160 integration featuring Draco mesh decompression, realistic PBR shading, and interactive orbital controls.
  • Dual-Tier Progressive LOD: Fast initial render (Frame 0 Draco mesh <700 KB) followed by seamless background texture and buffer hydration without frame drops.
  • Python ASGI Server Actions: Type-safe client-to-server RPC execution through callAction() targeting backend Python handlers.
  • Synchronized Animation Loop: Native 60fps/120fps useFrame() hook with microsecond delta-time precision for spatial and physics simulations.

Quickstart

1. Invoking Python ASGI Server Actions

import { callAction } from 'zau-framework';

interface CreateProjectPayload {
  title: string;
  category: string;
}

interface ProjectResponse {
  id: number;
  status: string;
}

// Executes an RPC endpoint directly against the Python ASGI kernel
async function submitProject() {
  try {
    const data = await callAction<ProjectResponse>('/api/projects/create', {
      title: 'Spatial Architecture Laboratory',
      category: 'Visualization'
    });
    console.log('Project created:', data.id);
  } catch (error) {
    console.error('Server action failed:', error);
  }
}

2. Reactive State & Spatial Animation Loop

import { useState, useFrame, useEffect } from 'zau-framework';

export function useSpatialRotation(speed = 1.0) {
  const [rotation, setRotation] = useState({ x: 0, y: 0, z: 0 });
  const [isPaused, setIsPaused] = useState(false);

  // Synchronized render loop hook
  useFrame((state, delta) => {
    if (!isPaused()) {
      setRotation(prev => ({
        ...prev,
        y: prev.y + delta * speed
      }));
    }
  });

  return { rotation, setRotation, isPaused, setIsPaused };
}

3. High-Poly Progressive LOD Pipeline

import { HighPolyMeshPipeline } from 'zau-framework';

const pipeline = new HighPolyMeshPipeline({
  streamTextures: true,
  smoothNormals: true,
  onProgress: (ratio) => {
    console.log(`Loading 3D asset: ${Math.round(ratio * 100)}%`);
  }
});

// Stream and hydrate GLTF/GLB model
pipeline.load('/model/3d/salt_tower_lower_room.glb').then(scene => {
  console.log('3D Scene ready for display:', scene);
});

API Reference

Signals & Component Hooks

  • useState<T>(initialValue: T): [() => T, (val: T | ((prev: T) => T)) => void]
    Creates a reactive getter and setter pair.
  • useEffect(callback: () => void | (() => void), deps?: any[]): void
    Registers a side effect with optional cleanup callback.
  • useFrame(callback: (state: any, delta: number) => void): void
    Binds a function to the browser's requestAnimationFrame loop with elapsed delta time in seconds.

Server Actions Client

  • callAction<T = any>(endpoint: string, payload?: Record<string, any>): Promise<T>
    Dispatches an asynchronous POST RPC request to the Python ASGI backend.

Spatial Engine

  • ZAUSpatialEngine: Primary controller for WebGL context, camera frustum, shadow maps, and scene rendering.
  • HighPolyMeshPipeline: Loader pipeline supporting progressive texture streaming, Draco geometry, and normal recomputation.
  • DEFAULT_SHADING_CONFIG: Default studio lighting and shadow configuration presets.

Deployment

Deploying a ZAU fullstack project is zero-configuration:

Vercel (Edge Frontend + Serverless Python ASGI)

Create vercel.json at your project root:

{
  "framework": "nextjs",
  "cleanUrls": true,
  "rewrites": [
    { "source": "/api/(.*)", "destination": "/api/index.py" },
    { "source": "/__zau/(.*)", "destination": "/api/index.py" }
  ]
}

Deploy via terminal:

npx vercel --prod --yes

🇮🇩 Bahasa Indonesia

Ringkasan Pustaka

zau-framework adalah runtime klien resmi untuk ZAU Framework (ZetaGo-Aurum Unified). Paket ini menyediakan reaktivitas Signals ultra-ringan, integrasi Three.js r160 WebGL 3D Spatial Canvas, klien Server Actions RPC untuk backend Python ASGI, serta pipeline kompresi Draco Progressive LOD.

Pemasangan

npm install zau-framework three

Penggunaan Dasar

import { ZAU, useState, useFrame, callAction } from 'zau-framework';

// 1. Pemanggilan RPC ke Python ASGI backend
const response = await callAction('/api/orders/create', { productId: 101 });

// 2. State reaktif
const [count, setCount] = useState(0);

// 3. Render loop 60fps/120fps
useFrame((state, delta) => {
  // Update rotasi atau koordinat 3D
});

License & Governance