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

genshin-api

v2.3.0

Published

Get information about Weapon/Character/Elements etc. with one package.

Downloads

38,989

Readme

Unofficial Genshin Api

This package use genshin.jmp.blue/ for the information and is not affiliated with the genshin.jmp.blue website and its developers

If you need help feel free to join our Discord Server

Following Functions you can use too:

| Function | |:-----------------:| | Artifacts(type) | | Characters(type) | | Domains(type) | | Elements(type) | | Enemies(type) | | Nations(type) | | Weapons(type) |

Example

const genshin = require("genshin-api")

//In this example we want to get some information about a character
genshin.Characters('arlecchino').then((data) => {
  console.log(data) // This return an array with information
})

//OR with async/await function

const data = async() => {
    const data = await genshin.Characters('arlecchino');
    console.log(data); // This return an array with information too
}

Example response from Above

{
  name: 'Arlecchino',
  title: 'Dire Balemoon',
  vision: 'Pyro',
  weapon: 'Polearm',
  gender: 'Female',
  nation: 'Snezhnaya',
  affiliation: 'Fatui',
  specialDish: "Hearthfire's Trail",
  rarity: 5,
  release: '2024-04-24',
  constellation: 'Ignis Purgatorius',
  birthday: '0000-08-22',
  description: '"The Knave," Fourth of the Fatui Harbingers. A poised, ruthless diplomat. To the children in the House of the Hearth, she is their feared yet dependable "Father."',
  skillTalents: [
    {
      name: 'Normal Attack: Invitation to a Beheading',
      unlock: 'Normal Attack',
      description: 'Normal Attack\n' +
        'Performs up to 6 consecutive spear strikes.\n' +
        'Charged Attack\n' +
        'Consumes a fixed amount of Stamina, dashing toward a nearby opponent and cleaving once.\n' +
        'Continuously holding this button will cause Arlecchino to consume Stamina and engage in up to 5s of high-speed movement.\n' +
        'Plunging Attack\n' +
        'Plunges from mid-air to strike the ground below, damaging opponents along the path and dealing AoE DMG upon impact.\n' +
        'Masque of the Red Death\n' +
        'When Arlecchino has a Bond of Life equal to or greater than 30% of her Max HP, she will enter the "Masque of the Red Death" state, where her Normal, Charged, and Plunging Attacks will be converted to deal Pyro DMG. This cannot be overridden.\n' +
        `When in the "Masque of the Red Death" state, Arlecchino's Normal Attacks will deal extra DMG to opponents on hit that scales off her ATK multiplied by a certain ratio of her current Bond of Life 
percentage. This will consume 7.5% of said current Bond of Life. Her Bond of Life can be consumed this way every 0.03s. When her Bond of Life is consumed in this manner, All Is Ash's CD will decrease by 0.8s.`,
      upgrades: [Array],
      type: 'NORMAL_ATTACK'
    },
    {
      name: 'All Is Ash',
      unlock: 'Elemental Skill',
      description: 'Summons forth Balemoon Bloodfire, dealing Pyro DMG to multiple nearby opponents and performing a dash-cleave against one of them, dealing AoE Pyro DMG.\n' +
        'Opponents hit by the aforementioned attack will have a Blood-Debt Directive applied to them.\n' +
        'Blood-Debt Directive\n' +
        'Lasts 30s. Every 5s, it will deal 1 instance of Pyro DMG to the opponent. Max 2 instances. This DMG will be considered Elemental Skill DMG.\n' +
        'When Arlecchino uses a Charged Attack or her Elemental Burst, Balemoon Rising, she will absorb and clear nearby Blood-Debt Directives. Each Directive absorbed grants her a Bond of Life worth 65% 
of her Max HP.\n' +
        'The maximum value of the Bond of Life she can be granted through Blood-Debt Directives within 35s after using her Elemental Skill is 145% of her Max HP. Using the Elemental Skill again during this duration will restart the count on duration and the limit on the value of Bond of Life she may gain from Blood-Debt Directives.',
      upgrades: [Array],
      type: 'ELEMENTAL_SKILL'
    },
    {
      name: 'Balemoon Rising',
      unlock: 'Elemental Burst',
      description: "Arlecchino's great wing of Balemoon Bloodfire beats as she absorbs and clears Blood-Debt Directives around her. She deals AoE Pyro DMG before clearing the CD of All Is Ash and healing 
herself. The healing is based on her Bond of Life value and ATK.",
      upgrades: [Array],
      type: 'ELEMENTAL_BURST'
    }
  ],
  passiveTalents: [
    {
      name: 'Agony Alone May Be Repaid',
      unlock: 'Unlocked at Ascension 1',
      description: 'Blood-Debt Directives have the following characteristics:\n' +
        'Arlecchino will be granted a Bond of Life worth 130% of her Max HP when an opponent to which she herself applied a Directive is defeated.\n' +
        '5s after a Directive is applied, it will be upgraded to a Blood-Debt Due. When absorbed, it will instead grant Arlecchino a Bond of Life worth 130%.\n' +
        'A Bond of Life created in the aforementioned ways cannot exceed the original limit on the value of Bonds of Life obtained through All Is Ash.',
      level: 1
    },
    {
      name: 'Strength Alone Can Defend',
      unlock: 'Unlocked at Ascension 4',
      description: 'Arlecchino gains 1% All Elemental and Physical RES for every 100 ATK she has in excess of 1,000. The maximum RES increase she can gain this way for each is 20%.',
      level: 4
    },
    {
      name: 'The Balemoon Alone May Know',
      unlock: 'Unlocked Automatically',
      description: 'While in combat, Arlecchino gains a 40% Pyro DMG Bonus and can only be healed through Balemoon Rising.'
    }
  ],
  constellations: [
    {
      name: '"All Reprisals and Arrears Are Mine to Bear..."',
      unlock: 'Constellation Lv. 1',
      description: "Masque of the Red Death is further enhanced, the value of the increase is 100%. Additionally, Arlecchino's interruption resistance is increased when she performs Normal or Charged Attacks while affected by the Masque of the Red Death.",
      level: 1
    },
    {
      name: '"All Rewards and Retribution, Mine to Bestow..."',
      unlock: 'Constellation Lv. 2',
      description: 'Blood-Debt Directives are now already Blood-Debt Due when first applied.\n' +
        'When Arlecchino absorbs such a Due, she unleashes Balemoon Bloodfire in front of her, dealing 900% of her ATK as AoE Pyro DMG and increasing her All Elemental RES and Physical RES by 20% for 15s. This effect can trigger once every 10s.\n' +
        'You must first unlock the Passive Talent "Agony Alone May Be Repaid."',
      level: 2
    },
    {
      name: '"You Shall Become a New Member of Our Family..."',
      unlock: 'Constellation Lv. 3',
      description: 'Increases the Level of Normal Attack: Invitation to a Beheading by 3.\n' +
        'Maximum upgrade level is 15.',
      level: 3
    },
    {
      name: '"You Shall Love and Protect Each Other Henceforth..."',
      unlock: 'Constellation Lv. 4',
      description: "When Arlecchino successfully absorbs a Blood-Debt Directive, Balemoon Rising's CD will decrease by 2s and 15 Energy will be restored to her. This effect can occur once every 10s.",    
      level: 4
    },
    {
      name: '"For Alone, We Are as Good as Dead..."',
      unlock: 'Constellation Lv. 5',
      description: 'Increases the Level of Balemoon Rising by 3.\n' +
        'Maximum upgrade level is 15.',
      level: 5
    },
    {
      name: '"From This Day On, We Shall Delight in New Life Together."',
      unlock: 'Constellation Lv. 6',
      description: "The DMG of Balemoon Rising is increased by Arlecchino's ATK multiplied by 700% of Arlecchino's current Bond of Life percentage.\n" +
        'For 20s after Arlecchino uses All Is Ash, both her Normal Attacks and Elemental Burst gain 10% increased CRIT Rate and 70% increased CRIT DMG. This effect can be triggered up to once every 15s.',      level: 6
    }
  ],
  vision_key: 'PYRO',
  weapon_type: 'POLEARM',
  image: 'https://genshin.jmp.blue/characters/arlecchino/portrait'
}

❗ Note ❗

If you leave the type blank you get all available options you can use.