Marco Podien

End-to-End TypeScript: Completing the Modern Development Stack

What if your types could flow seamlessly from your database all the way to your UI? Discover the modern TypeScript toolkit for building truly end-to-end type-safe applications.

End-to-End TypeScript: Completing the Modern Development Stack
#1about 2 minutes

Understanding the power and popularity of TypeScript

TypeScript's strong typing improves code readability, maintainability, and developer velocity by catching errors early.

#2about 2 minutes

Acknowledging the challenges of writing complex types

While powerful, creating and maintaining correct types can be complex, especially for library authors, as highlighted by DHH's experience.

#3about 4 minutes

Leveraging the TypeScript compiler and modern runtimes

The TypeScript ecosystem includes the TSC compiler, tsconfig for strictness, and modern runtimes like Deno and Bun that offer native support.

#4about 5 minutes

Achieving type safety in the database layer

ORMs like Prisma and Drizzle allow developers to define database schemas and infer types directly in TypeScript for end-to-end consistency.

#5about 4 minutes

Building type-safe backends and APIs

Libraries like Hono for routing, Zod for validation, and TRPC for communication enable the creation of robust, type-safe backend services.

#6about 2 minutes

Connecting the frontend with type-safe APIs

Type-safe communication between the frontend and backend can be achieved using patterns like TRPC, GraphQL, or code generation from OpenAPI specs.

#7about 4 minutes

Using code generation to ensure type consistency

Code generation tools help maintain type consistency across layers but require careful management of trade-offs like monorepo complexity and tool understanding.

#8about 1 minute

Designing abstractions to prevent vendor lock-in

Employing patterns like hexagonal architecture and domain-driven design helps isolate core business logic from specific frameworks and avoid vendor lock-in.

#9about 3 minutes

Integrating decentralized tech and AI into your stack

Modern stacks extend beyond three tiers to include external data sources like LLMs via the OpenAI SDK and decentralized technologies like blockchain smart contracts.

#10about 2 minutes

A practical example of an end-to-end workflow

A complete type-safe workflow can be built by combining Drizzle for the database, Zod for schemas, Hono for the API, and React for the frontend.

#11about 1 minute

Final takeaways for building modern TypeScript applications

Embrace types with strict mode, automate wherever possible, build your own abstractions for core logic, and think beyond the traditional three-tier architecture.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

From learning to earning

Jobs that call for the skills explored in this talk.