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

@aidex/engines

v1.2.0

Published

Aidex Engines — a provider-agnostic Engine contract and central EngineRegistry for registering and executing engines by id.

Readme

@aidex/engines

Installation

pnpm add @aidex/engines
npm install @aidex/engines

A central registry for registering and executing Engines — a provider-agnostic, domain-agnostic unit of work, dispatched by id rather than compiled in by name. Modeled directly on @aidex/core's Strategy/StrategyRegistry pattern, but as its own standalone package: the frozen kernel (packages/core) is never modified to support this.

Why a separate package, not packages/core

@aidex/core's Strategy contract ({ name, version?, execute(request, context) }, dispatched by StrategyRegistry) already covers "family of interchangeable units of work, selected by name, common interface." An EngineRegistry inside the kernel itself would duplicate that abstraction and reopen a folder name (engine/) the kernel's own architecture docs record as deliberately retired in favor of kernel/. This package exists instead — application/plugin-land, exactly where Strategy, Provider, and Plugin implementations already live, never inside packages/core.

Contents

  • types/Engine — the contract: { id, name, description, version, execute(context): Promise<TResult> }. context reuses @aidex/core's ExecutionContext rather than inventing a parallel shape — real integration with the existing kernel contracts, without modifying them.
  • registry/EngineRegistryregister(), unregister(), has(), get(), list(), execute(). Duplicate registrations throw @aidex/core's own DuplicateRegistrationError (reused, not reimplemented); dispatching to a missing id throws this package's EngineNotFoundError.
  • errors/EngineNotFoundError — thrown by execute() for an unregistered id. get()/has() stay plain accessors (return undefined/false), matching StrategyRegistry's own split between silent lookup and fail-loud dispatch.
  • capabilities/engineSupportsProvidermissingCapabilities(engine, provider) and engineSupportsProvider(engine, provider), reusing @aidex/providers' existing ProviderCapability/CapableProvider system to check whether a provider satisfies an engine's optional requiredCapabilities. A provider that doesn't implement CapableProvider (no getCapabilities()) is treated as declaring zero capabilities.
  • errors/UnsupportedProviderCapabilityError — thrown by EngineRegistry.execute() when the given context's provider doesn't support everything the engine's requiredCapabilities lists.

For engine discovery — listing all engines available across installed Feature Packs and their metadata — use @aidex/catalog's EngineCatalog and resolveCatalogEngine().

Provider-agnostic, domain-agnostic

Nothing in this package knows what any engine does — no document, print, or application-specific logic anywhere. EngineRegistry only ever sees an id string and an object satisfying Engine; it has no idea whether that engine extracts text from a PDF, resizes an image, or does something not yet invented.

Extensibility

A future plugin registers a new engine purely by constructing an object that satisfies Engine and calling registry.register(engine) — the registry itself never needs a code change to support it (the same Open-Closed discipline StrategyRegistry follows).

Dependency direction

@aidex/engines depends on @aidex/core only (ExecutionContext, DuplicateRegistrationError) for runtime code. It also carries a type-only dependency on @aidex/providersProviderCapability, ProviderCapabilities, and CapableProvider are imported as types only, to check an engine's optional requiredCapabilities against a provider's existing capability model without duplicating it. No runtime import of @aidex/providers, and no dependency on @aidex/strategies, @aidex/plugins, or any application code.