TypeSOL (@Type_SOL) header
TypeSOL (@Type_SOL) profile picture

Write Solana programs in TypeScript. Compiles to native SBF with an Anchor-compatible IDL. ca: Fek7BGWxw9MabKejxFdhEftygFkJXcQjezk99fkTmKaX

Solana
Joined October 2026
Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)Photo by TypeSOL (@Type_SOL)
🏠 TypeSOL has a new home on GitHub Our GitHub account was suspended on Nov 2, most likely by GitHub's automated protection: our CI/CD ran a lot of test runs, merges and releases in a short time. We're not alone here, lately many developers have reported the same on Reddit and GitHub's community forum. We contacted GitHub Support and haven't heard back yet. Development didn't stop, so we moved everything to a new organization: github.com/typesol-lang What moved • typesol, benchmarks and the org profile, with their full history • All 32 release tags • typesol.com, the docs and the playground now link to the new home What didn't change • npm: same package, the TypeSOL CLI, installs and works as before • typesol.com and everything on it Once the original account is restored, the repositories move back to it, and we'll say so here first. If you starred the old repo, a star on the new one helps a lot.
7
4
2
34
2,539
AMM math is where Solana programs overflow: the product of two prices, a liquidity sum, the square root of a reserve. TypeSOL has the pieces built in. mulDiv computes a × b ÷ c without overflowing the product, mulDivCeil rounds up, isqrt takes the integer square root, and u256 is there for sqrt-price and liquidity math, every operator checked. Meteora's bonding curve port runs its math on exactly these and fails with the original's error codes. Raydium's concentrated-liquidity port uses them too.
1
3
69
Read the list: housing futures, an open marketplace for AI inference, entertainment finance, security for agents. Each one is an app with an onchain program underneath. The people most likely to build the app already write TypeScript. With TypeSOL they write the program too, in the same language, with an Anchor-compatible IDL, and the compiler checks every account before the body runs. Time to build.
it's time to build here are some ideas worth building from @solana's request for startups: solana.com/request-for-start…
2
51
An NFT can carry its own rules on Solana. With Metaplex Core, an Oracle plugin lets an oracle account approve or reject a transfer, and AppData keeps data on the asset that only its data authority can write. In TypeSOL both are plain objects handed to the Core program's methods: what kind, which address, which events it checks. The compiler's tests run them through Metaplex Core's own program and read the asset's bytes to confirm what landed. NFTs with logic, written in TypeScript.
2
1
6
167
Solana has a vocabulary: accounts, signers, PDAs, rent, CPIs, return data. Learning it is the real work of a first program. In TypeSOL each of those words is a type or a call you write in TypeScript. Mut<Vault> for writable, Seeds<…> for a PDA, create() for rent, remainingAccounts() for the accounts after the declared ones. The compiler checks what each one says before your code runs, and every card has an Anchor equivalent if that's where you're coming from. Learn the chain. Keep the language you already write.
3
2
4
183
Agents that pay, own and trade on Solana will need programs to do it through. TypeScript is what coding agents already write well, and with TypeSOL it's also the language of the program: native, with Anchor's IDL. typesol init puts the rules in the project, typesol mcp gives an agent check, IDL and docs as tools, and every common mistake comes back with a hint for what to write instead. Start building.
2
2
7
407
A Solana program can't trust anything a transaction carries. The sender picks the instruction data, which account sits in which slot, whether one account fills two, the remaining accounts, and what a program it calls sends back. TypeSOL's security model writes down what the compiler guarantees about each of those, for every instruction of every program it accepts. Arguments are length-checked before they're read. Every parameter is checked for what its type says before the body runs. Two writable parameters are never the same account. Every integer operation is checked, in every build. It also lists what stays yours: the logic, unchecked accounts, an oracle price's sign and confidence. Nothing left to guess.
1
3
167
C doesn't promise JavaScript's evaluation order. A compiler from TypeScript to C has to keep it anyway, or your program means something else on chain. TypeSOL's architecture doc lists eight rules its generated code keeps. Operands run in JavaScript's order. A reference into account data stays a pointer, and code that would leave it stale doesn't compile. Every buffer write after a variable-size piece is bounds-checked. Old stack bytes never reach an account or a log. Easy to break, so each one has tests.
1
2
97
The time to build is now, and TypeScript developers can build too. TypeSOL compiles TypeScript to native Solana programs with Anchor's IDL and error codes. Raydium, Phoenix, Marginfi, Meteora's bonding curve and Percolator are already ported, open source in the repo.
There's a huge amount of potential on Solana Solana is the only chain that has scaled, integrated, and built enough to be the critical infrastructure for finance The time to build is now
1
2
3
149
Solana programs can return values, and in TypeSOL that's just a return statement. An instruction that returns a struct sends it as return data. The calling program reads it back with returnData<Level>(prices): the size has to match the struct and it has to come from the program you named, or the call fails before a single field is read. It's Anchor's get_return_data with the type attached, and the IDL lists it so the generated client decodes it too.
1
4
112
Most compilers grow an intermediate representation early. TypeSOL lowers the checked TypeScript straight to C and lets clang optimize it, and the design review kept it that way. The reason is one property every release relies on: a program that doesn't use a change compiles to the same binary. A false refusal is a compile error, never a wrong program. The doc also says what would change the decision: a second backend, or an optimization that pays its way in benchmarks.
1
2
3
110
Market structure without CU metering, enforced by one read-only account. In this proposal a venue's Fill requires the delay account, and since a taker has to list every account its CPIs touch, every route carries it. In a TypeSOL program that requirement is one parameter type: Address<AccountInfo, "DELAY…">, read-only and checked before the body runs.
1
3
81
Where does your Solana program spend its compute? Build with typesol build --profile and every statement logs its line and the units left. Hand one transaction's logs to typesol profile and you get compute units per TypeScript line, most expensive first, with CPIs counted to the line that made them. Failures point at your code too: a failed check logs the TypeScript line it came from.
1
1
2
61
Worth reading before it reaches mainnet. Two items on that list are refused up front in a TypeSOL program: writing to an account that wasn't passed writable fails the instruction before the write, and account reads are bounds-checked. The guide's LiteSVM route is also the runtime typesol/testing already runs your program in.
Post-Breakpoint feature gate activations are back on the menu today 🧑‍🍳 Solana devs, direct mapping is a breaking change heading for mainnet activation this cycle. github.com/anza-xyz/agave/wi…
2
3
112
Creating an account on Solana takes six steps: derive the address, check it, fund the rent, allocate, assign, write the discriminator. In TypeSOL it's one create call on an Init<T> parameter, and it hands back the bump. InitIfNeeded<T> creates once and checks the account on every call after. Zeroed<T> takes an account the client allocated, up to 10 MiB.
2
2
4
161
Not every instruction knows its accounts in advance: a route through several pools, a payout to a list of wallets. In TypeSOL, remainingAccounts() gives you the rest, and loadAccount<T> turns any of them into a checked view, with the same owner, discriminator and size checks a declared Account<T> gets. loadForeign does it for another Anchor program's account, and the whole list spreads straight into a CPI.
1
98