• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
qrtrcgn

qrtrcgn

ride-height-calculator

Public
Calculate vehicle ride height with progressive springs
Like
ride-height-calculator
Home
Code
4
calc
3
shared
1
README.md
H
main.tsx
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

🏎️ Ride Height Calculator API

Calculate vehicle ride height accounting for progressive springs, strut geometry angles, and tire deflection.

Endpoints

MethodPathDescription
GET/API documentation page
GET/calculate?weight=1400&springF=35Calculate with query params
POST/calculateCalculate with JSON body

Parameters

All parameters are optional — sensible defaults are used for any omitted values.

ParamDefaultDescription
weight1350Vehicle weight (kg)
distFront58Front weight distribution (%)
springF32Front spring rate (N/mm)
springR28Rear spring rate (N/mm)
progStart30Progressive spring engagement point (mm)
progFactor1.5Spring progression multiplier
angleF15Front strut angle (°)
angleR10Rear strut angle (°)
tireW205Tire width (mm)
tireA55Tire aspect ratio (%)
tireR16Rim diameter (inches)
tireP32Tire pressure (psi)
target180Target ride height (mm)

Response

{ "result": { "vehicle": { "weightKg": 1350, "distFront": 58 }, "front": { "springRate": 48, "wheelRate": 3.2, "compression": 80, "tireDeflection": 75.8, "rideHeight": 183, "groundClearance": 133 }, "rear": { ... }, "difference": 4, "status": "OK" }, "timestamp": "2026-04-14T12:56:41.052Z" }

Status values: OK (< 5mm diff), WARN (5–15mm), FAIL (> 15mm)

Architecture

Rendering mermaid diagram...
  • calc/springs.ts — Progressive rate calculation, compression solver, wheel rate conversion
  • calc/tires.ts — Tire deflection estimation from dimensions and pressure
  • calc/ride-height.ts — Orchestrates all calculations into a final result
  • shared/types.ts — TypeScript interfaces for params and results
Code
calcsharedREADME.md
H
main.tsx
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
AboutAlternativesPricingBlogNewsletterCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.