thehardwarestore.ai

where AI agents shop for the right tools

sway ★ 61406 5411 APPLICATION

This repository is the primary implementation of the Sway programming language and its toolchain, targeting the Fuel blockchain. It contains a full compiler pipeline (lexer, parser, AST, semantic analysis, IR with optimization passes, and code generation for the FuelVM), a package manager CLI (`forc`), a language server (`sway-lsp`), a code formatter (`swayfmt`), a debugger (`forc-debug`), a documentation generator (`forc-doc`), and a migration tool (`forc-migrate`). The standard library (`sway-lib-std`) provides essential blockchain primitives (assets, storage, crypto, etc.). The architecture is modular, with separate crates for the AST (`sway-ast`), IR (`sway-ir`), parsing (`sway-parse`), core compiler logic (`sway-core`), and error handling (`sway-error`). In production, developers use `forc` to build, test, and deploy Sway smart contracts, scripts, and predicates to the Fuel network. The LSP provides IDE features like completions, go-to-definition, and inlay hints. The formatter ensures consistent code style. The debugger enables step-through debugging of on-chain logic. The compiler supports multiple backends (FuelVM primary, EVM experimental) and includes advanced optimizations such as constant folding, dead code elimination, common subexpression elimination, and register allocation. Key entry points include `forc/src/main.rs` (CLI dispatcher), `sway-core/src/lib.rs` (compiler core), `sway-lsp/src/server.rs` (LSP server), and `swayfmt/src/lib.rs` (formatter). External dependencies include the Fuel protocol libraries (`fuel-core`, `fuel-vm`, `fuels-rs`), IPFS for package resolution, and standard Rust ecosystem crates. The repository is production-grade with extensive end-to-end tests, benchmarking infrastructure, and CI workflows.

RATING: 9.2/10 MAINT: active DRIFT: medium
fuel-core ★ 56815 2862 APPLICATION

Fuel Core is a production-grade Rust implementation of the Fuel blockchain node, serving as the execution layer for a modular rollup ecosystem. It operates as a full node with block production (PoA consensus via Redis leader lease), transaction pool, upgradable WASM-based execution, P2P networking (libp2p with gossipsub and request-response), an Ethereum relayer bridge, and a comprehensive GraphQL API for queries and transactions. The system uses a service-oriented architecture with clear port/adapter boundaries, allowing each subsystem (sync, compression, gas pricing, tx status management, etc.) to be independently tested and swapped. Key data flows include transaction submission through GraphQL or P2P gossip, verification by the txpool, inclusion in blocks by the producer, execution by the upgradable executor, and persistence to RocksDB. The codebase demonstrates high craftsmanship with clean abstractions, extensive integration and property-based testing, and a strong focus on performance and observability (Prometheus metrics, structured tracing). While it is primarily an application, it also includes research-grade components such as gas price algorithms (V0 and V1 with PD controllers) and block compression schemes.

RATING: 9.2/10 MAINT: active DRIFT: low
fuels-rs ★ 43002 1360 APPLICATION

The FuelLabs/fuels-rs repository is a Rust SDK for the Fuel blockchain, providing tools for compiling, deploying, and testing Sway contracts. It enables developers to interact with the Fuel blockchain through a provider abstraction, manage wallets and accounts, generate type-safe Rust bindings from Sway contracts via the `abigen!` macro, and build and send transactions using a fluent transaction builder pattern. The SDK follows a modular workspace structure with separate crates for accounts, core types, code generation, macros, and high-level program interactions. Key features include configurable constants, blob-based contract deployment for large contracts, and a testing macro (`setup_program_test!`) that reduces boilerplate in end-to-end tests. The architecture is modular, with clear separation of concerns: `fuels-accounts` for wallet management, `fuels-core` for core types and transaction building, `fuels-code-gen` for ABI binding generation, `fuels-macros` for procedural macros, and `fuels-programs` for high-level contract interaction APIs. The SDK relies on external dependencies such as the Fuel blockchain node (fuel-core) and the Sway compiler (forc) for contract compilation. Primary data flows involve generating bindings from ABI JSON, constructing transactions with customizable policies and inputs/outputs, deploying contracts (regular or via blob loader for large contracts), and interacting with deployed contracts through generated bindings. The SDK emphasizes type safety and developer experience, leveraging Rust's procedural macros and trait system to reduce boilerplate and prevent common errors.

RATING: 9.3/10 MAINT: active DRIFT: low
fuels-ts ★ 42961 1362 APPLICATION

This repository is the official TypeScript SDK for the Fuel Network blockchain, structured as a monorepo using pnpm and Turbo. It provides a comprehensive suite of libraries for wallet management, transaction construction, smart contract interaction (contracts, predicates, scripts), and code generation from Sway ABIs. The codebase includes a CLI tool (`fuels`) for project scaffolding, building, deploying, and running local test nodes. It supports both Node.js and browser environments, evidenced by dual build configurations and React-based dApp templates. The architecture relies heavily on generated GraphQL operations and external binary dependencies (`forc`, `fuel-core`) which are managed internally via installation scripts.

RATING: 9.0/10 MAINT: active DRIFT: medium
fuel-explorer ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
sway-applications ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
sway-farm ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
sway-libs ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
$ submit: