Hi, my name is Coen ten Thije Boonkkamp. Lawyer who writes code. Programmer who hacks legal rules. Always chasing that sole elegant solution to complex systems. Follow my blog to read my thoughts.
Testing doesn’t have to be a tangled mess. Discover how modular Swift package architecture transforms testing—from brittle and slow to fast, focused, and intuitive. We’ll walk through real-world and show how adding dark mode touched only one test suite in one package. Yes, really.
When single-package modularity isn’t enough, it’s time to embrace composition of packages. Discover how to architect Swift library ecosystems that enable independent evolution, flexible integration, and possibilities you haven’t imagined yet.
Ever found yourself trapped maintaining a giant Swift monolith? There’s a better way. Discover how modular Swift package design lets you break down complexity, speed up testing, and dramatically simplify maintenance. Let’s explore modern Swift architectures together—one package at a time.
Periodically receive articles on law, code, startups, wins (and failures).
The Swift server framework that gets you from idea to production in record time. Start with zero configuration, then scale seamlessly to production complexity.
Built on Vapor (used by Apple) with type-safe HTML, routing, and dependencies throughout. Its modular architecture lets you compose exactly what you need, when you need it.
import Boiler
@main
struct Server {
static func main() async throws {
try await Boiler.execute {
HTMLDocument {
h1 { "Hello, World!" }
.color(.accent)
}
}
}
}
Write HTML & CSS with the power and safety of Swift. Catch errors at compile-time, not runtime.
Features SwiftUI-like syntax that feels native to Swift developers, with dark mode built-in and zero runtime overhead. All validation happens at compile time, and it renders efficiently as bytes or String.
import HTML
let page = HTMLDocument {
h1 { "Type-safe HTML" }
.color(.primary)
div {
p { "Compile-time validation" }
.fontSize(.rem(1.2))
}
.backgroundColor(
light: .blue150,
dark: .blue900
)
}
Professional Swift SDK with 100% Mailgun API coverage. Battle-tested with 200+ tests in production environments.
Built with modern Swift 6 concurrency (async/await throughout), type-safe from end to end, and includes dependency injection for easy testing.
import Mailgun
@Dependency(\.mailgun.client) var mailgun
let response = try await mailgun.messages.send(
.init(
from: try .init("hello@yourdomain.com"),
to: [try .init("user@example.com")],
subject: "Welcome to our service!"
) {
h1 { "Welcome aboard!" }
}
)
The production source code for coenttb.com, showcasing real-world usage of the Boiler framework and swift-html DSL in a live production environment serving thousands of users daily.
This repository demonstrates best practices for building modern Swift server applications with features including type-safe routing, PostgreSQL database integration with migrations, user authentication (coming soon) and session management (coming soon), transactional email via Mailgun, and RSS/Atom syndication feeds.
Built with a modular architecture that separates concerns into reusable packages, making it an excellent reference for developers looking to understand how to structure and deploy production-grade Swift web applications. The codebase includes comprehensive environment-based configuration, Docker deployment support, and Heroku compatibility out of the box.
Ten Thije Boonkkamp is where I offer my personal legal services for life science projects.