{"id":40970589,"url":"https://github.com/coenttb/coenttb-com-server","last_synced_at":"2026-01-22T06:43:00.902Z","repository":{"id":304027121,"uuid":"951379782","full_name":"coenttb/coenttb-com-server","owner":"coenttb","description":"Production server for coenttb.com built with Boiler.","archived":false,"fork":false,"pushed_at":"2025-10-31T13:58:41.000Z","size":3165,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-31T15:08:57.976Z","etag":null,"topics":["blog","blog-engine","boiler","learning-resource","open-source-website","production","server-side-rendering","server-side-swift","swift","swift-web","type-safe-html","vapor","web-application","website"],"latest_commit_sha":null,"homepage":"https://coenttb.com","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coenttb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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":null,"dco":null,"cla":null},"funding":{"github":["coenttb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-03-19T15:30:55.000Z","updated_at":"2025-10-31T13:58:45.000Z","dependencies_parsed_at":"2025-07-26T09:23:01.526Z","dependency_job_id":"bb7cc29c-6f60-43f3-b390-ad3a7635f5f6","html_url":"https://github.com/coenttb/coenttb-com-server","commit_stats":null,"previous_names":["coenttb/coenttb-com-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coenttb/coenttb-com-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coenttb%2Fcoenttb-com-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coenttb%2Fcoenttb-com-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coenttb%2Fcoenttb-com-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coenttb%2Fcoenttb-com-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coenttb","download_url":"https://codeload.github.com/coenttb/coenttb-com-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coenttb%2Fcoenttb-com-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28657110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["blog","blog-engine","boiler","learning-resource","open-source-website","production","server-side-rendering","server-side-swift","swift","swift-web","type-safe-html","vapor","web-application","website"],"created_at":"2026-01-22T06:43:00.842Z","updated_at":"2026-01-22T06:43:00.897Z","avatar_url":"https://github.com/coenttb.png","language":"Swift","funding_links":["https://github.com/sponsors/coenttb"],"categories":[],"sub_categories":[],"readme":"# coenttb-com-server\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift-6.0-orange.svg\" alt=\"Swift 6.0\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Platforms-macOS%20|%20Linux-lightgray.svg\" alt=\"Platforms\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-AGPL--3.0%20|%20Commercial-blue.svg\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Vapor-4-purple.svg\" alt=\"Vapor 4\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eThe open-source Swift server powering coenttb.com\u003c/strong\u003e\u003cbr\u003e\n  Built entirely in Swift with type-safe HTML generation and inspired by Point-Free\n\u003c/p\u003e\n\n## Overview\n\n**coenttb-com-server** is the complete source code for [coenttb.com](https://coenttb.com), a production Swift website built in the style of [Point-Free](https://www.github.com/pointfreeco/pointfreeco) and powered by [Vapor](https://www.github.com/vapor/vapor) \u0026 [coenttb-web](https://www.github.com/coenttb/coenttb-web).\n\nRead more about me in my [introductory post on coenttb.com](https://www.coenttb.com/blog/1-from-broke-to-building-in-public-open-sourcing-coenttb-com).\n\n### ✨ Key Features\n\n- 🚀 **100% Swift** - Frontend to backend, all Swift\n- 🛡️ **Type-safe HTML \u0026 CSS** - Catch errors at compile time\n- 🧩 **Hypermodular architecture** - Clean separation of concerns\n- ⚡ **Server-side rendering** - Fast, SEO-friendly pages\n- 🎨 **Point-Free inspired** - Functional, composable patterns\n\n## Why Open Source?\n\n### 🎯 Mission\n\nSwift for web development is powerful but underexplored. By open-sourcing coenttb.com, I aim to:\n\n1. **Demonstrate** - Show how to structure a production Swift website elegantly\n2. **Inspire** - Encourage others to build web applications in Swift\n3. **Collaborate** - Gather feedback to improve the Swift web ecosystem\n\nThis is a real production website serving real users - not just a demo. Learn from actual patterns used in production.\n\n## Quick Start\n\n### Prerequisites\n\n- Swift 5.10+ (Full Swift 6 support)\n- macOS 14+ or Linux\n- PostgreSQL 14+\n- Xcode 15+ (for macOS development)\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/coenttb/coenttb-com-server\n   cd coenttb-com-server\n   ```\n\n2. **Configure environment**\n   ```bash\n   cp .env.example .env.development\n   ```\n\n3. **Setup PostgreSQL**\n   ```bash\n   # Example DATABASE_URL format:\n   # postgres://username:password@localhost:5432/database_name\n   \n   # For local development:\n   postgres://admin:@localhost:5432/coenttb-development\n   ```\n\n4. **Run the server**\n   ```bash\n   swift run Server\n   # Or in Xcode: Select the 'Server' scheme and run\n   ```\n\n   Visit `http://localhost:8080` to see your site!\n\n## Architecture\n\nThis project demonstrates a modern, type-safe web architecture:\n\n```swift\n// Type-safe routing\n@Dependency(\\.coenttb.website.router) var router\napp.mount(router, use: Route.response)\n\nlet home = router.url(for: .home)\nlet blog = router.url(for: .blog(.index))\nlet blogPost = router.url(for: .blog(.post(1)))\n\n\n// Type-safe HTML generation\nextension Blog.Post {\n    struct View: HTML {\n        let post: Blog.Post\n        \n        var body: some HTML {\n            article {\n                h1 { post.title }\n                    .fontSize(.rem(2.5))\n                \n                div { post.content }\n                    .lineHeight(1.6)\n            }\n            .maxWidth(.px(800))\n            .margin(.auto)\n        }\n    }\n}\n```\n\n## Ecosystem\n\n### 🏗️ The coenttb Stack\n\nThis server is built on a comprehensive Swift web development stack:\n\n#### Core Libraries\n- **[swift-html](https://github.com/coenttb/swift-html)** - Type-safe HTML \u0026 CSS DSL\n    - **[swift-html-types](https://github.com/coenttb/swift-html)** - Domain accurate and type-safe HTML types\n    - **[swift-css-types](https://github.com/coenttb/swift-css)** - Domain accurate and type-safe CSS types\n- **[swift-web](https://github.com/coenttb/swift-web)** - Web development fundamentals\n\n#### Extended Functionality\n- **[coenttb-html](https://github.com/coenttb/coenttb-html)** - HTML extensions, Markdown, Email, PDF\n- **[coenttb-web](https://github.com/coenttb/coenttb-web)** - Advanced web utilities\n- **[coenttb-server](https://github.com/coenttb/coenttb-server)** - Cross-platform server development tools\n- **[coenttb-server-vapor](https://github.com/coenttb/coenttb-server-vapor)** - Vapor \u0026 Fluent integration\n\n#### Point-Free Foundations\n- **[pointfree-html](https://github.com/coenttb/pointfree-html)** - HTML rendering engine\n\n#### Additional Tools\n- **[swift-translating](https://github.com/coenttb/swift-translating)** - Cross-platform translations\n\n## Features Demonstrated\n\n- 📝 **Blog Engine** - Markdown-based blog with syntax highlighting\n- 📧 **Email System** - Type-safe transactional emails\n- 🌍 **Internationalization** - Multi-language support\n- 🎨 **Dark Mode** - Automatic theme switching\n- 📱 **Responsive Design** - Mobile-first approach\n- 🚀 **Performance** - Optimized for speed\n\n## Contributing\n\nContributions are welcome! This project serves as both a production website and a learning resource for the Swift web community.\n\n### Ways to Contribute\n\n1. **Report Issues** - Found a bug? Let me know!\n2. **Suggest Features** - Ideas for improvements\n3. **Submit PRs** - Bug fixes and enhancements\n4. **Share Knowledge** - Blog about your experience\n\n## Support\n\n- 🐛 **[Issue Tracker](https://github.com/coenttb/coenttb-com-server/issues)** - Report bugs or request features\n- 💬 **[Discussions](https://github.com/coenttb/coenttb-com-server/discussions)** - Ask questions and share ideas\n- 📧 **[Newsletter](http://coenttb.com/en/newsletter/subscribe)** - Swift web development tips\n- 🐦 **[X (Twitter)](http://x.com/coenttb)** - Follow for updates\n- 💼 **[LinkedIn](https://www.linkedin.com/in/tenthijeboonkkamp)** - Connect professionally\n\n## Acknowledgements\n\nThis project relies on and is inspired by the excellent work at [Point-Free](https://www.pointfree.co) by Brandon Williams and Stephen Celis.\n\n## License\n\nThis project is available under **dual licensing**:\n\n### Open Source License\n**GNU Affero General Public License v3.0 (AGPL-3.0)**  \nFree for open source projects. See [LICENSE](LICENSE.md) for details.\n\n### Commercial License\nFor proprietary/commercial use without AGPL restrictions.  \nContact **info@coenttb.com** for licensing options.\n\n### Content License\n- **Paid content** on [coenttb.com](https://coenttb.com) - All rights reserved\n- **Free content** (blog posts, docs) - [CC BY-NC-SA 4.0](CC%20BY-NC-SA%204.0%20LICENSE)\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://coenttb.com\"\u003ecoenttb\u003c/a\u003e\u003cbr\u003e\n  \u003cem\u003eBuilding the future of Swift on the server\u003c/em\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoenttb%2Fcoenttb-com-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoenttb%2Fcoenttb-com-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoenttb%2Fcoenttb-com-server/lists"}