@openf1-client-sdk/sdk-core
v0.1.1
Published
Shared OpenF1 schemas, query builder, and OpenAPI generation
Readme
@openf1-client-sdk/sdk-core
Shared schemas, query builder, and OpenAPI generation for the OpenF1 API.
All data comes from OpenF1. This package is not affiliated with, endorsed by, or maintained by the OpenF1 project.
Install
npm install @openf1-client-sdk/sdk-coreMost apps should use @openf1-client-sdk/sdk instead. Install sdk-core directly when you need Zod schemas or the query builder without the HTTP client.
Usage
Query builder:
import { buildQueryParams } from "@openf1-client-sdk/sdk-core";
buildQueryParams({
session_key: "latest",
lap_number: { lte: 3 },
});
// { session_key: "latest", "lap_number<=": "3" }Schemas:
import { LapsSchema, sessionKeySchema } from "@openf1-client-sdk/sdk-core";Subpath exports: @openf1-client-sdk/sdk-core/query, @openf1-client-sdk/sdk-core/schemas.
Links
License
EUPL-1.2
