MCPcopy Index your code
hub / github.com/Hacksore/bluelinky

github.com/Hacksore/bluelinky @v10.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v10.0.0 ↗ · + Follow
312 symbols 756 edges 48 files 17 documented · 5% updated 10mo agov10.0.0 · 2025-08-13★ 46229 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bluelinky

An unofficial nodejs API wrapper for Hyundai BlueLink

npm Discord

Install

npm install bluelinky

Example

const {BlueLinky} = require('bluelinky');

const client = new BlueLinky({
  username: 'someguy@example.com',
  password: 'hunter1',
  brand: 'hyundai',
  region: 'US',
  pin: '1234'
});

client.on('ready', async () => {
  const vehicle = client.getVehicle('5NMS55555555555555');
  try {
    const response = await vehicle.lock();
    console.log(response);
  } catch (err) {
    // log the error from the command invocation 
  }
});

client.on('error', async (err) => {
  // something went wrong with login
});

Debug locally

Ensure you have a config.json that matches the structure of the following, with your account details

{
  "username": "email",
  "password": "password",
  "pin": "pin",
  "brand": "kia" or "hyundai",
  "vin": "vin",
  "useInfo": false
}

Run an install for all the dependencies, npm install

Now you can invoke the debug.ts script with npm run debug

Documentation

Checkout out the docs for more info.

Important information for login problems: - If you experience login problems, please logout from the app on your phone and login again. You might need to ' upgrade ' your account to a generic Kia/Hyundai account, or create a new password or PIN. - After you migrated your Bluelink account to a generic Hyundai account, or your UVO account to a generic Kia account, make sure that both accounts have the same credentials (userid and password) to avoid confusion in logging in.

EU specific options

EU has specific Bluelinky options :

  • language: The language to use when login into the system, it will also change the laguage of your mobile app. en by default.
  • stampMode: Advanced The kind of stamping mechanism to use (LOCAL | DISTANT). DISTANT by default. :warning: though LOCAL seems to work properly, it's in beta for now.
  • stampFile: Advanced The DISTANT stamp source to use. https://raw.githubusercontent.com/neoPix/bluelinky-stamps/master/${brand}-${appId}.v2.json by default.

Custom Stamps

In the EU region, stamps are used to sign every API queries. These stamps have a 1 week validity. Those stamps are using a tricky algorithm and cannot be replicated by Bluelinky and have to be generated by an external solution. An http call is performed to get the existing tokens. It is possible to specify an other path using the stampFile option. This path can be a local file prefixed by file:// or from any webserver.

By default the case is 24H, but it can but customized at will. A nice trick is to run you own stamp generator http server and querying it regularly (with low cache timeout) for fresh stamps.

The JSON file must respect this format

Supported Features

  • Lock
  • Unlock
  • Start (with climate control)
  • Stop
  • Status (full, parsed, cached)
  • odometer
  • location
  • startCharge
  • monthlyReport
  • tripInfo
  • EV: driveHistory
  • EV: getChargeTargets
  • EV: setChargeLimits

Supported Regions

| Regions

Show your support

Give a ⭐️ if this project helped you!

Warnings

Using Bluelinky may result in draining your 12V battery when refreshing from the car too often. Make sure you have read and understood the terms of use of your Kia or Hyundai account before using Bluelinky.

Extension points exported contracts — how you extend this code

AuthStrategy (Interface)
(no doc) [10 implementers]
src/controllers/authStrategies/china.authStrategy.ts
Stringifiable (Interface)
(no doc)
src/tools/common.tools.ts
CanadianInfo (Interface)
(no doc)
src/vehicles/canadian.vehicle.ts
EuropeanEndpoints (Interface)
(no doc)
src/interfaces/european.interfaces.ts
AmericaBrandEnvironment (Interface)
(no doc)
src/constants/america.ts
AuthStrategy (Interface)
(no doc) [14 implementers]
src/controllers/authStrategies/authStrategy.ts
EUPOIInformation (Interface)
(no doc)
src/interfaces/european.interfaces.ts
StampCollection (Interface)
(no doc)
src/constants/stamps.ts

Core symbols most depended-on inside this repo

manageBluelinkyError
called by 65
src/tools/common.tools.ts
getVehicleHttpService
called by 43
src/controllers/chinese.controller.ts
toString
called by 27
src/tools/common.tools.ts
updateRates
called by 19
src/vehicles/european.vehicle.ts
parseDate
called by 17
src/util.ts
updateRates
called by 17
src/vehicles/australia.vehicle.ts
updateRates
called by 17
src/vehicles/chinese.vehicle.ts
celciusToTempCode
called by 12
src/util.ts

Shape

Method 158
Function 61
Interface 50
Class 34
Enum 9

Languages

TypeScript100%

Modules by API surface

src/vehicles/australia.vehicle.ts23 symbols
src/vehicles/european.vehicle.ts22 symbols
src/vehicles/chinese.vehicle.ts22 symbols
src/interfaces/common.interfaces.ts22 symbols
src/vehicles/canadian.vehicle.ts19 symbols
src/controllers/european.controller.ts16 symbols
src/controllers/australia.controller.ts16 symbols
src/vehicles/american.vehicle.ts15 symbols
src/controllers/chinese.controller.ts15 symbols
src/index.ts12 symbols
src/controllers/canadian.controller.ts10 symbols
src/controllers/american.controller.ts9 symbols

For agents

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

⬇ download graph artifact