# otter-sec/anchor

⚓ Solana Program Framework

Repository: https://github.com/otter-sec/anchor
Canonical: https://ross.abutalabs.com/products/anchor
Homepage: https://anchor-lang.com
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: solana, rust, blockchain, smart-contracts
Last push: 2026-08-21T11:16:34+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 90, longevity 100
- inputs: {"age_days": 2071, "days_push": 12, "days_rel": 68, "gap_med": 14.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5122, forks 1965 (observed 2026-08-28T04:09:10.919983+00:00)

## What it is
Anchor is the leading Rust-based framework for writing Solana programs (smart contracts), providing an eDSL, macros for security checks, and an IDL specification. It includes a CLI with workspace management and a TypeScript package for generating clients from the IDL.

## Use cases
- write solana smart contracts in rust
- build and deploy solana programs
- generate typescript clients from program idl
- test solana programs locally
- manage solana program workspaces
- reduce boilerplate and security bugs in on-chain programs
- learn solana development with tutorials

## When to choose
- you are developing Solana on-chain programs and want the most popular, well-documented framework
- you want built-in account constraints and security checks to reduce vulnerabilities
- you need IDL-based client generation for frontend integration
- you are coming from Ethereum/Solidity and want a familiar development flow

## When to avoid
- you need to write Solana programs without framework overhead or with minimal dependencies
- you are targeting blockchains other than Solana
- you prefer raw Rust with direct syscalls for maximum control

## Facets
- artifact type: framework
- maturity: stable
- function: sdk, cli, testing, build-tool, serialization
- domain: blockchain, developer-tools, web-development
- platform: rust, cli, cross-platform
- tags: solana, smart-contracts, edsl, idl, blockchain-development, typescript-client, avm, typescript

## Member repositories
- otter-sec/anchor (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:10.919983+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:02:05.347099+00:00, confidence not recorded.
  - readme: https://github.com/otter-sec/anchor (fetched 2026-08-28T04:09:10.919983+00:00, sha a97af2960fb7)
  - homepage: https://anchor-lang.com (fetched 2026-08-29T08:56:51.828309+00:00, sha f1ba6aa85546)
  - site_page: https://www.anchor-lang.com/docs/installation (fetched 2026-08-29T08:56:51.837308+00:00, sha 7af62d6401c1)
  - site_page: https://www.anchor-lang.com/docs/quickstart (fetched 2026-08-29T08:56:51.840251+00:00, sha 5dd52ea5f878)
  - site_page: https://www.anchor-lang.com/docs/quickstart/solpg (fetched 2026-08-29T08:56:51.842318+00:00, sha c5216e3a605e)
  - site_page: https://www.anchor-lang.com/docs/quickstart/local (fetched 2026-08-29T08:56:51.844533+00:00, sha 7b69ecd61643)
  - site_page: https://www.anchor-lang.com/docs/basics (fetched 2026-08-29T08:56:51.846803+00:00, sha 018e420c6641)
  - site_page: https://www.anchor-lang.com/docs/basics/program-structure (fetched 2026-08-29T08:56:51.848785+00:00, sha 2b441e389585)
  - site_page: https://www.anchor-lang.com/docs/basics/idl (fetched 2026-08-29T08:56:51.850732+00:00, sha 19b604151495)
  - site_page: https://www.anchor-lang.com/docs/basics/pda (fetched 2026-08-29T08:56:51.852572+00:00, sha cec86c70ecf9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
