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

ambastha-engine

v1.0.1

Published

Core parsing, layout, and visualization engine for Ambastha Diagrams

Readme

Ambastha-Diagrams

A high-performance, modular diagram rendering ecosystem designed for headless SVG generation and serverless integration. The project is structured as a multi-package architecture, decoupling the core rendering logic from the diagram registry and user-facing editor.

Overview

Ambastha-Diagrams provides a lightweight, zero-dependency alternative for generating structural diagrams. By utilizing native SVG and standard ECMAScript Modules (ESM), it offers high-speed rendering with minimal memory overhead, suitable for both client-side and server-side environments.

Dual-Categorization Logic

Unlike traditional tools that treat all diagrams as manual drawing tasks, this engine categorizes visualization into two distinct workflows:

  1. Deterministic (Data-Driven): For diagrams where the layout is a result of mathematical constraints (e.g., CPM, PERT, Sequence). The user provides the raw data and dependencies; the engine automatically calculates the Critical Path, time-scales, and optimal routing.
  2. Declarative (Structure-Driven): For diagrams where the user defines the visual relationship and hierarchy (e.g., Use Case, Flowcharts). The engine ensures structural integrity and consistent styling without "fussy" syntax or manual coordinate management.

Technical Specifications

  • Package Size: ~642 KB
  • Disk Footprint: ~1.20 MB
  • Architecture: Modular (Core / Registry / Editor)
  • License: Apache License 2.0
  • Environment: Web-friendly (VS Code Web, Browser, Node.js)

Core Features

  • Lightweight Rendering: Optimized SVG output without external dependencies like D3.js.
  • Modular Registry: Pluggable architecture allowing for specific diagram types to be added or removed as needed.
  • Web-First Integration: Fully compatible with VS Code Web extensions and browser-based editors.
  • Deterministic Layouts: Precise coordinate calculation for complex routing, including native support for self-loops and multi-dependency nodes.
  • Agent-Friendly Syntax: A streamlined DSL designed to minimize LLM hallucinations (e.g., inconsistent colons or delimiters).

Project Structure

  • core/: The foundational rendering and AST parsing logic.
  • registry/: A collection of diagram-specific implementations (CPM, PERT, Use Case) and templates.
  • editor/: A lightweight, web-based interface for live diagram preview and editing.

Installation & Usage

Refer to the specific package documentation for implementation details. The engine can be integrated via ESM imports or served through standard CDNs for direct browser execution.

License

This project is licensed under the License: Apache 2.0. See the LICENSE and NOTICE files for more information.