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

@luxsequencer/contracts

v0.1.0

Published

Shared type contracts for LuxSequencer core, cloud and marketplace repos

Downloads

133

Readme

@luxsequencer/contracts

Contratos de tipos compartidos del ecosistema LuxSequencer. Única fuente de verdad para los tipos de integración entre repos, para evitar imports cruzados por rutas relativas y contratos desalineados.

Este README describe únicamente lo que existe hoy. Estado detallado: STATUS.md.

Última verificación: 2026-08-06

Consumidores

| Repo | Qué importa | |---|---| | luxsequencer-core | declarative-controls, marketplace | | core-renderers | declarative-controls | | luxsequencer-cloud | api |

Contenido

| Módulo | Entry point | Contiene | |---|---|---| | src/declarativeControls.ts | @luxsequencer/contracts/declarative-controls | Contratos del sistema declarativo de controles de renderers. Sólo tipos | | src/marketplace.ts | @luxsequencer/contracts/marketplace | Manifest y catálogo, más helpers de identidad canónica. Tiene código en runtime | | src/api.ts | @luxsequencer/contracts/api | Contratos de la API de cloud. Sólo tipos | | src/index.ts | @luxsequencer/contracts | Re-exporta los tres |

marketplace.ts es el único módulo con código ejecutable: buildToolCanonicalKey, buildMarketplaceToolKey, isValidIdentityToken y validateMarketplaceIdentity.

Instalación

El paquete todavía no está publicado en npm. Hoy se consume como dependencia local desde los repos hermanos:

{
  "dependencies": {
    "@luxsequencer/contracts": "file:../luxsequencer-contracts"
  }
}

Eso requiere que este repo esté clonado como hermano de los consumidores y compilado: los consumidores importan desde dist/, no desde src/.

npm install    # el script `prepare` compila dist/ automáticamente

dist/ no está versionado. Después de clonar, hay que compilar antes de que los consumidores funcionen.

Uso

import type { DeclarativeControlSchema } from '@luxsequencer/contracts/declarative-controls';
import { buildToolCanonicalKey } from '@luxsequencer/contracts/marketplace';
import type { ListPluginsResponse } from '@luxsequencer/contracts/api';

Importar desde el subpath específico, no desde la raíz, salvo que necesites varios módulos.

Scripts

| Script | Qué hace | |---|---| | npm run build | Genera dist/ con JS + .d.ts + source maps | | npm run prepare | Alias de build. Corre solo en npm install y antes de publicar | | npm run type-check | Valida tipos sin emitir |

No hay tests. Es un paquete de tipos con cuatro helpers puros; tsc es la verificación.

Formato del paquete

  • ESM únicamente ("type": "module"). No hay build CJS.
  • Target ES2022, moduleResolution: "Bundler".
  • Publicable: files: ["dist"] + publishConfig.access: "public".

Versionado

Semver. Estos contratos los consumen tres repos, así que un cambio incompatible acá rompe a los tres a la vez.

  • Agregar un tipo o un campo opcional → minor.
  • Cambiar o quitar un tipo, o volver requerido un campo opcional → major.

src/api.ts incluye tipos de endpoints todavía no construidos (checkout, suscripciones, admin). Están declarados a propósito, por anticipado, y corresponden a funcionalidad marcada PLANEADO en el STATUS.md de luxsequencer-cloud.