awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
SwiftGen avatar

SwiftGen/SwiftGen

0
View on GitHub↗
9,545 stars·766 forks·Swift·MIT·14 views

SwiftGen

SwiftGen is a tool that creates strongly typed Swift references for assets, strings, and storyboards to eliminate manual string-based APIs. It functions as a code generator that maps localization keys, static assets, and data models into typed source code using a template-based engine.

The project uses custom templates to define the exact structure and syntax of the generated code. This allows the generated output to match specific project conventions while providing a flexible system for mapping translation keys and converting local files, colors, and fonts into typed constants.

The tool covers a broad range of asset management and data modeling capabilities. It generates typed references for images, colors, fonts, and interface builder elements, while also mapping translation files for internationalization. Additionally, it converts structured data from formats such as JSON, YAML, and Plist into typed constants and Core Data classes.

Features

  • Swift Code Generators - Creates strongly typed Swift references for assets, strings, and storyboards to eliminate manual string-based APIs.
  • Type-Safe Resource Mappings - Maps string identifiers from resource files to static Swift types to eliminate runtime errors caused by manual string entry.
  • Asset Key Extractors - Analyzes file formats like JSON, Plist, and XML to extract keys and values for conversion into typed constants.
  • String Localization - Maps keys from translation files to typed constants and generates functions for strings with placeholders.
  • Multi-Format Data Parsers - Employs a suite of specialized parsers to handle diverse data sources including storyboards, localization strings, and data models.
  • Source Generation Templates - Provides custom templates to define the exact structure and syntax of the generated code to match project conventions.
  • Static Asset Mappers - Maps local files, colors, and fonts into typed constants to ensure safe resource access in code.
  • iOS Internationalization Automation - Automates the mapping of translation keys to Swift constants to simplify managing multi-language support in apps.
  • Swift Asset Management - Creates typed references for images, colors, and fonts to ensure consistent resource usage across a codebase.
  • Type Safety - Provides strongly typed references for assets and strings to prevent runtime crashes caused by hardcoded string identifiers.
  • Source Code Templates - Uses external templates to define the exact syntax and structure of the generated source code.
  • Type-Safe Asset Accessors - Creates strongly typed references to replace string identifiers for assets, storyboards, and localization strings.
  • Resource Discovery - Recursively scans folders for specific file extensions to automatically generate hierarchies of available assets and fonts.
  • Type-Safe Font Loading - Scans directories for typeface files to create a structured hierarchy of font families and styles.
  • Data Model File Generation - Converts JSON, YAML, or Plist files into typed Swift classes and constants for structured data access.
  • Core Data Model Generators - Parses data models to create classes for entities including attributes, relationships, and fetch requests.
  • CLI Configuration Files - Supports the use of configuration files to define parsers, paths, and destinations for the CLI tool.
  • Configuration-Driven Orchestrators - Provides a declarative configuration system to manage input paths, parsers, and output destinations for automated code generation.
  • File Reference Generators - Lists files and subdirectories within a directory to provide typed references to local files and their mimetypes.
  • Type-Safe Segue References - Creates enums for storyboards and segue identifiers to avoid manual string entry for scene transitions.
  • Color Constants - Converts hex values from text, JSON, XML, or color files into typed color constants.
  • Data Constant Generators - Parses JSON, YAML, or Plist files to create typed constants representing the contents of those files.
  • Interface Identifier Generators - Generating enums for storyboard identifiers and segue transitions to avoid manual string entry during scene navigation.
  • Build And Automation - Tool for auto-generating type-safe code for project assets.
  • Color Utilities - Auto-generate enums for color constants.
  • General Utilities - Auto-generates constants for storyboards and assets.
  • Localization Tools - Generates type-safe enums for localization keys automatically.
  • Image Processing - Auto-generate enums for assets.

Star history

Star history chart for swiftgen/swiftgenStar history chart for swiftgen/swiftgen

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to SwiftGen

Similar open-source projects, ranked by how many features they share with SwiftGen.
  • mac-cain13/r.swiftmac-cain13 avatar

    mac-cain13/R.swift

    9,574View on GitHub↗

    R.swift is a resource generator and build tool plugin for Swift projects that creates type-safe accessors for bundle resources. It maps images, colors, localized strings, and bundle files to autocompleted Swift constants, replacing hardcoded string identifiers with strongly typed wrappers to ensure compile-time validation. The system functions as an asset wrapper that integrates into the build process to synchronize resource identifiers with source code. It utilizes static resource analysis to transform project configuration settings, entitlement values, and asset catalogs into a structured A

    Swiftautocompletioncode-generatorios
    View on GitHub↗9,574
  • oapi-codegen/oapi-codegenoapi-codegen avatar

    oapi-codegen/oapi-codegen

    8,088View on GitHub↗

    oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into type-safe Go client libraries, server boilerplate, and data models to facilitate contract-first API development. The tool distinguishes itself through a flexible customization system that allows users to override generated types and imports via specification extensions. It supports the use of custom text templates to redefine the final source code structure and provides a specification overlay mechanism to modify or remove endpoints without altering the original source file. Th

    Gogogolangopenapi
    View on GitHub↗8,088
  • codeigniter4/codeigniter4codeigniter4 avatar

    codeigniter4/CodeIgniter4

    5,924View on GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    View on GitHub↗5,924
  • nasa/fprimenasa avatar

    nasa/fprime

    10,766View on GitHub↗

    F Prime is a component-based framework designed for the development and deployment of embedded and spaceflight software. It provides a modular architecture that decouples software logic from communication interfaces, allowing developers to define system structures through a domain-specific modeling language. This model-based approach enables automated code generation, ensuring consistency across complex system topologies while maintaining strict interface contracts between software modules. The framework distinguishes itself through its integrated build system and ground data operations suite

    C++componentscppembedded
    View on GitHub↗10,766
See all 30 alternatives to SwiftGen→

Frequently asked questions

What does swiftgen/swiftgen do?

SwiftGen is a tool that creates strongly typed Swift references for assets, strings, and storyboards to eliminate manual string-based APIs. It functions as a code generator that maps localization keys, static assets, and data models into typed source code using a template-based engine.

What are the main features of swiftgen/swiftgen?

The main features of swiftgen/swiftgen are: Swift Code Generators, Type-Safe Resource Mappings, Asset Key Extractors, String Localization, Multi-Format Data Parsers, Source Generation Templates, Static Asset Mappers, iOS Internationalization Automation.

What are some open-source alternatives to swiftgen/swiftgen?

Open-source alternatives to swiftgen/swiftgen include: mac-cain13/r.swift — R.swift is a resource generator and build tool plugin for Swift projects that creates type-safe accessors for bundle… oapi-codegen/oapi-codegen — oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… nasa/fprime — F Prime is a component-based framework designed for the development and deployment of embedded and spaceflight… weblateorg/weblate — Weblate is an open-source web-based translation management system that provides a collaborative platform for teams to… nothings/stb — This project is a collection of portable, header-only C functions designed for integration into software projects…