Library / SDK
Vectorized/solady avatar
Vectorized/solady

solady: two install routes resolve to different code, and a compiler ceiling in a badge

Optimized Solidity snippets.

3,401 stars502 forksSolidityMIT

At a glance

What is it?
solady is a set of gas-optimised Solidity snippets distributed both as a registry package and as a repository you install with the Foundry tool. The two routes hand you different versions more than a year apart, the compiler range lives in a badge rather than in prose, and the one instruction that matters at deployment time names no method.
Who is it for?
solady fits a Foundry-based project that wants small, cheap contracts and reads the source rather than the published package. Verify four things before you depend on it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 36 days ago.
What is it written in?
Mainly Solidity, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • Vectorized/solady3,401 ★ · +25
Star history
Repository2026-09-242026-11-24
Vectorized/solady3.4k3.4k

25 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Two install routes resolve to different code

The Foundry route installs the repository, so you get whatever the default branch holds, which is what was last pushed in September. The Hardhat route installs a package from the registry, which resolves to the newest published version, and that version's tag is from the previous August.

sh
forge install vectorized/solady
sh
npm install solady

So a Foundry user and a registry user working from the same instructions are running code more than a year apart, and neither is told. The registry package also publishes a deliberately narrow set of files: the Solidity sources and the JavaScript helper directory, nothing else. Tests, the extra directory, the preprocessing scripts and the audit reports are all outside what gets published, so a registry consumer cannot read the evidence for the claims the safety section makes.

The compiler ceiling lives in a badge

The supported compiler range appears once, as a badge, and it reads as a floor and a ceiling with no prose explaining either. The safety section then says that parts of the library may break in future Solidity versions. Those two statements are the same fact said twice in different registers, and the badge is the more precise of the pair: the range is a hard ceiling, not a target, so a project moving to a newer compiler will not be covered. Two details about how the badge is built are worth noting. Its colour is appended as a raw hexadecimal value in the badge service's own query string, so it is a hand-assembled badge rather than one of the standard presets. And its link target is a continuous integration workflow, so clicking the version badge runs you somewhere that is not a version listing.

The one deployment-critical instruction names no method

The upgradeability section is four sentences and contains the only warning in the file that will cost you money if you ignore it. It says most contracts work in both upgradeable and non-upgradeable form, and it says to call any required internal initialisation methods accordingly. The problem is entirely in the last phrase. The file never names a method, never says which contracts need one, and never says what happens if you skip it. So a reader who follows the instruction precisely still cannot, because the instruction has no content to follow. Everything else the file warns about is a matter of testing your own code; this one is a matter of knowing a function name, and it is the function name the file omits.

Compatibility is a score, and the substitutes live in a directory called extra tests

There is a dedicated section for chains with partial equivalence, and it is the most mechanical part of the file. You run a script from the preprocessing directory, it scans the files and produces a score, and anything with a non-zero score is incompatible. You are then directed to look for a substitute in a subdirectory of the one the file's own directory listing describes only as extra tests. That description is wrong for what is inside it: the substitutes are replacement contracts, not tests. The file is also candid that each substitute may carry only a subset of the original features, and that where no substitute exists the contract is described as infeasible for that chain. So the compatibility story is a script, a numeric score, a set of partial replacements, and an admission that some things cannot be done.

Six directories documented, eight present

The directory listing names six directories and describes each in a few words. The actual root has eight directories, so two are unlisted, one of which is where the documentation lives. The listing also omits every non-directory file, which is where the two most consequential ones live: the Foundry configuration that the recommended install route depends on, and a funding manifest that the file never mentions. So the section that exists to orient a reader is both incomplete and silent about the one file that decides whether the recommended route works. The tree it does describe is coherent, and the distinction it draws between the Solidity sources, the Foundry tests, the JavaScript helper library, the extra material, the preprocessing scripts and the audit reports maps onto how the project is actually laid out.

Heavily tested, next to an audit folder nobody links

