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

@caatinga/core

v0.2.2

Published

Core config, artifacts, command orchestration, and error primitives for Caatinga/Soroban toolkit

Downloads

470

Readme

@caatinga/core

Core config, artifacts, command orchestration, and error primitives for the Caatinga / Stellar Soroban toolkit.

Supported use

@caatinga/core is primarily an internal package for @caatinga/cli and official templates. Direct use beyond the documented config and template surface is advanced and less stable than the CLI contract.

Most applications should install @caatinga/cli or @caatinga/client instead of depending on core directly.

What is in this package

Config and networks

  • defineConfig for caatinga.config.ts in generated projects
  • loadConfig, CaatingaConfigSchema, and related types
  • WELL_KNOWN_NETWORKS, resolveNetwork

Artifacts

  • readArtifacts, writeArtifacts, createInitialArtifacts, updateArtifact
  • CaatingaArtifactsSchema and artifact types (caatinga.artifacts.json, schema version 1)

Contracts and Stellar CLI orchestration

  • buildContract, deployContract, deployContractGraph
  • buildDependencyGraph, resolveDeployOrder, resolveDeployArgs
  • generateBindings, invokeContract, parseInvokeTarget
  • resolveContract, parseContractId
  • Stellar CLI version constants and guards (STELLAR_CLI_MIN_VERSION, STELLAR_CLI_TESTED_MAX_VERSION, assertSupportedStellarCliVersion)

Templates

  • createProjectFromTemplate and TemplateManifestSchema
  • compatibility checks against CAATINGA_CORE_VERSION and template manifests

Shell and errors

  • runCommand, checkBinary
  • CaatingaError, CaatingaErrorCode, toCaatingaError
  • CAATINGA_CORE_VERSION

Intended config surface

Generated projects import defineConfig from @caatinga/core:

import { defineConfig } from "@caatinga/core";

export default defineConfig({
  project: "my-dapp",
  defaultNetwork: "testnet",
  contracts: {
    counter: {
      path: "./contracts/counter",
      wasm: "./contracts/counter/target/wasm32v1-none/release/counter.wasm"
    }
  },
  networks: {
    testnet: {
      rpcUrl: "https://soroban-testnet.stellar.org",
      networkPassphrase: "Test SDF Network ; September 2015"
    }
  },
  frontend: {
    framework: "vite-react",
    bindingsOutput: "./contracts/generated"
  }
});

Multi-contract projects may declare dependsOn and ${contracts.<name>.contractId} placeholders in deployArgs; deployContractGraph resolves and deploys dependencies before dependents.

Consumer guidance

| Goal | Package | | --- | --- | | End-user CLI workflow | @caatinga/cli | | Browser / Node client over generated bindings | @caatinga/client | | caatinga.config.ts in a Caatinga project | defineConfig from @caatinga/core | | Custom tooling on deploy graphs, artifacts, or Stellar CLI orchestration | @caatinga/core (advanced; track releases closely) |

Error codes

Core owns the canonical CAATINGA_* enum used by CLI, client, and templates. Automation should match on codes, not message text.

Common codes surfaced through core-backed commands:

  • config and artifacts: CAATINGA_CONFIG_NOT_FOUND, CAATINGA_INVALID_CONFIG, CAATINGA_ARTIFACT_NOT_FOUND, CAATINGA_ARTIFACT_INVALID
  • Stellar CLI: CAATINGA_STELLAR_CLI_NOT_FOUND, CAATINGA_UNSUPPORTED_CLI_VERSION, CAATINGA_UNTESTED_CLI_VERSION
  • contracts: CAATINGA_BUILD_FAILED, CAATINGA_DEPLOY_FAILED, CAATINGA_BINDINGS_FAILED, CAATINGA_INVOKE_FAILED
  • dependencies: CAATINGA_CONTRACT_DEPENDENCY_NOT_FOUND, CAATINGA_CONTRACT_DEPENDENCY_CYCLE, CAATINGA_DEPLOY_ARG_PLACEHOLDER_UNRESOLVED
  • templates: CAATINGA_TEMPLATE_MANIFEST_NOT_FOUND, CAATINGA_TEMPLATE_INCOMPATIBLE

Full table: docs/errors.md

Stability posture

Being published does not make every export a first-class end-user contract. Stable consumer surfaces are:

  • the documented CLI workflow in @caatinga/cli
  • the documented @caatinga/client APIs
  • the narrow @caatinga/core config/template surface used by generated projects, including defineConfig

Direct @caatinga/core usage should be treated as advanced integration with a narrower support posture than the CLI package.

Further reference: architecture, config, templates.