Skip to main content

A list of cool DSLs made with Swift 5.4’s @resultBuilder

1.1k
GitHub Stars
41
Curated Resources
15
Categories
7 hours ago
Last Refreshed
GuidesDataDependency InjectionGraphQLHTMLParsingNetworkingNSAttributedStringRESTServer-SideSwiftUITestingUIKitAppKitOther

Use this list with your AI agent

Add the Context Awesome MCP server to Claude, Cursor, or any MCP client, then ask:

"Show me graphql resources from awesome-result-builders"

Installation instructions →

What's inside

GraphQL

  • Artemis

    Interact with GraphQL in Swift - not strings

  • graphique

    Experimental GraphQL query builders

  • Graphiti

    Swift GraphQL Schema/Type framework for macOS and Linux

  • SociableWeaver

    Build declarative GraphQL queries in Swift.

Data

  • BitWiser

    A simple library to help you in dealing with bytes, bits, nibbles and Data

  • BoolBuilder

    Build complex Bool values in an easy to understasnd way while perserving short-circuit semantics and exception handling capabilities

UIKit

  • BoxLayout

    [WIP] SwiftUI's interface like AutoLayout DSL

  • FlooidLayout

    Setup autolayout constraints in a declerative way

  • LegoKit

  • Mockingbird

    An experiment of implementing a UI layout and rendering framework inspired by SwiftUI

  • TurtleBuilder

    Turtle graphics made on the top of Swift's function builder. It allows you to use a Logo-like syntax to create and draw lines in your Swift project.

SwiftUI

  • ComposableNavigator

    The

  • ControlFlowUI

    A library that add control flow functionality to SwitUI, using the power of

  • PathBuilder

    Implementation of function builder for SwiftUI Path.

  • SequenceBuilder

    Allows you to build arbitrary heterogenous sequences without loosing information about the underlying types. It is especially useful for building custom container views in SwiftUI.

  • SwiftDB

    A type-safe, SwiftUI-inspired wrapper around CoreData

  • SwiftWebUI

    A demo implementation of SwiftUI for the Web

REST

Parsing

  • DeepCodable

    Encode and decode deeply-nested data into flat Swift objects

  • HTMLParserBuilder

    Build your HTML parser with declarative syntax and strongly-typed result.

Dependency Injection

Showing a sample of 41 resources. View the full list on GitHub →