# SwiftWebUI/SwiftWebUI

A demo implementation of SwiftUI for the Web

Repository: https://github.com/SwiftWebUI/SwiftWebUI
Canonical: https://ross.abutalabs.com/products/swiftwebui
Homepage: http://www.alwaysrightinstitute.com/swiftwebui/
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: swiftui, swiftui-example, swift5, swift-library, swiftwebui
Last push: 2024-03-02T16:11:08+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2625, "days_push": 914, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4274, forks 160 (observed 2026-08-28T04:08:41.008059+00:00)

## What it is
SwiftWebUI is a Swift library that implements a large subset of the SwiftUI API so SwiftUI views can render and run interactively in a web browser, backed by a Swift server. It is explicitly a toy/demo project intended for learning SwiftUI internals, not for production use.

## Use cases
- render swiftui views in a web browser
- learn how swiftui works internally
- build interactive web uis in swift
- prototype declarative uis without xcode
- run swiftui-style apps on linux servers

## When to choose
- you want to experiment with SwiftUI syntax in the browser
- you are studying SwiftUI's inner workings
- you want a fun Swift server-driven UI demo

## When to avoid
- you need a production web frontend
- you need full SwiftUI API coverage
- you need long-term maintenance or support

## Facets
- artifact type: library
- maturity: experimental
- function: frontend-framework, ui-components, web-framework, http-server
- domain: web-development, frontend, developer-tools, cross-platform
- platform: browser
- tags: swiftui, declarative-ui, toy-project, swiftpm, websocket-bridge, macos, linux, web-server, swift

## Member repositories
- SwiftWebUI/SwiftWebUI (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.008059+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:22:00.198452+00:00, confidence not recorded.
  - readme: https://github.com/SwiftWebUI/SwiftWebUI (fetched 2026-08-28T04:08:41.008059+00:00, sha 67b2c880d08e)
  - homepage: http://www.alwaysrightinstitute.com/swiftwebui/ (fetched 2026-08-29T09:11:22.985039+00:00, sha 50c120772af3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
