qmetrics.net

Sway

Smart contract language for the Fuel blockchain

Sway screenshot

Sway is a domain-specific language for writing smart contracts on blockchain platforms, especially the Fuel VM. It draws on Rust-style syntax and tooling while targeting blockchain execution costs and security.

Overview

Sway is a programming language for implementing smart contracts on blockchain platforms, with the Fuel Virtual Machine as its primary target. It is designed for the constraints of on-chain execution rather than general-purpose computers, so language and toolchain choices favor fast, secure, and cost-effective contracts.

The language offers generics, algebraic types, and trait-based polymorphism, along with static analysis meant to catch semantic mistakes at compile time. Documentation describes checks such as enforcing the Checks, Effects, Interactions pattern to encourage secure contract code.

Development is supported by an integrated toolchain that includes the Forc compiler, an LSP server for code completion, a formatter, and documentation generation. You can deploy contracts with the forc deploy command, run unit tests in Sway, or test programs with Fuel’s Rust and TypeScript SDKs. Local setup typically uses fuelup and an LSP-capable editor; the Sway Playground lets you edit, compile, and deploy without installing tooling first.

A standard library (std) supplies core helpers for contract development, and Sway SRC standards aim for cross-contract compatibility similar in role to ERC standards on Ethereum. The ecosystem includes example applications, native asset and NFT patterns, an experimental Solidity-to-Sway transpiler in the playground, and references to program types for contracts and libraries.

Compared with general-purpose languages, Sway adapts Rust-inspired syntax and safety ideas to blockchain economics where memory models like Rust’s borrow checker are a poor fit. Compared with Solidity, the documentation positions Sway as offering a more modern type system and a unified toolchain without tying design to EVM historical quirks.

Key features

  • Generics and algebraic types
  • Trait-based polymorphism
  • Compile-time static analysis
  • Forc compiler and deploy command
  • LSP server and formatter
  • Standard library (std)
  • Built-in unit testing
  • Sway Playground in the browser

Use cases

  • Fuel smart contracts
  • Contract libraries and components
  • Native asset minting
  • NFT contracts
  • SRC-standard compatible contracts

Tags

Similar software

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

  • Single codebase for multiple platforms
  • Dart with native and web compilation
  • Stateful hot reload during development
DartWeb, Linux, macOS, WindowsDetails →
★ 181.6k⟳ yesterdayBSD-3-Clause
Open Source Alternative to:Adobe AIRIonic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

  • Responsive mobile-first CSS layout
  • Prebuilt UI components
  • Sass-based customization
JavaScriptDetails →
★ 175.1k⟳ 4 days agoMIT

Next.js

React framework for full-stack web applications

Next.js lets you build full-stack web apps by extending React and integrating Rust-based JavaScript build tooling.

  • Full-stack web development on React
  • Rust-based JavaScript build tooling
  • Server and static rendering focus
JavaScriptWebDetails →
★ 144k⟳ yesterdayMIT

React Native

Cross-platform native mobile framework using React

React Native lets developers build Android and iOS interfaces with React components rendered through native platform APIs. JavaScript changes can refresh quickly during development.

  • React component model on mobile
  • Native platform UI rendering
  • Android and iOS targets
C++Android, iOSDetails →
★ 127k⟳ yesterdayMIT
Open Source Alternative to:Ionic Enterprise

Electron

Cross-platform desktop application framework for web technologies

Electron lets developers build desktop applications with JavaScript, HTML, and CSS. It combines Node.js and Chromium so web code can run as native apps on major operating systems.

  • JavaScript, HTML, and CSS desktop apps
  • Embedded Chromium and Node.js runtime
  • macOS, Windows, and Linux binaries
C++Linux, macOS, WindowsDetails →
★ 124.3k⟳ yesterdayMIT
Open Source Alternative to:Adobe AIR

Node.js

Cross-platform open-source JavaScript runtime environment

Node.js is an open-source, cross-platform JavaScript runtime. It lets developers create servers, web apps, command line tools, and scripts.

  • Cross-platform JavaScript execution
  • HTTP server and networking APIs
  • Streams and file I/O modules
JavaScriptCLIDetails →
★ 123.9k⟳ yesterdayMIT