# solana-foundation/program-examples

A repository of Solana program examples

Repository: https://github.com/solana-foundation/program-examples
Canonical: https://ross.abutalabs.com/products/program-examples
Language: TypeScript
License: MIT
License Family: permissive
Topics: hacktoberfest, anchor, anchor-lang, blockchain, solana, web3, native-solana, solana-programs
Last push: 2026-08-26T16:51:02+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1524, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1425, forks 536 (observed 2026-08-28T04:04:41.545962+00:00)

## What it is
An official collection of Solana onchain program (smart contract) examples written in Anchor, Pinocchio, and native Rust. Each example is provided in multiple implementations with build and test instructions using pnpm.

## Use cases
- learn how to write Solana smart contracts
- find example Solana programs for common tasks
- compare Anchor vs native Rust Solana program implementations
- get a hello world Solana program template
- learn how to store account data on Solana
- study Solana program testing with litesvm

## When to choose
- you are learning Solana onchain program development
- you want reference implementations in Anchor, Pinocchio, or native Rust
- you need starting code for a Solana program task like account data or tokens

## When to avoid
- you need a production-ready application rather than example code
- you are looking for client-side wallet or dApp frontend tooling
- you need non-Solana blockchain development resources

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, documentation, sdk
- domain: blockchain, developer-tools, tutorials
- platform: rust, cross-platform
- tags: solana, anchor, pinocchio, smart-contracts, web3, code-examples, blockchain-development, typescript

## Member repositories
- solana-foundation/program-examples (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.545962+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-30T04:37:32.280118+00:00, confidence not recorded.
  - readme: https://github.com/solana-foundation/program-examples (fetched 2026-08-28T04:04:41.545962+00:00, sha 37c9dc341100)
- Data as of 2026-08-30T08:39:29.467469+00:00.
