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

@effectstream/config

v0.101.1

Published

Chain and runtime configuration for EffectStream

Downloads

2,090

Readme

@effectstream/config

Type-safe configuration builders for EffectStream nodes - networks, deployed contract addresses, sync protocols, primitives, and security namespaces. A fluent API with strict TypeScript inference: each builder step refines the type of what comes next, so misuse fails at compile time.

  • Fluent, type-safe configuration builders for Effectstream nodes.
  • Strict inference: each step refines the type of what comes next, so misuse is a compile error.
  • Used by every template's packages/node/config.dev.ts.
  • Covers networks, deployed contract addresses, sync protocols, primitives, security namespaces.

Install

bun add @effectstream/config
# or
npm install @effectstream/config

Standalone usage

The builders are pure data assembly. You can construct a config object outside an EffectStream node and inspect it, snapshot it, or feed it to your own tooling.

import {
  ConfigBuilder,
  ConfigNetworkType,
  ConfigSyncProtocolType,
} from "@effectstream/config";
import { hardhat } from "viem/chains";

export const config = new ConfigBuilder()
  .setNamespace((b) => b.setSecurityNamespace("my-app"))
  .buildNetworks((b) =>
    b.addNetwork({
      name: "local-evm",
      type: ConfigNetworkType.EVM,
      ...hardhat,
    })
  );
  // continue with .buildDeployments(), .buildSyncProtocols(),
  // .buildPrimitives(), and finally .build()

The runtime side (PaimaStaticConfigContext, withEffectstreamStaticConfig, usePaimaStaticConfig) plugs that same config into an Effection context so node packages can read it. You don't need those entry points unless you're running a full node.

Inside EffectStream

config is what every node component reads to find out which chains to sync from, where contracts live, and what primitives to emit. The templates under templates/* all define their config with ConfigBuilder in packages/node/config.dev.ts.

Key exports

What app code typically imports:

  • ConfigBuilder - fluent top-level builder. Chain .setNamespace(), .buildNetworks(), .buildDeployments(), .buildSyncProtocols(), .buildPrimitives(), then .build(). Used by every template.
  • ConfigNetworkType, ConfigSyncProtocolType - enums for the network and sync-protocol kinds (EVM, Cardano, Midnight, Bitcoin, Avail, NEAR, Algorand, Mina, Polkadot, NTP variants). The most-imported symbols from this package by far.
  • withEffectstreamStaticConfig(config) - Effection generator that publishes the built config to the runtime context.
  • toSyncProtocolWithNetwork(...) - joins a sync protocol with its source network config; used by app code when wiring custom primitives.
  • getViemNetwork(networkName) - generator that returns a viem Chain from the active config.

Per-section builders (NetworkBuilder, DeployedAddressBuilder, SyncProtocolBuilder, PrimitiveBuilder, SecurityNamespaceBuilder) are exported, but you usually access them via the callback argument inside ConfigBuilder.setNamespace((b) => b.setSecurityNamespace(...)) rather than importing them directly.

Runtime-side context types (PaimaStaticConfigContext, usePaimaStaticConfig) are reserved for the runtime's own internals and aren't typically imported by app code.

Examples

Runnable: test/examples.test.ts.

Real-world usage in templates:

Links

  • Docs: https://effectstream.github.io/docs/packages/sdk/config
  • Source: https://github.com/effectstream/effectstream/tree/main/packages/effectstream-sdk/config