EbikePartsPicker

v1.0.0
com.ebikepartspicker/ebike-conversion-law Checked 7 hours ago Published 2 days ago

US e-bike conversion legality by state, kit fit checks and range estimates.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_conversion_legality Check e-bike conversion legality

Checks whether a DIY e-bike conversion (motor kit on a regular bicycle) qualifies as a legal electric bicycle in a US state. Returns a pass / warn / fail verdict with a reason for each rule: motor power, speed and class, licence/registration/insurance, class label, battery certification, plus state notes on conversions and recent law changes, with source links.

ParameterTypeDescription
motor_watts *numberMotor rated (nominal) power in watts
state *stringUS state or DC: two-letter code (CA) or full name
assist_top_mphnumberSpeed at which pedal assist cuts out. Default 20; 28 for a Class 3 setup
battery_certstringlisted = certified to UL 2271/2849 by an accredited lab; claimed = seller says 'tested to' or 'meets'; none; unknown
has_pedalsbooleanTrue if the bike keeps fully operable pedals. Default true
has_throttlebooleanTrue if the bike can be powered without pedaling
throttle_top_mphnumberSpeed at which throttle power cuts out. Default 20

check_build_compatibility Check conversion kit fit

Checks whether a conversion motor or kit fits a bicycle and matches a battery: bottom bracket or dropout width, wheel size, frame and fork material, battery voltage against the controller, and battery current rating against controller draw. Pass a component_id from list_components.

ParameterTypeDescription
battery_ahnumberBattery capacity in amp-hours
battery_voltsnumberBattery nominal voltage, e.g. 36, 48, 52
bbstringBottom bracket shell (needed for mid-drive motors)
bms_ampsnumberBattery continuous discharge rating in amps
brakestring
component_idstringId from list_components, e.g. bafang-bbs02b-750
forkstring
framestring
front_dropout_mmnumberInside width between fork dropouts in mm (needed for front hub motors), e.g. 100
rear_dropout_mmnumberInside width between rear dropouts in mm (needed for rear hub motors), e.g. 135
wheelstringWheel size: 16, 20, 24, 26, 27.5, 29 or 700c

check_full_build Check a whole build

Runs legality, compatibility and range together for one planned conversion. Use when the user gives their state, bike details, motor or kit and battery in one go.

ParameterTypeDescription
state *stringUS state or DC: two-letter code (CA) or full name
assist_top_mphnumberSpeed at which pedal assist cuts out. Default 20; 28 for a Class 3 setup
battery_ahnumber
battery_certstringlisted = certified to UL 2271/2849 by an accredited lab; claimed = seller says 'tested to' or 'meets'; none; unknown
battery_voltsnumber
bbstringBottom bracket shell (needed for mid-drive motors)
bms_ampsnumberBattery continuous discharge rating in amps
brakestring
component_idstring
forkstring
framestring
front_dropout_mmnumberInside width between fork dropouts in mm (needed for front hub motors), e.g. 100
has_pedalsbooleanTrue if the bike keeps fully operable pedals. Default true
has_throttlebooleanTrue if the bike can be powered without pedaling
motor_wattsnumberMotor rated (nominal) power in watts
rear_dropout_mmnumberInside width between rear dropouts in mm (needed for rear hub motors), e.g. 135
rider_effortstringnone = throttle only
speed_mphnumberAverage cruising speed. Default 16
terrainstring
throttle_top_mphnumberSpeed at which throttle power cuts out. Default 20
total_weight_lbnumberRider + bike + cargo in pounds. Default 250
wheelstringWheel size: 16, 20, 24, 26, 27.5, 29 or 700c

get_state_ebike_law Get a state's e-bike law

Returns the researched e-bike rules for one US state or DC: definition, wattage and speed limits, age, helmet, licence, registration, insurance, label and modification rules, what an out-of-class bike becomes, battery rules, conversion notes, recent changes, statute citations and sources.

ParameterTypeDescription
state *stringUS state or DC: two-letter code (CA) or full name

list_state_ebike_laws List all state e-bike laws

Returns a one-line summary for all 50 states and DC: framework, wattage limit, speed limits, and whether licence, registration, insurance or a label is required. Use to compare states.

get_federal_ebike_law Get US federal e-bike law

Returns the federal position: the consumer-product definition of a low-speed electric bicycle (15 U.S.C. 2085), the three-class definition for federally funded paths (23 U.S.C. 217), and the status of CPSC battery rulemaking.

list_components List conversion motors and kits

Lists common e-bike conversion motors and kits with rated power, voltages, certification status and typical price. Optional filter by type.

ParameterTypeDescription
typestring

get_component Get one motor or kit

Returns full specifications for one conversion motor or kit: power, voltages, controller current, torque, sensor type, bottom bracket or dropout sizes, wheel sizes, certification wording, fit notes and the source page.

ParameterTypeDescription
component_id *string

estimate_range Estimate e-bike range

Estimates range in miles (low, typical, high) from battery size, total weight, speed, terrain and rider effort, and returns the formula's assumptions.

ParameterTypeDescription
battery_ah *number
battery_volts *number
rider_effortstringnone = throttle only
speed_mphnumberAverage cruising speed. Default 16
terrainstring
total_weight_lbnumberRider + bike + cargo in pounds. Default 250

get_battery_safety_guidance Battery certification guidance

Explains UL 2271 and UL 2849, the difference between certified and 'tested to', and which states and cities require certified e-bike batteries, with sources.

list_conversion_kit_rebates Rebates that cover conversion kits

Lists e-bike incentive programs and whether each covers conversion kits. Optional two-letter state filter.

ParameterTypeDescription
statestring