Next-gen on-chain experience on Fogo.
Fogo Sessions is an open-source standard for Web3 app sessions on Fogo.
Fogo Sessions helps Fogo app developers to provide a great user experience to their users by:
- enabling their apps to be used with any Solana wallet (even those that don't support Fogo!)
- enabling gasless transactions. No more sending some dust to your address to rescue stranded funds!
- reducing the number of times the user needs to sign with their browser wallet. They only need to sign once to log in!
To jump straight to examples, go to here for an example program compatible with Fogo Sessions and here for an app that interacts with that example program. To run this app locally, follow the intructions in the Development section below.
Note
This is a developer preview. Non-major version bumps may contain breaking changes.
The Fogo Sessions repository requires the following toolchain versions:
nodejs@22.21.1pnpm@10.25.0rust@1.88.0python@3.14.0
For convenience, there is a .tool-versions file that contains a mapping of these tools to the correct versions.
This file works great with mise.
If you already have mise installed, simply do mise x -- pnpm i to get started.
tilt up # Starts local test validators, starts demo app
cargo-build-sbf # Build on-chain programs
pnpm turbo test # Run app tests
cargo test # Run program tests
You may need to run anchor build before running cargo test, in order to generate the compiled programs needed for some tests that load those programs in via litesvm.
