MCPcopy Index your code
hub / github.com/Rafacv23/F1-api

github.com/Rafacv23/F1-api @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
245 symbols 843 edges 197 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🏎️ F1api.dev | Your free & open source F1 api, ready for development

All Contributors

Star on GitHub Fork on GitHub

Project made with Next.js and Turso to take all the data about the Formula 1 Championship.

f1api.dev | Discord server

f1-connect-api-preview f1-connect-api-performance

🛫 Endpoints

You can find all the available endpoints in the docs section of the website.

An OpenAPI YAML specification is also available in this repository at openapi.yaml, so you can use tools like OpenAPI Generator directly.

🪄 Official SDK to use the API

You can use the official SDK to use the API. This is not mandatory, you can simply use fetch to get the data.

F1 API SDK GitHub

F1 API SDK NPM

Installation

You can use npm, pnpm, yarn or bun to install this package.

npm install @f1api/sdk

Usage

Initialize the SDK

You can use coommonjs or ES6 import to initialize the SDK.

import F1Api from "@f1api/sdk"

const f1Api = new F1Api()

Use any method to retrieve endpoint data

const drivers = await f1Api.getDrivers()

⌨️ Stack

  • Next.js
  • React
  • Turso
  • JavaScript
  • TypeScript
  • Tailwind
  • Shadcn
  • HyperUi
  • Playwright

📱 Contact

You can contact with us contact section of the website.

👀 Be part of the project

Feel free to check my code and make comments about it. And use it in your daily work.

git clone https://github.com/Rafacv23/F1-api

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Artem Anisimov Artem Anisimov 🌍 🐛 Paul Paul 🐛 Darlann Banache Darlann Banache 🐛 zhenghaoyang24 zhenghaoyang24 🤔 Chanzy ma Chanzy ma 🐛 Jelger Haanstra Jelger Haanstra 🎨

This project follows the all-contributors specification. Contributions of any kind welcome!

Extension points exported contracts — how you extend this code

ArrayBreadProps (Interface)
(no doc)
components/ArrayBread.tsx
Props (Interface)
(no doc)
components/ArticleListItem.tsx
CopyBtnProps (Interface)
(no doc)
components/buttons/CopyBtn.tsx
Link (Interface)
(no doc)
components/footer/footerData.ts
ButtonProps (Interface)
(no doc)
components/ui/button.tsx
Circuit (Interface)
(no doc)
lib/definitions.ts
Params (Interface)
(no doc)
lib/brevo.ts
ApiResponse (Interface)
(no doc)
app/api/seasons/route.ts

Core symbols most depended-on inside this repo

cn
called by 73
lib/utils.ts
apiNotFound
called by 67
lib/utils.ts
convertToTimezone
called by 47
lib/utils.ts
getLimitAndOffset
called by 36
lib/utils.ts
initTranslations
called by 15
app/i18n.js
getDay
called by 9
lib/utils.ts
formatDriver
called by 8
lib/scrap/utils.js
formatTeam
called by 8
lib/scrap/utils.js

Shape

Function 176
Interface 69

Languages

TypeScript100%

Modules by API surface

lib/definitions.ts13 symbols
lib/utils.ts7 symbols
components/ui/expandable-card-list.tsx6 symbols
lib/insert/utils.js4 symbols
lib/articles.ts4 symbols
components/buttons/ScrollToTop.tsx4 symbols
app/api/[year]/compare/[driverId1]/[driverId2]/route.ts4 symbols
lib/scrap/utils.js3 symbols
components/ui/drawer.tsx3 symbols
components/buttons/CopyBtn.tsx3 symbols
app/[locale]/docs/[endpoint]/page.tsx3 symbols
app/[locale]/docs/[endpoint]/[id]/page.tsx3 symbols

For agents

$ claude mcp add F1-api \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact