API Route & TanStack Query Manager

•
1
•

Automates the creation of typed API routes and TanStack Query hooks following a standardized four-file pattern for frontend development.

This skill streamlines the process of integrating backend endpoints into the Vmarble Warehouse Management frontend by enforcing a robust four-file architecture. It ensures consistency across DTO types, API client functions, and React Query hooks while handling complex patterns like paginated results, snake_case field mapping from Go backends, and automatic mutation invalidation. It is an essential tool for developers who need to maintain clean code architecture, type safety, and efficient cache management when expanding a warehouse management system's capabilities.

Características Principales

01Simplifies TanStack Query hook creation for lists, details, and mutations
021 GitHub stars
03Standardizes Go-to-TypeScript type mapping with snake_case support
04Implements advanced pagination handling using the PagedResult pattern
05Automates query key management and cache invalidation workflows
06Enforces a consistent 4-file pattern for domain-driven API integration

Casos de Uso

01Adding a new warehouse management module with full CRUD capabilities
02Setting up complex mutation hooks with automatic UI state updates
03Integrating a Go-based backend endpoint with paginated list results