npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

npm-myrenaultapi

v1.0.1

Published

Provides an API for Renault / Dacia / Alpine

Readme

🚨 I sold my Renault Zoe so I can't test more things anymore. I hope this repo will continue to live with your contributions.

MyRenaultAPI

MyRenaultAPI is an npm package that provides an interface to interact with the Renault API. This package allows developers to easily access and manage data from their Renault vehicles.

Note: This is not an official library. It uses endpoints from the official MyRenault application.

Requirement

  • Node >= 12.0.0

Installation

To install the package, use npm:

npm install myrenaultapi

Usage

Here is an example of how to use the MyRenaultAPI package:

import MyRenaultAPI from 'myrenaultapi'

const renault = new MyRenaultAPI({
  username: '[email protected]',
  password: 'your-password',
});

renault.login()
  .then(() => {
    return renault.getVehicleDetails('my-super-vin');
  })
  .then(vehicle => {
    console.log(vehicle);
  })
  .catch(error => {
    console.error(error);
  });

API Methods

login(force?: boolean)

Authenticates the user.

Note: You don't have to login everytime, but there is already a condition to avoid login if previous one is still usable.

Parameters

  • force (optional, boolean):
    • true: Forces a login, regardless of session validity.
    • false (default): Skips login if the current session is still valid.

Returns

A Promise that resolves when the login process is complete.

Example

await renault.login(true); // Forces a login

getVehicleDetails(vin: string)

Get vehicle details for the given vehicle VIN.

Parameters

  • vin (string)

Returns

A Promise that resolves with many informations about the vehicle.

Example

renault.login()
  .then(() => {
    return renault.getVehicleDetails('my-super-vin');
  })
  .then(vehicle => {
    console.log(vehicle);
  })
  .catch(error => {
    console.error(error);
  });

getVehiclesDetails()

Get details for all vehicles the user own.

Returns

A Promise that resolves with a list of vehicles informations.

Example

renault.login()
  .then(() => {
    return renault.getVehiclesDetails();
  })
  .then(vehicles => {
    console.log(vehicles);
  })
  .catch(error => {
    console.error(error);
  });

getVehicleData(vin: string, endpoint: VehicleDataEndpoint)

Get data for a given vin vehicle and a given endpoint.

Parameters

  • vin (string)
  • endpoint (VehicleDataEndpoint)

Returns

A Promise that resolves with information for the given endpoint.

Example

renault.login()
  .then(() => {
    return renault.getVehicleData('my-super-vin', VehicleDataEndpointVersion2.BatteryStatus);
  })
  .then(vehicle => {
    console.log(vehicle);
  })
  .catch(error => {
    console.error(error);
  });

getVehicleCapabilities(vin: string)

Get capabilities of the vehicle.

Parameters

  • vin (string)

Returns

A Promise that resolves with capabilities for the given VIN vehicle.

Example

renault.login()
  .then(() => {
    return renault.getVehicleCapabilities('my-super-vin');
  })
  .then(vehicle => {
    console.log(vehicle);
  })
  .catch(error => {
    console.error(error);
  });

postVehicleAction(vin: string, endpoint: ActionEndpoint, data: any)

Post an action to the given vehicle and given endpoint.

Note: Data can be very different for each endpoint. Please check the documentation.

Parameters

  • vin (string)
  • endpoint (ActionEndpoint)
  • data (any)

Returns

A Promise that resolves.

Example

renault.login()
  .then(() => {
    const body = {
      data: {
        type: 'ChargingStart',
        attributes: {
          action: 'start',
      },
    };

    return renault.postVehicleAction('my-super-vin', ActionEndpointVersion1.ChargeMode, body)
  })
  .then(() => {
    console.log('Success')
  })
  .catch(error => {
    console.error(error)
  })

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

Distributed under the terms of the MIT license, MyRenaultAPI is free and open source software.

Disclaimer

This project is not affiliated with, endorsed by, or connected to Renault. I accept no responsibility for any consequences, intended or accidental, as a as a result of interacting with Renault's API using this project.

Credits

This project was heavily based on Renault API, a Python Renault API.