A web-based development environment for testing and interacting with Solana programs built with the Anchor framework.
AnchorLabs provides a graphical interface for developers to interact with their Anchor programs without writing client-side code. Upload your IDL, connect your wallet, and execute instructions directly from your browser.
- Initialize programs by uploading Anchor IDL files
- Support for multiple Solana clusters (mainnet, devnet, testnet, localnet)
- Automatic program detection and configuration
- Persistent program state across sessions
- View all accounts associated with your program
- Fetch and display account data with automatic deserialization
- Filter accounts by type
- Copy account addresses and data
- Interactive forms for all program instructions
- Automatic form generation based on IDL definitions
- Support for complex account resolution and constraints
- Account derivation for PDA (Program Derived Addresses)
- Wallet integration for transaction signing
- Transaction result viewing with signature links
- View recent transactions
- Direct links to Solana explorers
- Transaction status tracking
- Next.js 15 with App Router
- React 18
- TypeScript
- Anchor/Solana Web3.js
- Zustand for state management
- Tailwind CSS with shadcn/ui components
- Solana Wallet Adapter
npm install
# or
yarn install
# or
pnpm installnpm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 in your browser.
- Navigate to the home page
- Upload your Anchor IDL JSON file
- Configure your RPC endpoint and cluster
- Connect your Solana wallet
- Click "Initialize Program"
- Go to the Instructions page
- Select an instruction from your program
- Fill in the required parameters
- The system will automatically resolve account constraints
- Sign the transaction with your wallet
- View the transaction result
- Navigate to the Accounts page
- Browse all accounts by type
- Click on an account to view its data
- Copy account addresses or data as needed
The application uses Zustand with persistence middleware to maintain program state. Program details, including the IDL and configuration, are stored in browser localStorage and automatically restored on page reload.
AnchorLabs automatically handles:
- PDA derivation based on seeds defined in the IDL
- Account constraint resolution (mut, signer, init, etc.)
- Associated token account creation
- System program and token program references
Default commitment level is set to "confirmed". You can configure:
- Custom RPC endpoints
- Commitment levels (processed, confirmed, finalized)
- Connection timeout settings
This project is licensed under the MIT License.
Contributions are welcome. Please open an issue or submit a pull request.
