
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
openf1-client
Advanced tools
A lightweight, zero-dependency TypeScript client for the OpenF1 API.
npm install openf1-client
Here's a quick example of how to use the client to fetch session data:
import { OpenF1Client } from 'openf1-client'
const client = new OpenF1Client()
async function getSpanishGrandPrixSession() {
try {
const sessions = await client.getSessions({
meetingKey: 1229, // Spanish Grand Prix 2024
sessionName: 'Race'
})
console.log(sessions)
} catch (error) {
console.error('Error fetching sessions:', error)
}
}
getSpanishGrandPrixSession()
By default, the client returns data with snake_case
keys, as provided by the OpenF1 API. You can enable automatic camelCase conversion during client initialization:
const client = new OpenF1Client({ camelize: true })
If you would like additional info about the requests being made by the client, you can enable the debug option:
const client = new OpenF1Client({ debug: true })
The client provides methods for all supported OpenF1 API endpoints:
getCarData(params)
getDrivers(params)
getIntervals(params)
getLaps(params)
getLocation(params)
getMeetings(params)
getPit(params)
getPosition(params)
getRaceControl(params)
getSessions(params)
getSessionResults(params)
(beta)getStartingGrid(params)
(beta)getStints(params)
getTeamRadio(params)
getWeather(params)
For detailed information on available query parameters for each endpoint, please refer to the official OpenF1 API Documentation.
Contributions are welcome! Please open an issue or submit a merge request.
FAQs
Library for querying data from the OpenF1 API
The npm package openf1-client receives a total of 11 weekly downloads. As such, openf1-client popularity was classified as not popular.
We found that openf1-client 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.