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

@buildeross/constants

v0.2.2

Published

Shared constants and configuration for BuilderOSS apps

Readme

@buildeross/constants

Shared constants and configuration values for BuilderOSS applications, including contract addresses, chain configurations, cache settings, and API endpoints.

Installation

pnpm install @buildeross/constants

Features

  • Multi-Chain Support: Contract addresses for Ethereum, Base, Optimism, and Zora
  • Environment-Aware: Testnet and mainnet configurations
  • Cache Configuration: Optimized cache timing for different data types
  • Type-Safe: Full TypeScript support with typed addresses and chain IDs
  • Comprehensive Coverage: All Builder protocol contracts and external services

Usage

Contract Addresses

import {
  PUBLIC_MANAGER_ADDRESS,
  PUBLIC_BUILDER_ADDRESS,
  PUBLIC_ZORA_NFT_CREATOR,
} from '@buildeross/constants'

// Get manager address for specific chain
const managerAddress = PUBLIC_MANAGER_ADDRESS[CHAIN_ID.ETHEREUM]

// Get builder treasury address
const builderAddress = PUBLIC_BUILDER_ADDRESS[CHAIN_ID.ETHEREUM]

Chain Configuration

import {
  PUBLIC_DEFAULT_CHAINS,
  PUBLIC_ALL_CHAINS,
  L1_CHAINS,
  L2_CHAINS,
} from '@buildeross/constants'

// Use default chains based on environment
const chains = PUBLIC_DEFAULT_CHAINS

// Get L2 chains only
const l2Chains = L2_CHAINS

Cache Settings

import { CACHE_TIMES } from '@buildeross/constants'

// Use optimized cache times for different data types
const daoInfoCache = CACHE_TIMES.DAO_INFO
const proposalCache = CACHE_TIMES.DAO_PROPOSAL

API Configuration

import {
  PUBLIC_SUBGRAPH_URL,
  PUBLIC_ALCHEMY_API_URL,
  PUBLIC_ETHERSCAN_API_URL,
} from '@buildeross/constants'

// Access configured API endpoints
const subgraphUrl = PUBLIC_SUBGRAPH_URL[chainId]

Development

Prerequisites

  • Node.js 18+
  • pnpm 8+

Setup

# Install dependencies
pnpm install

# Build the package
pnpm build

# Development build with watch
pnpm dev

# Run type checking
pnpm type-check

# Run linting
pnpm lint

Scripts

  • pnpm build - Build the package for production
  • pnpm dev - Build in watch mode for development
  • pnpm type-check - Run TypeScript type checking
  • pnpm lint - Run ESLint with auto-fix
  • pnpm clean - Remove build artifacts

Dependencies

Dependencies

  • @buildeross/types: Shared TypeScript types

Peer Dependencies

  • wagmi: ^2.15.4 (for chain configurations)

Exported Constants

Contract Addresses

  • PUBLIC_MANAGER_ADDRESS - DAO manager contract addresses
  • PUBLIC_L1_BRIDGE_ADDRESS - Layer 1 bridge contract addresses
  • PUBLIC_BUILDER_ADDRESS - Builder treasury addresses
  • PUBLIC_NOUNS_ADDRESS - Nouns treasury addresses
  • PUBLIC_ZORA_NFT_CREATOR - Zora NFT creator contract addresses
  • MERKLE_RESERVE_MINTER - Merkle reserve minter addresses
  • L2_MIGRATION_DEPLOYER - L2 migration deployer addresses
  • MERKLE_METADATA_RENDERER - Merkle metadata renderer addresses
  • L1_CROSS_DOMAIN_MESSENGER - Cross-domain messenger addresses
  • NULL_ADDRESS - Zero address constant
  • ALLOWED_MIGRATION_DAOS - Whitelisted DAO addresses for migration

Chain Configuration

  • PUBLIC_DEFAULT_CHAINS - Default chains based on environment
  • PUBLIC_ALL_CHAINS - All supported chains (mainnet + testnet)
  • PUBLIC_IS_TESTNET - Environment flag for testnet mode
  • L1_CHAINS - Layer 1 chain IDs
  • L2_CHAINS - Layer 2 chain IDs

Cache Settings

  • CACHE_TIMES - Optimized cache durations for different data types
    • DAO_INFO - DAO metadata caching
    • DAO_PROPOSAL - Proposal data caching
    • TOKEN_INFO - Token metadata caching
    • EXPLORE - Explore page data caching
    • IN_PROGRESS_PROPOSAL - Active proposal caching
    • SETTLED_PROPOSAL - Historical proposal caching
    • DECODE - Transaction decode caching
    • DAO_FEED - Activity feed caching
    • PROFILE - User profile caching
    • RENDERER - Metadata renderer caching

API & Service Configuration

  • PUBLIC_SUBGRAPH_URL - GraphQL subgraph endpoints
  • PUBLIC_ALCHEMY_API_KEY - Alchemy API configuration
  • PUBLIC_ETHERSCAN_API_KEY - Etherscan API configuration
  • PUBLIC_TENDERLY_* - Tenderly simulation configuration
  • PUBLIC_INFURA_* - Infura RPC configuration
  • PUBLIC_WALLETCONNECT_* - WalletConnect configuration
  • FARCASTER_ENABLED - Farcaster integration flag
  • SWR_KEYS - Standardized SWR cache keys
  • LAYERS - Z-index layer constants for UI
  • MESSAGES - Standard error and info messages

Type Safety

All addresses are typed using AddressType from @buildeross/types, ensuring type safety across the application. Chain IDs use the CHAIN_ID enum for consistent chain identification.

Environment Support

The package automatically detects the environment using NEXT_PUBLIC_NETWORK_TYPE and provides appropriate configurations for both testnet and mainnet deployments.

License

MIT License - see LICENSE file for details.