
Security News
Socket for Origin Now Available
Socket for Origin scans dependency changes in pull requests and flags security risks based on your team’s policies. Now available in Cursor’s App Marketplace.
@tangle-network/blueprint-ui
Advanced tools
Shared blueprint UI components, hooks, and contract utilities for Tangle Network apps

Shared UI components, hooks, stores, and contract utilities for Tangle Blueprint applications.
A TypeScript/React package that provides the building blocks for blueprint UIs on the Tangle Network. The package now ships compiled ESM output plus a package-owned stylesheet so consuming apps can treat it like a normal library instead of compiling its source directly.
UI Primitives — Badge, Button, Card, Dialog, Input, Select, Separator, Skeleton, Table, Tabs, Textarea, Toggle
Forms — FormField, BlueprintJobForm (auto-generated from job definitions), FormSummary, JobExecutionDialog
Layout / App Shell — AppDocument, AppFooter, AppToaster, Web3Shell, ChainSwitcher, ThemeToggle
Shared — Identicon (blockie avatars), TangleLogo
Motion — AnimatedPage, StaggerContainer, StaggerItem
| Hook | Purpose |
|---|---|
useSubmitJob | Submit on-chain jobs with TX lifecycle tracking |
useJobForm | Generic form state derived from JobDefinition |
useJobPrice / useJobPrices | Fetch job pricing from operators |
useQuotes | Operator quote aggregation with PoW challenge solving |
useOperators | Discover active operators for a blueprint |
useServiceValidation | Check service status and permissions |
useProvisionProgress | Track provision lifecycle (events + polling) |
useSessionAuth | PASETO session management |
useAuthenticatedFetch | Fetch wrapper with automatic token refresh |
useThemeValue | Resolve theme-dependent values |
infraStore — Blueprint ID, service ID, operator infosessionMapStore — PASETO sessions per operatortxListStore — Transaction history trackingthemeStore — Light/dark theme statepersistedAtom — localStorage-backed atom with BigInt serializationtangleJobsAbi, tangleServicesAbi, tangleOperatorsAbipublicClient — Singleton viem public client tied to selected chainencodeJobArgs — ABI-encode job arguments from form values using job field metadatacreateTangleTransports, defaultConnectKitOptions, tangleWalletChains, resolveOperatorRpcUse @tangle-network/blueprint-ui for:
Keep in app-local code:
registerBlueprint / getBlueprint — Register and look up blueprint definitionsJobDefinition — Declarative job schema with field types, ABI metadata, and categoriesnpm install @tangle-network/blueprint-ui
# or
pnpm add @tangle-network/blueprint-ui
Package: https://www.npmjs.com/package/@tangle-network/blueprint-ui
Automated npm publishing is configured via GitHub Actions with npm Trusted Publishing (OIDC):
.github/workflows/publish-npm.ymlblueprint-ui-vX.Y.Zworkflow_dispatch with version inputNo long-lived npm token is required once trusted publishing is configured.
Release flow:
package.json version.blueprint-ui-v<same-version>.npm publish --provenance --access public.Trusted publishing setup (one-time in npm):
@tangle-network/blueprint-ui.tangle-networkblueprint-uipublish-npm.ymlIf npm does not allow configuring trusted publishing before first publish, do a one-time bootstrap publish with a short-lived token, then switch to trusted publishing and delete the token.
import '@tangle-network/blueprint-ui/styles.css';
// Import hooks and utilities from the main entry
import {
useSubmitJob,
useJobForm,
encodeJobArgs,
discoverOperatorsWithClient,
} from '@tangle-network/blueprint-ui';
// Import UI components from the /components entry
import { Button, Card, FormField } from '@tangle-network/blueprint-ui/components';
The package exports compiled files from dist/, so consumers do not need TypeScript-in-node_modules support anymore.
Import the package stylesheet once near your app entry:
import '@tangle-network/blueprint-ui/styles.css';
That stylesheet provides:
glass-card, font-display, and font-data--bp-* tokens to cloud tokens by defaultIf you want the generic shared components to follow a different token family, you can either set the --bp-* variables directly or scope them with one of the helper classes:
<div className="bp-tone-arena">
<SomeBlueprintUiComponent />
</div>
@tangle-network/blueprint-ui/styles.css and stop scanning package source from the consumer app.src/ is still published for now, and blueprintUiContentGlobs remains available for apps migrating off the old source-scanning setup.blueprint-ui source.React 19, wagmi 3.x, viem 2.x, nanostores, Radix UI primitives, framer-motion, sonner, tailwind-merge, class-variance-authority. See package.json for the full list and version ranges.
Licensed under either of Apache License, Version 2.0 or MIT license, at your option.
Blueprint UI is a TypeScript/React component library for building user interfaces that interact with Tangle Network blueprints. It provides pre-built components for operator management, service requests, job submission, and payment flows.
Tangle Network is a decentralized infrastructure protocol where operators stake economic collateral to run verifiable services called blueprints.
x402 is an HTTP-native micropayment protocol that enables per-request payments for blueprint services, integrated into the UI through payment hooks and components.
Blueprint is a deployable service specification on Tangle that defines computation, verification, and payment in a single package.
What is @tangle-network/blueprint-ui? A React component library providing UI primitives, hooks, and contract utilities for building applications on Tangle Network.
Do I need to build this package before using it?
No. Published consumers use the compiled dist/ output. Only this repo itself needs to run the build before publish.
What framework does blueprint-ui support? React with TypeScript. Components use Radix UI primitives and Tailwind CSS for styling.
How do I connect to Tangle contracts? Use the provided contract hooks and ABI utilities. The package includes typed bindings for Tangle's on-chain service registry, operator staking, and job submission.
Can I use blueprint-ui for x402 payment flows? Yes. The hooks and utilities support x402 payment header construction for per-request micropayments to blueprint operators.
FAQs
Shared blueprint UI components, hooks, and contract utilities for Tangle Network apps
The npm package @tangle-network/blueprint-ui receives a total of 28 weekly downloads. As such, @tangle-network/blueprint-ui popularity was classified as not popular.
We found that @tangle-network/blueprint-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.

Security News
Socket for Origin scans dependency changes in pull requests and flags security risks based on your team’s policies. Now available in Cursor’s App Marketplace.

Security News
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.