# freshOS/Stevia

:leaves: Concise Autolayout code

Repository: https://github.com/freshOS/Stevia
Canonical: https://ross.abutalabs.com/products/stevia
Homepage: https://freshos.github.io/SteviaDocs/
Language: Swift
License: MIT
License Family: permissive
Topics: autolayout, swift, layout, stevia, constraints, view, interface, freshos, dsl, ios, visual-format-language, xcode, cocoapods, ui, auto, layouts, carthage, storyboard, xib, nslayoutconstraints
Last push: 2025-09-21T09:17:28+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 43, release rhythm 24, longevity 100
- inputs: {"age_days": 4097, "days_push": 346, "days_rel": 346, "gap_med": 96, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3416, forks 219 (observed 2026-08-28T04:08:03.735117+00:00)

## What it is
Stevia is a Swift DSL library that makes iOS Auto Layout code concise and readable, offering visual, chainable, and equation-based APIs that generate native NSLayoutConstraints. It is part of the freshOS iOS toolset and supports live reload for faster UI iteration.

## Use cases
- write autolayout constraints in concise readable swift code
- replace storyboards and xibs with programmatic ui layout
- describe horizontal and vertical layouts with a visual format dsl
- speed up ui iteration with live reload
- reduce boilerplate when building ios views in code

## When to choose
- you build iOS/tvOS interfaces programmatically and find NSLayoutConstraint code verbose
- you want a type-safe alternative to visual format language strings
- you want to avoid storyboard merge conflicts and maintain views in pure code

## When to avoid
- you prefer SwiftUI or Interface Builder for layout
- your project targets platforms outside iOS/tvOS
- you need cross-platform layout beyond UIKit

## Facets
- artifact type: library
- maturity: active
- function: ui-components, developer-tools
- domain: mobile-development, web-design
- platform: -
- tags: autolayout, dsl, swift, constraints, uikit, layout, ios, mobile

## Member repositories
- freshOS/Stevia (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.735117+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:15.452434+00:00, confidence not recorded.
  - readme: https://github.com/freshOS/Stevia (fetched 2026-08-28T04:08:03.735117+00:00, sha beff59d67eab)
  - homepage: https://freshos.github.io/SteviaDocs/ (fetched 2026-08-29T09:32:15.410981+00:00, sha 479a89c7c6a4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
