Web frameworks
Web frameworks in the Carbium Library: 15 working Solana examples, among them Node outbound HTTP proxy agent and Vite Buffer-free RPC reads.
- Node outbound HTTP proxy agent I0101
Route @solana/kit RPC calls through an HTTP proxy with Node 24's proxy environment variables, and confirm the tunnel from a local CONNECT proxy.
- Vite Buffer-free RPC reads I0100
Read SOL and token balances in a Vite page and decode token account bytes with atob and DataView, so no Buffer polyfill is needed.
- Vue account data composable I0098
A server-side account reader with the Vue composable around it: lamports, owner and raw data for one address, or up to 100 in a single call.
- Socket.IO transaction status rooms I0096
A room per signature pushes each lifecycle state of a transaction (processed, confirmed, finalized, failed or unseen) to every socket watching it.
- Next.js hydration-safe balances I0103
Render one balance snapshot on the server and again on the client so a Next.js page hydrates without a mismatch, with lamports kept as a string.
- Hono server-sent account events I0064
Fan one Carbium accountSubscribe out to many browsers as server-sent events from Hono, with a snapshot first and the slot as the event id.
- NestJS CommonJS RPC module I0062
Fix the CommonJS error on Solana TypeScript packages in NestJS with an async provider that loads the Carbium RPC client once at boot and injects it.
- Angular RPC service I0061
Keep the Carbium key out of an Angular production bundle: a fetch-handler proxy with a method allowlist and an undecorated kit service built by useFactory.
- React token balance provider I0060
A loader that returns a wallet's SOL and SPL token balances per mint, summing every token account, for the React context that holds the balance.
- GraphQL dApp data API I0038
A GraphQL-style endpoint in front of Carbium RPC that batches account reads into one getMultipleAccounts call and answers a dApp page in one request.
- Next.js server component reads I0037
Read a wallet's SOL and token balances through Carbium from a Next.js server component, with the key kept on the server.
- React post-confirm balance refresh I0036
Wait for a confirmed signature over WebSocket, then re-read the wallet balance pinned to that slot, so a React screen never shows the old number.
- Next.js live mint counter I0035
Read a Candy Machine account through Carbium and stream the remaining item count to a Next.js mint page over server-sent events.
- Node WebSocket proxy I0034
A Node server that holds your Carbium key, accepts browser WebSocket connections, and relays subscription messages to Carbium with a method allowlist.
- Svelte wallet button I0003
Svelte wallet button: connect through the Wallet Standard and show a SOL balance kept live by Carbium RPC and WebSocket, using Solana Kit.