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

anu-verzum

v1.21.3

Published

A "React-like" UI library that supports JSX syntax, Redux-like state management, array-rendering, i18n, routing and many more.

Readme

A lightweight React-inspired UI library for building component-based web applications in JavaScript and TypeScript.

  • Fiber-based virtual DOM with time-sliced rendering (requestIdleCallback)
  • Class components with full lifecycle support and function components
  • JSX via a custom Babel preset — no separate TypeScript preset needed
  • Redux-compatible state management with thunk middleware and memoized selectors
  • Client-side routing over the History API
  • Context API, i18n (Intl), feature flags, and built-in event analytics (Anulytics)
  • Ships with TypeScript declaration files — no @types package needed
npm install anu-verzum

Create a babel.config.json in your project root:

{
    "presets": [
        "anu-verzum/babel-preset",
        ["@babel/preset-env", { "targets": "last 2 Chrome versions" }]
    ]
}

anu-verzum/babel-preset transforms JSX to Anu.createElement() calls and strips TypeScript syntax automatically. Do not add @babel/preset-typescript separately — running both would cause errors.

All build tools ship with anu-verzum — no separate install needed. Create webpack.config.js in your project root:

module.exports = require('anu-verzum/webpack.config')(__dirname);

Add scripts to package.json:

{
    "scripts": {
        "start": "webpack serve",
        "build": "webpack --mode production"
    }
}

The default config targets src/index.tsx as the entry point and index.html as the HTML template, served on port 3000. Pass an options object to override any of these:

module.exports = require('anu-verzum/webpack.config')(__dirname, {
    entry: './src/main.tsx',
    template: './public/index.html',
    port: 4000
});

Use plugins to append additional webpack plugins after the built-in HtmlWebpackPlugin:

const webpack = require('webpack');

module.exports = require('anu-verzum/webpack.config')(__dirname, {
    plugins: [
        new webpack.DefinePlugin({
            'process.env.API_URL': JSON.stringify(process.env.API_URL)
        })
    ]
});

Every file that contains JSX must import Anu, because the JSX transform expands to Anu.createElement(...) calls at compile time:

import Anu from 'anu-verzum';

const App = () => (
    <div>Hello ANUVerzum!</div>
);

Anu.render(<App />, document.getElementById('root'));

The library ships with declaration files (.d.ts) out of the box — no @types package is needed.

Install TypeScript for type checking:

npm install --save-dev typescript

Note: @babel/preset-typescript is not needed — anu-verzum/babel-preset already handles TypeScript stripping. Only install typescript to get the tsc CLI for type checking.

Create tsconfig.json:

{
    "compilerOptions": {
        "target": "ES2017",
        "module": "ESNext",
        "moduleResolution": "bundler",
        "jsx": "react",
        "jsxFactory": "Anu.createElement",
        "jsxFragmentFactory": "Anu.Fragment",
        "strict": true,
        "noEmit": true,
        "skipLibCheck": true,
        "esModuleInterop": true
    },
    "include": ["src"]
}

| Option | Value | Reason | |--------|-------|--------| | jsx | "react" | Enables JSX type-checking with a custom factory | | jsxFactory | "Anu.createElement" | Matches ANUVerzum's JSX transform | | jsxFragmentFactory | "Anu.Fragment" | Matches ANUVerzum's fragment syntax | | noEmit | true | Type checking only — Babel handles compilation | | skipLibCheck | true | Skips type checking inside node_modules | | moduleResolution | "bundler" | Correct setting for Webpack/Babel projects |

Compilation and type checking are intentionally separate — npm start and npm run build succeed regardless of type errors. Run npx tsc --noEmit during development to catch type issues without blocking the build.

Exported types

The following types are exported from anu-verzum for use in consumer projects:

| Type | Description | |------|-------------| | AnuElement | The virtual-DOM element descriptor (return type of createElement) | | AnuChild | Union of all valid JSX child types: AnuElement \| string \| number \| boolean \| null \| undefined | | AnuNode | Recursive child tree type — AnuChild \| AnuNode[]; accepts single children, arrays, and nested arrays (e.g. from .map()). Can also be imported directly to type a children field in a plain type: type MyProps = { children?: AnuNode; } | | AnuCSSProperties | Style object type used by Props.stylePartial<Record<keyof CSSStyleDeclaration, string \| number>> | | Props | Base props type providing children?: AnuNode, style?: AnuCSSProperties, and an open index signature. Extend it when a component uses children or needs the flexible index signature; for simple prop shapes, a plain type alias works equally well | | Ref<T> | Reference object created by Anu.createRef<T>() | | Component<P, S> | Abstract base class for class components | | FunctionComponent<P> | Function component signature | | ElementType | String tag, function component, or class component constructor | | ContextValue<T> | Context value passed to a Consumer render-prop: { value: Partial<T>; defaultContext: { value: T } } | | ConsumerProps<T> | Props for a typed context Consumerchildren is the render-prop (ctx: ContextValue<T>) => AnuElement \| null | | Store<S, A> | Store instance returned by Anu.store.createStore | | Reducer<S, A> | Reducer function signature | | Middleware<S, A> | Middleware function signature | | Dispatch<A> | Dispatch function signature | | Action | Base action type { type: string; [key: string]: any } | | ThunkAction<S> | Thunk action (dispatch, getState) => any | | SelectorFn<TInput, TOutput> | Selector function signature for createSelector | | CreateSelectorFn | Overloaded interface for Anu.store.createSelector — enables full type inference on transformation parameters | | ApiSuccessResponse<T> | Successful HTTP response { status: number; response: T \| null } | | ApiErrorResponse | Error HTTP response { status: number; response: null } |

Library development scripts

npm run clean       # Delete dist/ entirely
npm run build       # Clean, compile TypeScript sources to dist/, and emit .d.ts files
npm run typecheck   # Type-check without emitting any output
npm run lint        # Run ESLint on all source files
npm run format      # Format all source files with Prettier

Full usage documentation, API reference, and code examples:

USERS_MANUAL.md

Architecture overview, module deep-dives, and implementation details for contributors:

TECHNICAL_DOCUMENTATION.md