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

@zhongmiao/meta-lc-runtime

v0.2.0

Published

English | [中文文档](./README_zh.md)

Readme

@zhongmiao/meta-lc-runtime

English | 中文文档

Package Role

runtime is the single execution core. It owns RuntimeExecutor, execution contracts, runtime context, DAG/state execution, runtime gateway execution wiring, interaction execution helpers, expression evaluation, and websocket event helpers.

RuntimeExecutor.execute() is the only bottom execution entry. application/facades is the SDK-facing runtime entry: runtime-view.facade.ts handles page/view execution, and runtime-interaction.facade.ts handles interaction/WebSocket execution. Both facades eventually route execution semantics through the runtime-owned executor layer.

Responsibilities

  • Parse runtime DSL and collect dependencies.
  • Track dependency changes and plan refresh/action execution through RuntimeExecutor APIs.
  • Execute page requests through the runtime gateway facade: view lookup, context build, injected org-scope/datasource dependency handoff, audit observation, and RuntimeExecutor execution.
  • Resolve template values from runtime state.
  • Register and execute runtime functions.
  • Create and validate websocket event payloads.

Relationship With Other Packages

  • Upstream: bff.
  • Downstream: kernel, permission, query, datasource, and audit.
  • Owns execution contracts such as ExecutionPlan, ExecutionNode, Expression, RuntimeContext, runtime event, and page topic contracts directly.
  • Consumes structure contracts such as ViewDefinition and node definitions from kernel.
  • BFF websocket code can publish runtime events compatible with these contracts.
  • Frontend runtime adapters consume the package contract without direct database or business API access.
  • Query nodes build AST through query, apply permission AST transforms, compile SQL, and execute through the shared datasource adapter contract.
  • Runtime consumes injected execution dependencies for page execution; BFF does not construct datasource, permission, org-scope, or audit dependencies.
  • Demo-specific view seeds and mutation adapters are injected from examples/*; runtime defaults stay platform-only.
  • Runtime can emit optional audit observability events for plan, node, permission, and datasource boundaries without changing execution semantics.
  • src/infra/adapters/** contains runtime-consumed adapter contracts/ports, not package-owned infrastructure implementations.

Minimal Flow

flowchart LR
  View["Kernel ViewDefinition"] --> Executor["RuntimeExecutor"]
  Dsl["Runtime DSL"] --> Parser["runtime-dsl-parser"]
  Parser --> Executor
  Executor --> Event["WS event contract"]
  Event --> BFF["BFF websocket gateway"]

Commands

pnpm --filter @zhongmiao/meta-lc-runtime build
pnpm --filter @zhongmiao/meta-lc-runtime test

Boundary Notes

  • RuntimeExecutor is the only execution engine; do not add runtime orchestrator modules.
  • Page execution must enter through the runtime gateway facade and then RuntimeExecutor; do not add orchestrator or manager-adapter modules.
  • Keep runtime-executor.ts, runtime-view.facade.ts, and runtime-interaction.facade.ts names distinct: executor is the engine, view/interaction are facades.
  • Runtime query execution must not inject SQL permission clauses; it calls the permission AST transform before SQL compilation.
  • Runtime audit observers are optional and non-blocking; observer failures must not affect plan execution.
  • Do not add default business demo wiring to the runtime facade.
  • The package root only exposes application/facades; contracts/errors/constants are exposed from @zhongmiao/meta-lc-runtime/core. Compiler, executor, and service modules are internal implementation surfaces.
  • SDK consumers must not deep import runtime executor, compiler, service, domain, or infra files; package-local tests may do so only for internal coverage.