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

@synura/genesis

v0.0.3

Published

Genesis is a next-generation monolithic engine designed for high-performance systems requiring extreme throughput and absolute type safety. Optimized for modern JavaScript/TypeScript environments, Genesis provides a robust foundation for building microser

Readme

Genesis: The Monolithic Engine

Genesis is a next-generation monolithic engine designed for high-performance systems requiring extreme throughput and absolute type safety. Optimized for modern JavaScript/TypeScript environments, Genesis provides a robust foundation for building microservices, API Gateways, or complex applications with minimal latency.


Key Features

  • Superior Performance: Achieves 2.0M+ RPS (Requests Per Second) using a TypedArray Metrics Engine, enabling high-performance monitoring without pressure on the Garbage Collector (GC).
  • Zero GC Hot-path: Engineered with memory optimization to minimize object allocation in critical paths.
  • Absolute Type Safety: Committed to ZERO-ANY and ZERO-CASTING. The entire system leverages TypeScript's powerful inference to detect errors during development.
  • Fractal Architecture: A Genesis system can nest multiple child Genesis instances (use()), creating a hierarchical service network while ensuring consistency.

Architecture and Data Flow

Genesis utilizes a hierarchical structure to optimize the distribution of logic and resources.

graph TD
    Root["Genesis (Root)"]
    Root --> Svc1["Public Service"]
    Root --> Intern["Internal Proxy"]
    Root --> Child["Genesis (Child)"]
    Child --> Priv["Isolated Private Service"]
    Child --> SubChild["Genesis (Leaf)"]
    
    Root -.-> Pulse["TypedArray Metrics (2M+ RPS)"]
    Root -.-> EventBus["High-speed Event Bus"]

[!NOTE] In internal benchmarks (Bun 1.3.10), Genesis maintains < 0.1ms latency for each request thanks to an optimized dispatchAtlas.


Quick Start

1. Initialize the Engine

import { Genesis } from "./genesis";

const app = new Genesis("root")
  .state("config", { port: 3000 })
  .decorate("logger", (msg: string) => console.log(`[LOG] ${msg}`));

2. Define Services

Genesis supports expose (public), internal (internal within the tree), and isolate (private).

const mathModule = new Genesis("math")
  .expose({
    add: async (ctx, a: number, b: number) => a + b,
    multiply: async (ctx, a: number, b: number) => a * b,
  });

app.use(mathModule);

3. Inter-module Communication

Use request or connect (Proxy) to invoke methods with automatic type inference.

const result = await app.request("math", "add", 10, 20); // Result: 30

4. Boot and Introspection

await app.boot();
console.log(app.info()); // View the system state snapshot

Observability

Genesis includes a built-in Introspection API. By calling app.info(), you get a detailed map of:

  • Health Status: Healthy, Degraded, or Dead.
  • Pulse Metrics: Real-time RPS, average latency, and error rate calculated using Float64Array.
  • Hierarchy System: A comprehensive list of sub-modules and active services.

Development Philosophy

We believe that great software must be fast, safe, and intuitive.

  • Speed: Every CPU cycle is precious. We optimize method dispatching via the dispatchAtlas (O(1) lookup).
  • Reliability: No any. If your code builds successfully, it runs correctly.
  • Scalability: Genesis allows you to graft new services into a running system without interrupting the execution flow.

Installation

bun install
# or
npm install

© 2026 Synura Team. Designed for the Future.