create-encrypted-solana-app
v1.0.0
Published
An easy way to start an <encrypted> app with Arcium on Solana
Maintainers
Readme
create-encrypted-solana-app
The fastest way to get started building encrypted Solana applications with Arcium.
Features
- Full-stack scaffolding: Creates both Anchor program and Next.js frontend
- Wallet integration: Pre-configured Solana wallet adapter
- TypeScript support: Full TypeScript setup for both program and frontend
- Arcium ready: Structured for encrypted/confidential computing integration
- Modern tooling: Tailwind CSS, ESLint, Prettier configured
Usage
pnpm create encrypted-solana-appOr with npm (use @latest to ensure you get the newest version):
npm create encrypted-solana-app@latestInteractive Setup
The CLI will prompt you for:
- Project name: Name of your project directory
- Program name: Name of your Solana program (snake_case)
- Framework: Program framework selection (Anchor only for now)
- RPC URL: Solana RPC endpoint (defaults to devnet)
Generated Project Structure
my-encrypted-app/
├── programs/
│ └── my_program/ # Anchor program
│ ├── src/lib.rs
│ ├── Cargo.toml
│ └── tests/
├── app/ # Next.js frontend
│ ├── src/
│ │ ├── app/
│ │ ├── components/
│ │ └── hooks/
│ ├── package.json
│ └── tailwind.config.js
├── Anchor.toml # Anchor configuration
├── package.json # Workspace configuration
└── README.mdQuick Start
After creating your project:
cd my-encrypted-app
# Install dependencies
npm install
# Build the program
anchor build
# Start local validator (in separate terminal)
solana-test-validator
# Deploy program
anchor deploy
# Run tests
anchor test --skip-local-validator
# Start frontend
npm run devPrerequisites
Next Steps
- Implement your program logic in
programs/[program-name]/src/lib.rs - Connect the frontend by updating
app/src/components/ProgramInteraction.tsx - Add Arcium integration for encrypted operations
- Write tests for your program functionality
