sway
by
FuelLabs

Description: 🌴 Empowering everyone to build reliable and efficient smart contracts.

View on GitHub ↗

Summary Information

Updated 50 minutes ago
Added to GitGenius on June 9th, 2026
Created on January 19th, 2021
Open Issues & Pull Requests: 917 (+0)
Number of forks: 5,421
Total Stargazers: 61,632 (+0)
Total Subscribers: 295 (+0)

Issue Activity (beta)

Open issues: 589
New in 7 days: 3
Closed in 7 days: 1
Avg open age: 816 days
Stale 30+ days: 555
Stale 90+ days: 536

Recent activity

Opened in 7 days: 3
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 6

Top labels

  • team:compiler (1,309)
  • bug (708)
  • compiler (687)
  • compiler: frontend (573)
  • enhancement (349)
  • P: critical (236)
  • compiler: ir (153)
  • language feature (143)

Detailed Description

The fuellabs/sway repository is dedicated to the development and maintenance of Sway, a purpose-built programming language for the Fuel blockchain. Sway is designed to empower developers to create reliable and efficient smart contracts, leveraging modern language features and performance optimizations. The language draws heavy inspiration from Rust, aiming to bring its safety, expressiveness, and performance benefits to the blockchain ecosystem. By focusing on smart contract development, Sway addresses the unique requirements of blockchain applications, such as deterministic execution, security, and resource efficiency.

Sway provides a comprehensive toolchain for contract development, including a compiler, standard library, and supporting utilities. The compiler is written in Rust, ensuring robust performance and compatibility with modern development workflows. The repository includes instructions for building the Sway toolchain from source, which requires the Rust stable toolchain and proper environment configuration. Developers can use the Sway compiler to write, test, and deploy smart contracts on the Fuel blockchain, taking advantage of the language’s syntax and semantics tailored for blockchain use cases.

The repository offers extensive documentation to support both new and experienced users. The Sway Book serves as the primary resource for user documentation, covering installation, language features, and contract development workflows. Additional documentation includes the Sway standard library reference and a technical language reference, which provide detailed information about available functions, types, and language constructs. These resources are designed to facilitate onboarding and ensure that developers have access to the information needed to build robust smart contracts.

Sway’s design emphasizes reliability and efficiency, addressing common challenges in blockchain programming such as security vulnerabilities and unpredictable behavior. By adopting Rust-inspired features like strong typing, memory safety, and expressive syntax, Sway reduces the risk of common programming errors and makes it easier to write secure contracts. The language also integrates seamlessly with the Fuel blockchain, enabling developers to leverage Fuel’s high-performance transaction processing and scalability.

The repository encourages community contributions and provides guidelines for getting involved. Developers interested in contributing to Sway can find instructions and best practices in the Sway Book’s contributing section. The project welcomes improvements to the compiler, standard library, documentation, and tooling, fostering an open and collaborative development environment.

In summary, fuellabs/sway is a comprehensive repository for the Sway programming language, targeting smart contract development on the Fuel blockchain. It combines modern language design, robust tooling, and thorough documentation to empower developers to build secure and efficient blockchain applications. The repository supports both contract developers and language contributors, offering resources and guidance for building, testing, and deploying smart contracts with Sway. Its focus on reliability, performance, and community engagement makes it a valuable asset for the Fuel blockchain ecosystem and the broader blockchain development community.

sway
by
FuelLabsFuelLabs/sway

Repository Details

Fetching additional details & charts...