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

Related Articles

View all articles
DC
Daniel Cranney
Exploring TypeScript: Benefits for Large-Scale JavaScript Projects
JavaScript is the backbone of web development, powering everything from small websites to large-scale enterprise applications. However, as projects grow in complexity, maintaining JavaScript code can become increasingly difficult. This is where TypeS...
Exploring TypeScript: Benefits for Large-Scale JavaScript Projects
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!
DC
Daniel Cranney
Dev Digest 159: AI Pipelines, 10x Faster TypeScript, How to Interview
Inside last week’s Dev Digest 159 . 🤖 How to use LLMs to help you write code ⚡ How much electricity does AI need? 🔒 Is your API secure? Learn all about hardening it… 🟦 TypeScript switches to go and gets 10 times faster 🖼️ An image cropper in your ap...
Dev Digest 159: AI Pipelines, 10x Faster TypeScript, How to Interview
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.