{"id":23679659,"url":"https://github.com/jms/rvindecoder","last_synced_at":"2026-04-29T15:36:40.335Z","repository":{"id":269341794,"uuid":"907107148","full_name":"jms/rvindecoder","owner":"jms","description":"Rust VIN decoder","archived":false,"fork":false,"pushed_at":"2024-12-22T20:55:42.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-22T21:34:58.815Z","etag":null,"topics":["azure-sql-edge","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T20:36:22.000Z","updated_at":"2024-12-22T20:57:32.000Z","dependencies_parsed_at":"2024-12-22T21:35:02.036Z","dependency_job_id":"97b663c3-da21-4be1-9c33-92fe5ba7e00e","html_url":"https://github.com/jms/rvindecoder","commit_stats":null,"previous_names":["jms/rvindecoder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Frvindecoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Frvindecoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Frvindecoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Frvindecoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jms","download_url":"https://codeload.github.com/jms/rvindecoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727052,"owners_count":19687098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-sql-edge","rust"],"created_at":"2024-12-29T17:53:26.216Z","updated_at":"2026-01-01T09:30:15.730Z","avatar_url":"https://github.com/jms.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Rust VIN Decoder\n\nrvindecoder is a hobby project, a web application in Rust to decode VIN numbers inspired \nby NHTSA and the data available, for reference\n\nhttps://vpic.nhtsa.dot.gov/\n\nhttps://vpic.nhtsa.dot.gov/api/\n\nThe application was made to try out axum, bb8 and tiberius packages. \n\nthe repository includes a script to load the data `load-data.sh` in a docker container\nusing the image `mcr.microsoft.com/azure-sql-edge` and get the DB up\n\nTo run the app:\n\nadd an `.env` file with the following:\n```dotenv\nDB_HOST=localhost\nDB_PORT=1433\nDB_USERNAME=\"sa\"\nDB_PASSWORD=\"devP4sswrd\"\nDB_NAME=\"vpiclist_lite1\"\nRUST_LOG=\"rvindecoder=info,tower_http=debug,axum::rejection=trace\"\n```\nrun the script or makefile target:\n```shell\n./load-data.sh\n# or\nmake load_data\n```\nrun the app\n```shell\ncargo run\n\n   Compiling rvindecoder v0.1.0 (/home/jms/Projects/rvindecoder)\n    Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.81s\n     Running `target/debug/rvindecoder`\n2024-12-22T20:15:21.388769Z  INFO rvindecoder: listening on 0.0.0.0:3000\n```\nif everything is ok, it can be tested using curl:\n```shell\ncurl http://localhost:3000/decode/3FA6P0LU1KR1653572 | jq \n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100  2691  100  2691    0     0   9177      0 --:--:-- --:--:-- --:--:--  9153\n{\n  \"side_air_bag_locations\": \"1st and 2nd Rows\",\n  \"bus_type\": \"Not Applicable\",\n  \"electronic_stability_control_(esc)\": \"Standard\",\n  \"trailer_body_type\": \"Not Applicable\",\n  \"dynamic_brake_support_(dbs)\": \"Standard\",\n  \"suggested_vin\": \"\",\n  \"engine_brake_(hp)_from\": \"188\",\n  \"wheel_size_front_(inches)\": \"17\",\n  \"plant_city\": \"HERMOSILLO\",\n  \"automatic_crash_notification_(acn)_/_advanced_automatic_crash_notification_(aacn)\": \"Standard\",\n  \"body_class\": \"Sedan/Saloon\",\n  \"model_year\": \"2019\",\n  \"doors\": \"4\",\n  \"crash_imminent_braking_(cib)\": \"Standard\",\n  \"series\": \"SE Hybrid\",\n  \"number_of_seats\": \"5\",\n  \"bed_type\": \"Not Applicable\",\n  \"trailer_type_connection\": \"Not Applicable\",\n  \"anti_lock_braking_system_(abs)\": \"Standard\",\n  \"knee_air_bag_locations\": \"1st Row (Driver and Passenger)\",\n  \"custom_motorcycle_type\": \"Not Applicable\",\n  \"plant_country\": \"MEXICO\",\n  \"adaptive_driving_beam_(adb)\": \"Standard\",\n  \"daytime_running_light_(drl)\": \"Standard\",\n  \"wheel_size_rear_(inches)\": \"17\",\n  \"bus_floor_configuration_type\": \"Not Applicable\",\n  \"motorcycle_chassis_type\": \"Not Applicable\",\n  \"steering_location\": \"Left-Hand Drive (LHD)\",\n  \"model\": \"Fusion\",\n  \"top_speed_(mph)\": \"155\",\n  \"tire_pressure_monitoring_system_(tpms)_type\": \"Direct\",\n  \"axles\": \"2\",\n  \"auto_reverse_system_for_windows_and_sunroofs\": \"Standard\",\n  \"keyless_ignition\": \"Standard\",\n  \"wheel_base_(inches)_from\": \"112.20\",\n  \"possible_values\": \"\",\n  \"gross_vehicle_weight_rating_from\": \"Class 1: 6,000 lb or less (2,722 kg or less)\",\n  \"blind_spot_warning_(bsw)\": \"Standard\",\n  \"gross_vehicle_weight_rating_to\": \"Class 1: 6,000 lb or less (2,722 kg or less)\",\n  \"lane_departure_warning_(ldw)\": \"Standard\",\n  \"lane_keeping_assistance_(lka)\": \"Standard\",\n  \"motorcycle_suspension_type\": \"Not Applicable\",\n  \"other_engine_info\": \"4V AtK HEV\",\n  \"error_code\": \"0\",\n  \"semiautomatic_headlamp_beam_switching\": \"Standard\",\n  \"error_text\": \"0 - VIN decoded clean. Check Digit (9th position) is correct\",\n  \"engine_number_of_cylinders\": \"4\",\n  \"vehicle_type\": \"PASSENGER CAR\",\n  \"number_of_seat_rows\": \"2\",\n  \"seat_belt_type\": \"Manual\",\n  \"additional_error_text\": \"\",\n  \"displacement_(l)\": \"2.0\",\n  \"manufacturer_name\": \"FORD MOTOR COMPANY, MEXICO\",\n  \"front_air_bag_locations\": \"1st Row (Driver and Passenger)\",\n  \"cab_type\": \"Not Applicable\",\n  \"fuel_type_primary\": \"Gasoline\",\n  \"plant_state\": \"STATE OF MEXICO\",\n  \"engine_manufacturer\": \"Ford\",\n  \"adaptive_cruise_control_(acc)\": \"Standard\",\n  \"pedestrian_automatic_emergency_braking_(paeb)\": \"Standard\",\n  \"make\": \"FORD\",\n  \"forward_collision_warning_(fcw)\": \"Standard\",\n  \"displacement_(cc)\": \"2000.0\",\n  \"electrification_level\": \"Strong HEV (Hybrid Electric Vehicle)\",\n  \"displacement_(ci)\": \"122.04748818946\",\n  \"vehicle_descriptor\": \"3FA6P0LU*KR\",\n  \"fuel_type_secondary\": \"Electric\",\n  \"traction_control\": \"Standard\",\n  \"engine_configuration\": \"In-Line\",\n  \"backup_camera\": \"Standard\",\n  \"base_price_($)\": \"27555\",\n  \"number_of_wheels\": \"4\"\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjms%2Frvindecoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjms%2Frvindecoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjms%2Frvindecoder/lists"}