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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jishon

v0.1.2

Published

take a search term and get json from jisho

Downloads

7

Readme

jishon

search jisho.org from node and the command line.

examples

there is a promise interface

const jishon = require('jishon')

(async () => {
  const magic = await jishon('magic')

  console.log(magic.sentences[0])
  //  {
  //   japanese: 'くろまほう黒魔法のはなし話をき聞きたいです。がくいん学院ではさわりしかき聞いたことがないんですがきょうみ興味があります。',
  //   english: 'I\'d like to hear about black magic. I was only told the highlights in the academy, and it interests me.\n        — Tatoeba'
  // }
})

// or jishon('tea').then(console.log)

there is also a callback interface

jishon('犬', (error, response) => {
  const {words} = response
  const common = words.find(word => word.tags.includes('common word'))
  console.log(common.meanings[0].english) // => dog (Canis (lupus) familiaris)
  console.log(common.audio.ogg) // => http://d1vjc5dkcd3yh2.cloudfront.net/audio_ogg/10ce3f5eb7b4a9a03c4dafce2af60e28.ogg
})

there is a command line interface

arguments:

# with none of these passed, it will return all three
-w        return words
-s        return sentences
-n        return names

-t 'tag'  filter words by tag
# get the kanji for the first common word matching 'neko'
$ jishon neko -wt 'common word' | jq -r '.[0].japanese'
猫

# get the full name of the first suziki returned
$ jishon suzuki -n  | jq -r '.[0].meanings[0].english'
Suzuki Emi (1985.9.13-)

screen photographs of action

search in english:

search in english

search in japanese:

search in japanese

note that the bottom english meaning is japanese. the dom structure on jishon isn't great. i'll improve that in later

ya but you can pipe it through jq for nice

notes

there is an api, but it doesn't provide everything i need for the projects i'm building with this, so now there's this. it scrapes the websites. fragile as fuck

this will only work until jisho.org change their layout, but for as long as i'm using it in my personal projects it'll stay up to date.

good luck everyone