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

@openzeppelin/ui-types

v3.0.0

Published

Shared TypeScript type definitions for the OpenZeppelin UI ecosystem.

Readme

@openzeppelin/ui-types

Shared TypeScript type definitions for the OpenZeppelin UI ecosystem.

npm version

Installation

# Using npm
npm install @openzeppelin/ui-types

# Using yarn
yarn add @openzeppelin/ui-types

# Using pnpm
pnpm add @openzeppelin/ui-types

Purpose

This package serves as the single source of truth for all shared types used across the OpenZeppelin UI packages, including:

  • Capability and runtime typesEcosystemRuntime, per-capability interfaces, and profile names used by adapter packages and apps
  • Contract and blockchain-related types (ContractSchema, networks, execution)
  • Form field and layout definitions
  • Transaction and execution configuration types

By centralizing type definitions, we ensure consistency across all packages and eliminate type duplication.

Usage

The package is organized into namespaces for better organization and to prevent naming collisions.

import type {
  EcosystemRuntime,
  NetworkConfig,
  ProfileName,
  TransactionFormCapabilities,
} from '@openzeppelin/ui-types';

// Example: narrowing form props
function describeFormAdapter(adapter: TransactionFormCapabilities): string {
  return adapter.networkConfig.id;
}

Import capability groups from the main entry (they are re-exported from ./adapters):

import type { QueryCapability, SchemaCapability, WalletCapability } from '@openzeppelin/ui-types';

Package Structure

types/
├── src/
│   ├── adapters/              # Capability interfaces, profiles, runtime, ecosystem export
│   │   ├── capabilities/    # Tier 2/3 capability contracts (wallet, query, schema, …)
│   │   ├── profiles/        # Profile-narrowed EcosystemRuntime shapes (viewer, transactor, …)
│   │   ├── runtime.ts       # EcosystemRuntime, RuntimeCapability
│   │   ├── ecosystem-export.ts  # EcosystemExport (createRuntime, networks, metadata)
│   │   ├── common.ts        # Shared adapter primitives
│   │   └── index.ts
│   ├── common/              # NetworkEcosystem, address book helpers, …
│   ├── config/              # AppRuntimeConfig and app config types
│   ├── contracts/           # ContractSchema, ContractFunction, …
│   ├── execution/           # EOA / relayer execution config types
│   ├── forms/               # Form fields, layout, schema, validation
│   ├── networks/            # NetworkConfig unions and guards
│   ├── transactions/        # TransactionStatus, progress types
│   └── index.ts             # Main entry re-exports all modules
├── package.json
└── tsconfig.json

Type Definitions

Adapters & capabilities (./src/adapters)

  • EcosystemRuntime: Per-network bundle of optional capabilities (wallet, query, schema, execution, accessControl, …). Created by each ecosystem’s createRuntime(profile, networkConfig, options) (see published @openzeppelin/adapter-* packages).
  • RuntimeCapability: Base for Tier 2+ capabilities; includes networkConfig and dispose().
  • ProfileName: 'declarative' | 'viewer' | 'transactor' | 'composer' | 'operator' — selects which capabilities are required for a runtime.
  • EcosystemExport: Metadata + networks + capabilities factories + createRuntime — the object adapter packages publish as ecosystemDefinition.
  • Individual capability interfaces (e.g. WalletCapability, QueryCapability, TransactionFormCapabilities) live under ./capabilities and are re-exported from the package root.

Legacy monolithic ContractAdapter types are not part of the current public model; apps compose EcosystemRuntime and pass capability intersections (e.g. TransactionFormProps['adapter']) into UI packages.

Config types (./src/config)

  • AppRuntimeConfig: Shape of app.config.json for exported applications.

Common types (./src/common)

  • NetworkEcosystem: Supported blockchain ecosystems (e.g. 'evm', 'stellar').
  • AddressLabelResolver, AddressSuggestion, AddressSuggestionResolver, AddressBookAlias, AddressBookWidgetProps: shared contracts for address book and labeling (used with @openzeppelin/ui-components).

Contract types (./src/contracts)

  • ContractSchema, ContractFunction, ContractParameter: ABI-level schema types.

Form types (./src/forms)

  • FieldType, FormField, RenderFormSchema, BuilderFormConfig, FieldValidation, FormValues.

Network types (./src/networks)

  • BaseNetworkConfig, discriminated NetworkConfig, and guards such as isEvmNetworkConfig.

Execution types (./src/execution)

  • EoaExecutionConfig, RelayerExecutionConfig, RelayerDetails, etc.

Transaction types (./src/transactions)

  • TransactionStatus, TransactionProgress, and related UI progress types.

Integration with Other Packages

  • @openzeppelin/ui-components: Form and layout types
  • @openzeppelin/ui-renderer: TransactionFormProps, ContractStateCapabilityProps, etc.
  • @openzeppelin/ui-utils: Shared utilities typed against these definitions

Development

Building

# From the monorepo root
pnpm --filter @openzeppelin/ui-types build

# Or from within the types package directory
pnpm build

Testing

# From the monorepo root
pnpm --filter @openzeppelin/ui-types test

# Or from within the types package directory
pnpm test

License

AGPL-3.0