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 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-hoyolab

v2.0.2

Published

node-hoyolab is an unofficial API Wrapper library developed to integrate with the Hoyolab, which provides a more convenient way to access the Hoyolab API.

Downloads

65

Readme

This is a NodeJS library designed as a connector to the Official HoYoLab API, commonly accessed by browsers easily and quickly. This library supports both ESM and CJS, but can only be used in NodeJS environments starting from version 8.17 and above.

This repository is forked from HoyoApi, which is no longer maintained. Therefore, I have refactored the code, added new features, and will continue to maintain and update this repository.

view - Documentation

Install

Version

For NPM npm install node-hoyolab

For Yarn yarn install node-hoyolab

Features

| Features | Genshin Impact | Honkai Impact | Honkai Star Rails | Zenless Zone Zero | | ----------------- | -------------- | ------------- | ----------------- | ----------------- | | Daily Check-In | ✅ | ✅ | ✅ | ✅ | | Redeem | ❌ | ❌ | ❌ | ❌ | | Battle Chronicles | ✅ | ✅ | ✅ | ✅ | | Diary | ✅ | ❌ | ❌ | ❌ | | Daily Note | ✅ | ❌ | ✅ | ✅ | | TCG | ✅ | ❌ | ❌ | ❌ |

How to obtain HoYoLab Cookie/Token

  • Extension Version (PC)
    1. Download the extension Cookie-Editor and install it.
    2. Next, go to Hoyolab and log in with your HoYoLab account.
    3. Open the extension.
    4. Once you've opened the extension, copy the required cookies ltoken_v2 and ltuid_v2.
    5. Finally, you can use the cookies to run this package.
  • Inspect Element/Dev Tools (PC)
    1. Go to Hoyolab and log in with your HoYoLab account.
    2. Press ctrl+shift+i / right click > Inspect
    3. Go to Application and go to tab Cookie
    4. copy the required cookies ltoken_v2 and ltuid_v2 from cookie tab.
    5. Done

About Redeem Function

why the function isnot working? because the the API/site Genshin Impact Gift cookie token has a short expiration time, so if it has expired, it needs to be manually refreshed. It has been observed that every few days, when logging in to the game Hoyoverse, it always requests reauthentication first.

Guides

For detailed guides, see the following:

Disclaimer

❤️ Always check for the latest version for new features or bug fixes.

🚀 If you have an issue or idea, let me know.

© 2024-present. Licensed under the MIT License.