krzysztofzablocki/Sourcery
Meta-programming for Swift, stop writing boilerplate code. observed · 2026-08-28
Health v2 · maintenance only
68/100
- Activity 87
- Release rhythm 24
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 130.5
- age_days: 3552
- days_rel: 349
- days_push: 83
- n_releases_24m: 3
Adoption not part of the score
8018 stars · 634 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Sourcery is a code generator for the Swift language built on Apple's SwiftSyntax, using templates (Stencil, Swift templates) to eliminate boilerplate like mock implementations, equality, and Codable conformances. It is widely adopted in iOS and macOS projects and runs as a CLI or build-phase tool.
Use cases
- generate mock classes for Swift protocols automatically
- remove repetitive boilerplate code in iOS projects
- auto-generate Equatable and Codable conformances
- generate code from Swift type information using Stencil templates
- speed up writing test doubles for unit tests
- automate repetitive Swift code generation in Xcode build phases
When to choose
- you write lots of repetitive Swift boilerplate like mocks or conformances
- you want template-driven codegen integrated into Xcode or CI
- you need a mature, widely adopted Swift metaprogramming tool
When to avoid
- your project is not in Swift
- you prefer hand-written explicit code over generated files
- you need runtime metaprogramming rather than build-time generation
Facets
cli-tool · maturity stable
developer-tools parser templating developer-tools programming-languages mobile-development cli swift metaprogramming boilerplate swiftsyntax stencil-templates ios mock-generation codable code-generation automation macos linux
4 sources
- readme: https://github.com/krzysztofzablocki/Sourcery · fetched 2026-08-28 · 6886bf2c4fbd
- homepage: http://merowing.info · fetched 2026-08-29 · 61f3f84527cc
- site_page: https://merowing.info/about · fetched 2026-08-29 · 169bfe72ef06
- site_page: https://merowing.info/posts/eval-loops-for-llm-features · fetched 2026-08-29 · b28398939c2f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| krzysztofzablocki/Sourcery | main | 68 |
For agents
markdown · JSON · MCP: product_card(name="krzysztofzablocki/Sourcery")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem