Home
Softono

Solana Playground

Open source Apache-2.0 Rust
938
Stars
424
Forks
129
Issues
42
Watchers
2 months
Last Commit

 About Solana Playground

Quickly develop, deploy and test Solana programs from browsers

Platforms

Web Self-hosted

Languages

Rust

Need Help Installing Solana Playground?

We provide expert installation service for this software. Our team will install, configure, and secure Solana Playground on your server. plans start at just $30.

Solana Playground

View on GitHub

Solana Playground

SolPg allows you to quickly develop, deploy and test Solana programs(smart contracts) from browsers.

Supported crates

Crate Version
anchor-lang 0.29.0
anchor-spl 0.29.0
arrayref 0.3.7
borsh 0.10.3
borsh-derive 0.10.3
bytemuck 1.14.0
bytemuck_derive 1.5.0
mpl-bubblegum 1.0.0
mpl-token-auth-rules 1.4.3
mpl-token-metadata 3.2.3
num-derive 0.4.0
num-traits 0.2.16
pyth-sdk 0.8.0
pyth-sdk-solana 0.8.0
serde 1.0.193
solana-program 1.16.24
spl-account-compression 0.2.0
spl-associated-token-account 2.2.0
spl-pod 0.1.0
spl-tlv-account-resolution 0.4.0
spl-token 4.0.0
spl-token-2022 0.9.0
spl-token-metadata-interface 0.2.0
spl-transfer-hook-interface 0.3.0
spl-type-length-value 0.3.0
switchboard-solana 0.29.79
switchboard-v2 0.4.0
thiserror 1.0.48

You can open an issue to request more crates.

Note: Playground is still in beta and everything is subject to change.

Run locally

Recommended versions
node --version
# v22.20.0

yarn --version
# 1.22.22

Run with Docker

The project can be built and run entirely via Docker Compose.

All services run as linux/amd64 containers (Solana/Agave does not ship Linux ARM64 binaries). This works on any platform with Docker: Linux natively, macOS via OrbStack or Docker Desktop, and Windows via WSL2 or Docker Desktop.

# Copy and customize environment variables
cp .env.example .env

# Full stack — development (watch mode, but without volumes to mount local src directory into running container)
docker compose --profile dev up --build

# Full stack — production (static build)
docker compose --profile prod up --build

# Client only
docker compose up client-standalone --build

# Server + DB
docker compose --profile dev up server --build

# Server only
docker compose up server-standalone --build

# Client:  http://localhost:3000
# Server:  http://localhost:8080

To stop and clean up:

# Stop services
docker compose down

# Stop and remove database volume
docker compose down -v

Contributing

Anyone is welcome to contribute to Solana Playground, no matter how big or small the contribution.

See Contribution Guidelines.

License

Public libraries (e.g. solana-client-wasm, solana-extra-wasm) are licensed under Apache-2.0, and the rest are licensed under GPL-3.0.