Adding library for my max30102

Hi all i am locking for library to suut with max 30102 and add it to my program i find sparkfun but still not working corectly i used to use DFRobo_max30102
This js the guthub link

I serch for it in platformio to.instal it but i didint find it ,i find the same name but another conten
So i am locking for way to add library ofline to.my project
I am try to do.that with esp32 not arduino

The library is not registered in the PlatformIO registry.
However, you can easily include the library via lib_deps in platformio.ini:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = 
  https://github.com/DFRobot/DFRobot_MAX30102

The example sketch compiles fine for ESP32:

#include <Arduino.h>
#include <DFRobot_MAX30102.h>

DFRobot_MAX30102 particleSensor;

void setup() {
    Serial.begin(115200);
    while (!particleSensor.begin()) {
        Serial.println("MAX30102 was not found");
        delay(1000);
    }

    particleSensor.sensorConfiguration(/*ledBrightness=*/0x1F, /*sampleAverage=*/SAMPLEAVG_4,
                                       /*ledMode=*/MODE_MULTILED, /*sampleRate=*/SAMPLERATE_400,
                                       /*pulseWidth=*/PULSEWIDTH_411, /*adcRange=*/ADCRANGE_4096);
}

void loop() {
    Serial.print("R=");
    Serial.print(particleSensor.getRed());
    Serial.print(" IR=");
    Serial.print(particleSensor.getIR());
    Serial.println();
    delay(100);
}

That is really amizing thank you