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
🏠 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,630
TypeSOL v0.50.0 is out, and it brings Percolator v16, complete in TypeScript: all 50 instructions of the multi-asset perpetuals engine and its program, batches and matcher trades included. Anatoly's own Rust test suite ran unfiltered on a build of his source and on the port, every transaction compared: 2,324,990 of 2,324,991 identical, down to every account's bytes. The other is a force-close the reference runs out of compute on. The port finishes it. Across the identical successes the port used about half the compute units, and not one cost more. Also new: getReturnData, copyData and pinocchio-style panics for native ports.
2
3
100
Zero copies per instruction, now in the runtime itself. Great work. TypeSOL's generated code works in the same spirit: account data is read where the loader puts it, one pointer per account, no deserialize step. A field read is a load at an offset, and whatever a CPI changes in lengths, lamports or owners is seen without copying anything back. Deeper CPI nesting comes next, and composable programs written in TypeScript are ready for the extra room.
Account data direct mapping activates on mainnet today at epoch 1097, ~21:50 UTC. Kudos to the runtime team. Four years, three gates, zero copies per instruction. 🧵
3
121
Concentrated liquidity with limit orders on top is one of the harder programs on Solana. Raydium CLMM has both, and its TypeScript port runs the whole lifecycle: open an order on a tick, add to it or take part back, let a swap cross the tick and fill it, settle, close. The test runs Raydium's own binary, dumped from mainnet, beside the port, and requires the same outcome, account bytes and events after every step, refusals included. That's the bar for TypeScript on Solana.
1
70
Rewriting an Anchor program usually comes with a migration: a new account layout, a script that moves every account, a window where both versions exist. TypeSOL can skip that step. Mark an account struct with the borsh layout and it is stored exactly as Anchor stores it, Strings, Vecs and Options included, so a TypeSOL program reads and writes the accounts the Anchor program already created. Zero-copy accounts and renamed discriminators are covered too. The compiler's tests check it byte for byte against an Anchor twin, switching programs in the middle of a sequence.
3
80
Tokenized stocks need more than a mint: transfer rules, a permanent delegate, accounts frozen by default, metadata on the mint itself. That's what Token-2022's extensions are for. In TypeSOL each of those is one field in one object when the mint is created, and paying with a hooked mint is a single call that resolves the hook's extra accounts. The programs behind the next wave of tokenized assets can be written in TypeScript.
$33 billion of tokenized stocks today, $300 trillion to go
2
80
A Solana account has a fixed size until something resizes it, so a list in account data is a real decision. TypeSOL gives you three and names the trade-off. FixedArray when there are always N elements. FixedVec when the count varies up to a known maximum, rent paid up front. Vec when there's no useful maximum: every push grows the account and the payer tops up the rent. Every get and set is bounds-checked, and filter, map and reduce chained together compile to a single loop that stores nothing.
1
84
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
4
104
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
67
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
182
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
191
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
416
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
169
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
98
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