🪩 Discofetch

Discofetch is a type-safe fetch client that automatically discovers and generates TypeScript types for REST APIs that lack OpenAPI specifications. Instead of manually writing types or dealing with any, Discofetch probes your API endpoints at build time and creates a fully-typed fetch client for runtime use with zero overhead.

Features

  • 🔍 Automatic type discovery - No manual type definitions needed
  • 🛡️ Full type safety - TypeScript types for paths, parameters, and responses
  • 🚀 Framework integrations - Built-in support for Vite and Nuxt (more coming soon)
  • 🎯 Runtime validation - Optional Zod schema generation for response validation
  • 🔧 Customizable - Hooks for customizing the discovery process
  • Build-time generation - Zero runtime ov…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help