@@ -3,8 +3,8 @@ id: architecture-layers
33title : Stack Layers
44kind : meta
55version : " n/a"
6- last_updated : " 2026-04-29 "
7- last_verified : " 2026-04-29 "
6+ last_updated : " 2026-04-30 "
7+ last_verified : " 2026-04-30 "
88review_cadence_days : 30
99status : stable
1010tags : ["architecture", "layers"]
@@ -14,45 +14,20 @@ tags: ["architecture", "layers"]
1414
1515The stack is organized in three primary layers with supporting components that connect horizontally.
1616
17- ```
18- ┌─────────────────────────────────────────────────────────────────┐
19- │ APPLICATION LAYER │
20- │ @bsv/simple/browser @bsv/simple/server │
21- │ (connects to browser wallet) (self-custodial agent) │
22- └────────────────────────┬────────────────────────────────────────┘
23- │ BRC-100 interface
24- ┌────────────────────────▼────────────────────────────────────────┐
25- │ WALLET BUILDER TOOLKIT │
26- │ @bsv/wallet-toolbox │
27- │ WalletStorageManager + persistence providers + Monitor │
28- └────────────────────────┬────────────────────────────────────────┘
29- │
30- ┌────────────────────────▼────────────────────────────────────────┐
31- │ FOUNDATION: @bsv/sdk │
32- │ secp256k1/r1 · hashing · Script engine · transactions │
33- │ BEEF (BRC-62) · BUMP (BRC-74) · BRC-42 key derivation │
34- │ ARC broadcaster · Chaintracks client │
35- └─────────────────────────────────────────────────────────────────┘
36-
37- Adjacent capabilities (use the BRC-100 interface or @bsv/sdk directly):
38-
39- DATA OVERLAYS P2P MESSAGING & PAYMENTS
40- @bsv/overlay @bsv/message-box-client
41- @bsv/overlay-express @bsv/authsocket
42- @bsv/overlay-topics @bsv/paymail
43- Topic Manager / Lookup Service BRC-29 payment derivation
44- SHIP/SLAP discovery BRC-103/104 mutual auth
45-
46- IDENTITY MONETIZATION
47- @bsv/auth-express-middleware @bsv/402-pay
48- BRC-31 HTTP handshake @bsv/payment-express-middleware
49- BRC-103/104 Peer framework BRC-121 HTTP 402
50-
51- TOKENS STORAGE
52- @bsv/btms @bsv/overlay-topics (UHRP)
53- @bsv/btms-permission-module Universal Hash Resolution (BRC-26)
54- BRC-48 PushDrop protocol
55- ```
17+ ![ ts-stack layers diagram showing application APIs above the BRC-100 wallet boundary, wallet builder toolkit components below it, and @bsv/sdk as the foundation] ( ../assets/diagrams/stack-layers.svg )
18+
19+ ## Adjacent Capabilities
20+
21+ These packages are not a fourth vertical layer. They sit alongside the main stack and usually connect through the BRC-100 wallet interface, ` @bsv/sdk ` primitives, or direct service APIs.
22+
23+ | Capability | Packages | What it provides | Connects through |
24+ | ------------| ----------| ------------------| ------------------|
25+ | Data overlays | @bsv/overlay , @bsv/overlay-express , @bsv/overlay-topics | Topic managers, lookup services, SHIP/SLAP discovery, and shared on-chain context | ` @bsv/sdk ` transactions, overlay services |
26+ | P2P messaging and payments | @bsv/message-box-client , @bsv/authsocket , @bsv/paymail | Store-and-forward encrypted messages, live authenticated channels, BRC-29 payment derivation | BRC-100 wallet, BRC-103/104 auth |
27+ | Identity | @bsv/auth-express-middleware , @bsv/authsocket | BRC-31 HTTP handshake and peer identity framework | BRC-100 wallet, BRC-103/104 peer framework |
28+ | Monetization | @bsv/402-pay , @bsv/payment-express-middleware | HTTP 402 payment-gated APIs and micropayment middleware | BRC-100 wallet, BRC-121 HTTP 402 |
29+ | Tokens | @bsv/btms , @bsv/btms-permission-module | Token metadata, wallet permission display context, and BRC-48 PushDrop flows | BRC-100 wallet, overlay topics |
30+ | Storage | @bsv/overlay-topics , UHRP | Universal Hash Resolution for content-addressed files | UHRP servers, BRC-26 |
5631
5732## Foundation: @bsv/sdk
5833
0 commit comments