
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@gonetone/hoyowiki-api
Advanced tools
A unofficial Node.js library for HoYoWiki API, can get the details of Genshin Impact items!
A unofficial Node.js library for HoYoWiki API, can get the details of Genshin Impact items!
Please report any bugs you discover at https://github.com/GoneTone/node-hoyowiki-api/issues.
Node.js 14.0.0 or newer is required.
npm install @gonetone/hoyowiki-api
Get a list of all data:
const {
Character, // Character
// Weapon, // Weapons
// Artifact, // Artifacts
// Enemy, // Enemies and Monsters
// Material, // Teyvat's Resources
// Npc, // NPC Archive
// Animal, // Wildlife
// Book, // Books
// Tutorial, // Tutorial
CharacterFilters, // Character Filters
// WeaponFilters, // Weapons Filters
// ArtifactFilters, // Artifacts Filters
// EnemyFilters, // Enemies and Monsters Filters
// MaterialFilters, // Teyvat's Resources Filters
// NpcFilters, // NPC Archive Filters
// AnimalFilters, // Wildlife Filters
// TutorialFilters, // Tutorial Filters
setLanguage,
Language
} = require('@gonetone/hoyowiki-api')
setLanguage(Language.EnglishUS).then(async () => {
const character = new Character() // Character
// const weapon = new Weapon() // Weapons
// const artifact = new Artifact() // Artifacts
// const enemy = new Enemy() // Enemies and Monsters
// const material = new Material() // Teyvat's Resources
// const npc = new Npc() // NPC Archive
// const animal = new Animal() // Wildlife
// const book = new Book() // Books
// const tutorial = new Tutorial() // Tutorial
/* All Genshin Impact character data list */
const result = await character.getList()
console.log(result)
/* All Genshin Impact character data list (Apply "Pyro, 5-Star" filters) */
const result2 = await character.getList(CharacterFilters.ElementalType.Pyro, CharacterFilters.Quality.Star5)
console.log(result2)
/* Total number of data */
const result3 = await character.getTotal()
console.log(result3)
/* Total number of data (Apply "Pyro, 5-Star" filters) */
const result4 = await character.getTotal(CharacterFilters.ElementalType.Pyro, CharacterFilters.Quality.Star5)
console.log(result4)
/* Search list by character name */
const result5 = await character.searchListByName('Yelan')
console.log(result5)
})
Get specific item details:
const {
Entry,
setLanguage,
Language
} = require('@gonetone/hoyowiki-api')
setLanguage(Language.EnglishUS).then(async () => {
const entry = new Entry()
const result = await entry.get(2252) // "2252" is the ID of the character "Yelan"
console.log(result)
const result2 = await entry.get(2254) // "2254" is the ID of the weapon "Aqua Simulacra"
console.log(result2)
const result3 = await entry.get(1319) // "1319" is the ID of the character level-up material "Runic Fang"
console.log(result3)
})
Keyword search items:
const {
Search,
setLanguage,
Language
} = require('@gonetone/hoyowiki-api')
setLanguage(Language.EnglishUS).then(async () => {
const search = new Search()
const result = await search.get('yel')
console.log(result)
})
Change API language:
Language.EnglishUS - EnglishLanguage.ChineseTW - 繁體中文Language.ChineseCN - 简体中文Language.German - DeutschLanguage.SpanishES - EspañolLanguage.French - FrançaisLanguage.Indonesia - IndonesiaLanguage.Japanese - 日本語Language.Korean - 한국어Language.Portuguese - PortuguêsLanguage.Russian - PусскийLanguage.Thai - ภาษาไทยLanguage.Vietnamese - Tiếng Việtconst {
Entry,
setLanguage,
Language
} = require('@gonetone/hoyowiki-api')
setLanguage(Language.Japanese).then(async () => {
const entry = new Entry()
const result = await entry.get(2252)
console.log(result)
})
FAQs
A unofficial Node.js library for HoYoWiki API, can get the details of Genshin Impact items!
The npm package @gonetone/hoyowiki-api receives a total of 4 weekly downloads. As such, @gonetone/hoyowiki-api popularity was classified as not popular.
We found that @gonetone/hoyowiki-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.