
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
contract-kit
Advanced tools
Contract-first TypeScript framework for type-safe APIs and typed clients.
Core meta package for Contract Kit - the contract-first TypeScript framework for building type-safe APIs and typed clients.
This package re-exports the core Contract Kit framework:
This package intentionally excludes:
@contract-kit/react, @contract-kit/react-query, @contract-kit/react-hook-form@contract-kit/next, @contract-kit/server@contract-kit/provider-* packagesThese can be installed separately as needed.
npm install contract-kit
npm install zod # or valibot, arktype, etc.
import { createContractGroup, createClient } from "contract-kit";
import { z } from "zod";
// Define a contract
const todos = createContractGroup().namespace("todos");
export const getTodo = todos
.get("/api/todos/:id")
.pathParams(z.object({ id: z.string() }))
.response(200, z.object({
id: z.string(),
title: z.string(),
completed: z.boolean(),
}));
// Create a typed client
const client = createClient({
baseUrl: "https://api.example.com",
});
// Make type-safe requests
const result = await client.call(getTodo, {
path: { id: "123" },
});
npm install @contract-kit/next next
npm install @contract-kit/server
npm install @contract-kit/react-query @tanstack/react-query
npm install @contract-kit/react-hook-form react-hook-form @hookform/resolvers
npm install @contract-kit/react
npm install @contract-kit/provider-logger-pino pino
npm install @contract-kit/provider-redis ioredis
npm install @contract-kit/provider-mail-resend resend
# ... and more
For complete documentation, visit: https://github.com/taylorbryant/contract-kit
MIT
FAQs
Contract-first TypeScript framework for type-safe APIs and typed clients.
The npm package contract-kit receives a total of 4 weekly downloads. As such, contract-kit popularity was classified as not popular.
We found that contract-kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.