Skip to content

regolith-labs/solana-playground

Repository files navigation

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

You can run the client locally by cloning the repository and running the following commands in the project directory.

Setup and start the dev server:

cd client # change directory to client
yarn setup # run the setup script(only once)
yarn start # start local dev server
Recommended versions
rustc --version
# rustc 1.75.0 (82e1608df 2023-12-21)

wasm-pack --version
# wasm-pack 0.10.3

node --version
# v18.15.0

yarn --version
# 1.22.19

Contributing

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

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.