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.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
TL
Thomas Limbüchler
What is TypeScript?
Since Angular 2 at the latest, TypeScript has been known to many. But what exactly can you do with it, and is it worth changing?Anyone who has worked with programming languages ​​such as Java or C# before will have noticed that JavaScript allows a su...
What is TypeScript?
BB
Benedikt Bischof
How we Build The Software of Tomorrow
Welcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Thomas Dohmke who introduced us to the future of AI – coding.This is how Thomas describes himself:I am the CEO of GitHub and drive the company’s...
How we Build The Software of Tomorrow

From learning to earning

Jobs that call for the skills explored in this talk.