Skip to content
View coenttb's full-sized avatar

Block or report coenttb

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
coenttb/README.md

Coen ten Thije Boonkkamp

Lawyer • Swift Developer • Founder

I see a future where no person again faces the unjust reality that economic differences significantly dictate legal outcomes. To reach that future, we need technology that makes legal services accessible and affordable.

Another reality is that the infrastructure to reach this, just isn't there yet.

That's why I build type-safe Swift web infrastructure—from PostgreSQL queries to HTML rendering, from payments infrastructure to email. 90+ open source packages working together in production. Pioneering server-side Swift through real-world systems that prove the language's potential beyond iOS.

And I plan to take all my learnings back to legal. But first:

My contributions to the Swift open source ecosystem

Flagship Projects

swift-html (24 stars) - The Swift HTML package Type-safe HTML & CSS DSL with compile-time validation. Build web pages like SwiftUI views.

  • Zero runtime overhead, SwiftUI-like syntax
  • First-class dark mode support
  • Complete CSS type system

swift-html-to-pdf (54 stars) The fastest HTML to PDF library for Swift. 1,939 PDFs/second with 35MB memory.

  • Concurrent rendering with WebView pooling
  • Swift 6 strict concurrency
  • Type-safe HTML integration

swift-records (6 stars) - The Swift PostgreSQL package High-level database layer combining type-safe queries with PostgresNIO's performance.

  • Inspired by GRDB's elegance, built for production PostgreSQL applications
  • Complete transaction support, migrations, and testing infrastructure
  • Actor-based connection pooling and lifecycle management

swift-structured-queries-postgres (1 star) - Type-safe PostgreSQL query builder Compile-time SQL validation with zero runtime overhead.

  • 558 comprehensive tests with SQL snapshots
  • Full PostgreSQL feature support (JSONB, CTEs, window functions)
  • Bridge between structured queries and PostgresNIO

swift-identities - The Swift Identity & Authentication Package Complete authentication system for modern Swift applications.

  • Multiple auth methods (email/password, tokens, API keys)
  • Multi-factor authentication (TOTP, SMS, email, WebAuthn)
  • PostgreSQL backend with secure token management

coenttb-com-server (7 stars) Production Swift website. 100% Swift, type-safe from database to DOM.

  • Demonstrates modern Swift web architecture
  • Real-world hypermodular design
  • Powers coenttb.com

Production-Ready SDKs

swift-stripe - The Swift Stripe SDK Complete Stripe integration for server-side Swift.

  • 48 modules covering entire Stripe API
  • Production-ready with dependency injection
  • Used in production at coenttb.com

swift-mailgun - The Swift Mailgun SDK Professional email infrastructure for Swift.

  • Type-safe HTML email generation
  • Comprehensive API coverage (Messages, Domains, Templates, Webhooks)
  • Swift 6 support with async/await

swift-github - The Swift GitHub SDK GitHub API client focused on analytics and repository management.

  • Repository analytics and management
  • Traffic metrics, engagement stats
  • High-performance async/await design

Core Infrastructure

Developer Tools

Upcoming Projects

Boiler - Batteries-included Swift web framework Minimal API for rapid development and production deployment.

  • Web server in 15 lines of Swift
  • Type-safe routing and HTML generation
  • Built on Vapor with opinionated defaults
  • Perfect for rapid prototyping and production apps
  • Currently in private alpha (v0.1.0)

RepoTraffic.com - GitHub repository analytics platform Long-term GitHub traffic data storage and analysis.

  • Store and analyze GitHub traffic data beyond 14-day limit
  • Visual traffic trends and engagement metrics
  • Built with full-stack Swift
  • Coming soon

Professional Work

Legal Advisor - Bridging law and code for groundbreaking life sciences:

Impact

  • 91 Swift packages with 118 total stars demonstrating hypermodular architecture
  • Production systems serving real users, not just demos
  • Swift 6.0 strict concurrency throughout entire ecosystem
  • Type-safe from database to DOM - compile-time guarantees everywhere

Philosophy

I build tools that make wrong things impossible. Every abstraction removes entire classes of errors. My frameworks don't just work - they teach you how to build better systems.

Core beliefs:

  • Type safety is a feature, not overhead
  • Swift's future extends far beyond Apple platforms
  • The best code is code that guides its users
  • Building in public accelerates everyone's learning

Recent Writing

Let's Connect


Currently accepting select consulting engagements in Swift, breakthrough life science projects, or legal tech. Have an interesting challenge? Let's talk.

Pinned Loading

  1. swift-html swift-html Public

    The Swift library for domain-accurate and type-safe HTML & CSS.

    Swift 25

  2. swift-html-to-pdf swift-html-to-pdf Public

    The Swift package for printing HTML to PDF.

    Swift 62 7

  3. coenttb-com-server coenttb-com-server Public

    Production server for coenttb.com built with Boiler.

    Swift 8

  4. swift-document-templates swift-document-templates Public

    A Swift package for data-driven business document creation.

    Swift 4 1