🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@devgrid/rest-core

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devgrid/rest-core

npmnpm
Version
3.52.4
Version published
Weekly downloads
55
2650%
Maintainers
1
Weekly downloads
 
Created
Source

@devgrid/rest-core

rest-core is the foundational package of the ts-rest ecosystem - a TypeScript-first library for building type-safe REST APIs. It provides a robust set of tools for defining and consuming RESTful APIs with end-to-end type safety.

As part of the ts-rest framework (https://github.com/ts-rest/ts-rest), rest-core enables developers to create strongly-typed API contracts that can be shared between client and server implementations. This approach ensures consistency and reduces errors across the entire API lifecycle.

Core Capabilities

  • Type-Safe API Contracts: Define your API endpoints with strict typing using Zod schemas
  • Automatic Type Inference: Generate TypeScript types directly from your API definitions
  • Comprehensive HTTP Support: Full support for all major HTTP methods and status codes
  • Validation Layer: Built-in data validation powered by Zod for both requests and responses
  • Middleware Support: Extend functionality with custom middleware for authentication, logging, etc.
  • Error Handling: Structured error handling with type-safe error responses
  • Header Management: Type-safe header definitions and manipulation
  • Query Parameter Support: Strongly-typed query parameters with automatic validation

FAQs

Package last updated on 29 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts