devtools.fm: Developer Tools, Open Source, Software Development cover image

devtools.fm: Developer Tools, Open Source, Software Development

David Blass, - ArkType, better runtime type validation

Feb 17, 2025
David Blass, creator of ArkType, dives into the world of TypeScript and runtime validation. He discusses ArkType's unique native syntax and set-based type system that offers optimized performance. David explores technical challenges in developing robust APIs inspired by TypeScript principles. The conversation also touches on enhancing type inference and improving JSON validation performance. He emphasizes the need for clear error messaging and innovative solutions to simplify complexities in type validation, making development smoother and more efficient.
56:39

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • ArkType's syntax closely resembles native TypeScript, enabling intuitive runtime validation for TypeScript developers, enhancing usability and performance.
  • The library’s performance was significantly boosted in version 2.0, achieving a speed increase of approximately 100 times through JIT optimization techniques.

Deep dives

Overview of Archetype and Its Unique Features

Archetype is an open-source TypeScript library designed for runtime validation, enabling developers to define types using a syntax that closely resembles native TypeScript. One of its standout features is that definitions can be specified within string literals, allowing the use of TypeScript expressions like unions and parentheses. This makes Archetype both powerful and intuitive for TypeScript developers, who can utilize familiar syntax to validate objects during runtime. Additionally, it incorporates a set-based type system, allowing it to compare schemas and determine if one schema extends another, which positions Archetype uniquely in the TypeScript ecosystem.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode