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

@miliastry/quasar

v1.0.6

Published

Quasar Document Engine - Advanced BBCode/Markdown/HTML AST Engine

Readme


Traditional BBCode or Markdown parsers rely on brittle Regex that destroy user formatting, collapse on invalid syntax, and freeze the UI on large documents. Quasar is different.

Quasar is the official document engine powering Miliastry Nova. It brings the architectural patterns used by modern language compilers (like C#'s Roslyn and Apple's SwiftSyntax) directly into the browser and desktop using pure TypeScript.

Instead of translating strings to HTML, Quasar builds a living, immutable Red-Green Syntax Tree. It parses documents incrementally in microseconds, guarantees perfect round-tripping (preserving every single space and newline), and allows for real-time visual editing at 140 FPS.

✨ The Core Philosophy

  • 🌳 Red-Green Syntax Tree: An immutable, flyweight GreenNode core for structural sharing and memory deduplication, paired with a stateful RedNode facade for UI binding and cursor tracking.
  • Incremental Parsing: When a user types a single character in a 50KB document, Quasar only re-parses the affected span. Average mutation latency: < 0.15ms.
  • 🛡️ Error-Tolerant by Design: The parser never crashes. Invalid syntax, unclosed tags, or malformed attributes simply produce ErrorNodes with diagnostics, keeping the rest of the AST intact.
  • 🔄 Perfect Round-Tripping: "Trivia" (spaces, newlines, raw formatting) is strictly preserved. What the user types is exactly what is saved.
  • 🔌 Agnostic & Multi-Format: While heavily optimized for BBCode, Quasar's Bridges support ingestion and emission of HTML, Markdown, and JSON ASTs.
  • 📦 Zero Runtime Dependencies: Pure TypeScript. Runs natively in the Browser, Node.js, Deno, Bun, or Tauri.

🚀 Installation

npm install github:hxovc/Miliastry-Quasar#main

(Note: Quasar is currently distributed as a git submodule for Miliastry Nova)

📚 Documentation & Architecture

Quasar's internal architecture is highly advanced. If you want to understand how the parser pipeline works, how memory deduplication is achieved, or how to build AST transformers, start here:


📜 License

Miliastry Source License (MSL-1.0) — Copyright (c) 2026 hxovc / Miliastry Team.

Quasar is Source-Available under a custom license designed to protect the Miliastry ecosystem. You can use, modify, and distribute the engine for any project—including standard visual BBCode editors or osu! profile tools—except for creating a Competing Product (i.e., a direct clone of Miliastry Nova as an integrated IDE, or a competing standalone engine based on this code). The license automatically converts to a standard MIT License 2 years after each commit.