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 🙏

© 2026 – Pkg Stats / Ryan Hefner

powerthesaurus-api

v2.0.3

Published

Look up English synonyms, antonyms, etc using powerthesaurus.org

Readme

powerthesaurus-api

Build Coverage Downloads Size

Look up English synonyms, antonyms, and more using powerthesaurus.org: a crowdsourced corpus of nearly 80 million synonyms and 4 million antonyms.

Install

npm:

npm install powerthesaurus-api

Use

var thesaurus = require('powerthesaurus-api')

// Callbacks:
thesaurus('car', function(err, res) {
  if (err) throw err
  console.log(res)
})

// Promises and given a kind:
thesaurus('blue', 'antonyms').then(
  res => {
    console.log(res)
  },
  err => {
    throw err
  }
)

Yields:

[
  {word: 'vehicle', parts: ['noun'], topics: ['carriage', 'transport']},
  {word: 'motorcar', parts: ['noun', 'adjective'], topics: ['vehicle']},
  {word: 'automobile', parts: ['noun', 'adjective'], topics: ['vehicle', 'transport']},
  {word: 'auto', parts: ['noun', 'adjective'], topics: ['transport', 'technology']},
  {word: 'railcar', parts: ['noun'], topics: []},
  // …and 45 more entries
]
[
  {word: 'happy', parts: ['adjective'], topics: ['characteristic', 'decency']},
  {word: 'lighthearted', parts: ['adjective'], topics: ['characteristic', 'happiness']},
  {word: 'joyful', parts: ['adjective'], topics: ['characteristic', 'happiness']},
  {word: 'upbeat', parts: ['adjective'], topics: ['characteristic', 'happiness']},
  {word: 'joyous', parts: ['adjective'], topics: ['characteristic', 'happiness']},
  // …and 45 more entries
]

API

thesaurus(word[, kind][, callback])

Look up words relating to word.

Parameters
  • word (string) — Word to look up
  • kind (Kind, default: 'synonyms') — Type of relation between looked up word and related words, can be: 'synonyms', 'antonyms', 'related', 'narrower', 'broader', 'sound_like', 'similar', or 'rhymes'
  • callback (Function, optional) — Callback called when done. Returns a promise when not given
Returns

When given a callback, returns nothing and calls callback with either an error or a list of entries. When not given a callback, returns a Promise, that is either resolved with a list of entries or rejected with an error. Up to 50 entries are found by powerthesaurus-api

Entry

Object representing a related word, with the following fields:

  • word (string) does indeed relate to the looked up word
  • parts (string[]) — List of parts of speech of this entry. Can include 'adjective', 'adverb', 'conjunction', 'expression', 'idiom', 'interjection', 'noun', 'phrasal verb', 'pronoun', 'preposition', and/or 'verb'
  • topics (string[]) — List of topics of this entry

License

MIT © Titus Wormer