Full lesson
testship
Test Anchor programs without writing tests
What it does
From the project README:
[](https://www.npmjs.com/package/@blockchain-hq/testship) [](https://www.npmjs.com/package/@blockchain-hq/testship) [](https://github.com/blockchain-hq/testship/stargazers) [](https://opensource.org/licenses/MIT)
- Original
- blockchain-hq/testship
- SuperStack fork
- Blockchains/testship @
d29a85f - Stars
- 13
- Last push (original)
- 2026-07-16
- Languages
- TypeScript, CSS, JavaScript, HTML
- Detected stack
- web3.js
- Categories
- Infrastructure & Tooling
- Licence
- MIT
- Homepage
- https://www.testship.xyz/
Architecture
134 source files. By extension: .tsx ×105, .ts ×27, .js ×2.
| Top-level directory | Source files |
|---|---|
ui | 126 |
cli | 4 |
shared | 2 |
server | 2 |
Dapp: devnet deploy pending
⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/testship/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.
Key code, explained
Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.
ui/src/hooks/useSPLToken.tsx L1–24 @ d29a85f · MIT · originalimport { useConnection, useWallet } from "@solana/wallet-adapter-react";import { useCallback, useState } from "react";import { createInitializeMintInstruction, createAssociatedTokenAccountInstruction, createMintToInstruction, createTransferInstruction, getAssociatedTokenAddress, getMint, getAccount, TOKEN_PROGRAM_ID, MINT_SIZE,} from "@solana/spl-token";import { PublicKey, SystemProgram, Transaction, Keypair,} from "@solana/web3.js"; interface TokenInfo { mint: string; decimals: number; tokenAccount?: string;- Line 6
createMintToInstruction,: Mints new tokens. The mint authority must sign. - Line 7
createTransferInstruction,: An SPL token transfer through the Token Program.
How to run, build and test
These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.
| Directory | Command | Runs |
|---|---|---|
. | npm run dev | tsx cli/index.ts |
. | npm run build | tsc && cd ui && npm run build && cd .. && chmod +x dist/cli/index.js |
. | npm run test | vitest |
ui | npm run dev | vite |
ui | npm run build | tsc -b && vite build && cp -r dist/* ../dist/ui/ |
ui | npm run lint | eslint . |
What you could build from it
- Fork the SuperStack copy and extend it within the Infrastructure & Tooling gaps listed on the idea page.
- Learn the pattern first: Building and sending transactions from a client
- Learn the pattern first: Anchor account constraints