# FuelLabs/sway

🌴 Empowering everyone to build reliable and efficient smart contracts.

Repository: https://github.com/FuelLabs/sway
Canonical: https://ross.abutalabs.com/products/sway
Homepage: https://docs.fuel.network/docs/sway/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: sway, language, compiler, fuel
Last push: 2026-08-26T17:49:45+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 2052, "days_push": 7, "days_rel": 37, "gap_med": 7, "n_releases_24m": 42}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 61483, forks 5414 (observed 2026-08-28T04:12:19.028329+00:00)

## What it is
Sway is a Rust-inspired domain-specific programming language for writing smart contracts on the Fuel blockchain and Fuel VM, accompanied by Forc, a Cargo-like build and project management toolchain. The repository contains the compiler, standard library, language server, formatter, and related developer tooling.

## Use cases
- write smart contracts for the fuel blockchain
- compile sway contracts to fuel vm bytecode
- build and deploy a counter contract with forc
- develop dapps on fuel with a rust-like language
- get lsp code completion and formatting for sway
- create src-20 native asset tokens on fuel
- migrate from solidity to a modern contract language

## When to choose
- you are building smart contracts or predicates targeting the Fuel VM
- you want Rust-like ergonomics, generics, algebraic types, and unified tooling for contract development
- you need an integrated toolchain with LSP, formatter, testing, and deployment in one place

## When to avoid
- you are deploying to EVM-compatible chains where Solidity or Vyper is required
- you need a general-purpose language for non-blockchain software
- your team and tooling ecosystem are already committed to Solidity standards

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, programming-language, build-tool, formatter, linter, documentation, testing
- domain: blockchain, programming-languages, compilers, developer-tools
- platform: windows, cli, rust
- tags: sway, forc, fuel-vm, smart-contracts, blockchain-language, toolchain, lsp, solidity-alternative, linux, macos

## Member repositories
- FuelLabs/sway (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:19.028329+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-29T16:17:30.889407+00:00, confidence not recorded.
  - readme: https://github.com/FuelLabs/sway (fetched 2026-08-28T04:12:19.028329+00:00, sha 52adeaded737)
  - homepage: https://docs.fuel.network/docs/sway/ (fetched 2026-08-28T17:58:12.548332+00:00, sha e6760d78d27c)
  - site_page: https://docs.fuel.network/docs/sway/introduction/ (fetched 2026-08-28T17:58:12.557206+00:00, sha 762561c91fe1)
  - site_page: https://docs.fuel.network/docs/sway/introduction/getting_started/ (fetched 2026-08-28T17:58:12.559265+00:00, sha d3f394d18cad)
  - site_page: https://docs.fuel.network/docs/sway/introduction/fuel_toolchain/ (fetched 2026-08-28T17:58:12.561673+00:00, sha e3ef48e2ff25)
  - site_page: https://docs.fuel.network/docs/sway/introduction/forc_project/ (fetched 2026-08-28T17:58:12.564526+00:00, sha 7d038c0f3901)
  - site_page: https://docs.fuel.network/docs/sway/introduction/standard_library/ (fetched 2026-08-28T17:58:12.566877+00:00, sha d895a40d28b0)
  - site_page: https://docs.fuel.network/docs/sway/introduction/sway_standards/ (fetched 2026-08-28T17:58:12.568858+00:00, sha f3f872eb6be8)
  - site_page: https://docs.fuel.network/docs/sway/examples/ (fetched 2026-08-28T17:58:12.570546+00:00, sha d26f2473f3c9)
  - site_page: https://docs.fuel.network/docs/sway/examples/counter/ (fetched 2026-08-28T17:58:12.572127+00:00, sha 9877fc14ec11)
- Data as of 2026-08-30T08:39:29.467469+00:00.
