{"id":51161517,"url":"https://github.com/nvmnovem/swift-web-ui","last_synced_at":"2026-06-26T14:01:09.930Z","repository":{"id":367411491,"uuid":"1280685076","full_name":"NVMNovem/swift-web-ui","owner":"NVMNovem","description":"[SwiftWebUI] - Build websites with Swift using a SwiftUI-inspired declarative API","archived":false,"fork":false,"pushed_at":"2026-06-25T21:25:17.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T23:10:50.372Z","etag":null,"topics":["framework"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NVMNovem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-25T20:49:22.000Z","updated_at":"2026-06-25T21:25:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/NVMNovem/swift-web-ui","commit_stats":null,"previous_names":["nvmnovem/swift-web-ui"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/NVMNovem/swift-web-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NVMNovem%2Fswift-web-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NVMNovem%2Fswift-web-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NVMNovem%2Fswift-web-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NVMNovem%2Fswift-web-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NVMNovem","download_url":"https://codeload.github.com/NVMNovem/swift-web-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NVMNovem%2Fswift-web-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34819597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework"],"created_at":"2026-06-26T14:01:08.807Z","updated_at":"2026-06-26T14:01:09.911Z","avatar_url":"https://github.com/NVMNovem.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftWebUI\n\nSwiftWebUI is a SwiftUI-like view DSL for rendering browser UI to HTML and CSS resources. SwiftHTML owns HTML rendering, SwiftCSS owns CSS rendering, and SwiftWebUI keeps the component and modifier APIs at the web UI layer.\n\n## Example\n\n```swift\nimport SwiftWebUI\n\nenum PortfolioTab: String, CaseIterable {\n    case info\n    case personal\n    case contact\n}\n\nstruct PortfolioPreview: View {\n    var body: some View {\n        VStack(alignment: .leading, spacing: 24) {\n            Text(\"Maak websites met Swift.\")\n                .font(.heroTitle)\n                .foregroundStyle(.primary)\n\n            TabBar(selection: PortfolioTab.info) {\n                Tab(\"Info\", value: PortfolioTab.info)\n                Tab(\"Persoonlijk\", value: PortfolioTab.personal)\n                Tab(\"Contact\", value: PortfolioTab.contact)\n            }\n\n            Link(\"Neem contact op\", destination: \"#contact\")\n                .buttonStyle(.primary)\n        }\n        .padding(24)\n    }\n}\n\nlet rendered = HTMLRenderer().renderView(PortfolioPreview())\nlet document = WebDocument(\n    title: \"Portfolio\",\n    renderedView: rendered,\n    stylesheetPath: \"styles.css\"\n)\n\nlet html = document.htmlString(prettyPrinted: false)\nlet css = rendered.cssString(prettyPrinted: false)\n```\n\n`TabBar` is static-first today. `TabBar(selection:)` renders the selected tab with accessible tab semantics and generated SwiftCSS resources. A `Binding` initializer exists for render compatibility, but client-side tab switching is planned for the future client-state runtime.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvmnovem%2Fswift-web-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvmnovem%2Fswift-web-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvmnovem%2Fswift-web-ui/lists"}