The safety section asserts that the library has been heavily tested and then hedges in three directions at once: it may exhibit unexpected emergent behaviour when combined with other code, it may break in future compiler versions, and it asks you to include your own thorough tests. There is no test count, no coverage figure and no pass rate. Meanwhile the repository root contains a directory of audit reports, and not one is named, dated or linked anywhere in the visible file. That directory is also outside what the registry package publishes, so a consumer installing from the registry cannot reach the audits at all. So the evidence for the strongest claim in the safety section exists, is reachable in one distribution route, is undocumented in the other, and is never cited in the text.

Contribution guidelines that live in a tracker issue

The contributing section is three sentences and points you at an issue for the actual rules. There is no contributor file in the repository root. That is a deliberate choice and a defensible one for a project whose contribution surface is a pull request against a snippet library, but it means the rules are versioned by tracker rather than by commit. The section also states the project's purpose more plainly than anything else in the file: it describes itself as a laboratory for snippets that may be merged into a different library. Read strictly, that is a staging area, not a finished product, which reframes the version numbers and the experimental label together. The file opens with an empty heading and carries a line of elongated vowels under the tagline, both of which suggest the front page is edited quickly.

Six upstreams, two of which are themselves ports

The acknowledgements name six sources as things the repository is inspired by or directly modified from. Two of those six are themselves ports of earlier gas-optimised libraries, so the chain of provenance runs further back than six entries suggests. The phrasing matters for anyone auditing a specific file: directly modified from is not the same as inspired by, and a repository assembled from six upstreams under one permissive licence inherits its obligations file by file rather than as a single body of work. The registry manifest is thin in the same spirit. It has no scripts, no dependencies of any kind, and no repository directory or issue-tracker field, and it is a Solidity library that ships a TypeScript declaration file for its JavaScript helper. A lockfile is committed beside it for a package with nothing to lock.

Editorial conclusion

solady fits a Foundry-based project that wants small, cheap contracts and reads the source rather than the published package. Verify four things before you depend on it. Decide which route you are on, because one gives you the default branch and the other gives you a registry build whose last tag predates the last commit by over a year. Check the compiler range, which is expressed as a badge rather than a sentence and is a ceiling rather than a target. Read the upgradeability note properly, because it tells you an initialisation step is required and then declines to say which one, and that is the step that silently breaks a proxy. And if you are deploying to a chain with partial equivalence, run the compatibility scanner first rather than reading the contract names.

Frequently asked questions

What is Vectorized/solady?

A collection of gas-optimised Solidity snippets, described as a laboratory for experiments that may later be merged into a different library. It ships account-abstraction implementations and libraries for the recent account and batch-execution standards, plus utilities for token transfers, ownership, maths and more, with both upgradeable and non-upgradeable forms.

How do I install solady?

Two ways. The Foundry route installs the repository directly and gives you the default branch. The Hardhat route installs a package from the registry and gives you the last published version. The newest release tag predates the most recent commit by over a year, so the two commands produce code that can differ substantially.

Which Solidity versions does solady support?

The range appears as a badge rather than as prose, reading as a floor and a ceiling, and the safety section separately warns that parts may break in future compiler versions. Taken together the range is a ceiling rather than a target, so a project moving to a newer compiler falls outside what the project claims to cover.

Does solady support upgradeable contracts?

Most of its contracts are described as compatible with both upgradeable and non-upgradeable forms, with the instruction to call any required internal initialisation methods accordingly. The file never names a method, says which contracts need one, or says what fails if you skip it, so the one deployment-critical instruction in the document has no actionable content.

Can solady be deployed on a chain with partial EVM equivalence?

Some parts, with help. The file gives a scanner to run against the source, directs you to replacements for anything scoring non-zero, and warns that replacements may carry only a subset of the original features. Where no replacement exists it says the contract is not feasible for that chain, naming a particular zero-knowledge stack and one application built on it as the case in point.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. Releases
  5. Vectorized/solady on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/vectorized-solady.svg)](https://hysenlabs.com/projects/vectorized-solady)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/vectorized-solady.svg)](https://hysenlabs.com/projects/vectorized-solady)

Was this useful?