About
An animated SVG diagram of an oil-well pumpjack (beam pump) whose crank, pitman and walking-beam linkage is actually solved as a four-bar mechanism, with switchable camera views, counterbalance placement, and an exploded teardown/service mode.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pumpjack to your project and fits it to your theme.
Code
How Pumpjack is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import Pumpjack from "@/components/ui/pumpjack";
export default function PumpjackInteractiveDemo() {
const [angle, setAngle] = React.useState(120);
return (
<div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
<Pumpjack
crankAngle={angle}
balance="beam"
interactive
onCrankAngleChange={setAngle}
size="xl"
/>
</div>
);
}








