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

jobs-to-be-done

v0.1.6

Published

Understand why customers really buy

Readme

jobs-to-be-done

Understand why customers really buy.

Quick Start

npx jobs-to-be-done

Install

npm install jobs-to-be-done

CLI

# Interactive discovery
jobs-to-be-done

# Discover jobs for a product
jobs-to-be-done discover "code review tool"

# Generate job stories
jobs-to-be-done stories "engineering team"

# Map job hierarchy
jobs-to-be-done map "ship software faster"

# Export
jobs-to-be-done export --format md

SDK

import { jtbd } from 'jobs-to-be-done'

// Discover jobs
const jobs = await jtbd.discover({
  product: 'AI code review tool',
  customer: 'engineering teams'
})

// Returns job hierarchy
// {
//   mainJob: 'Ship quality software faster',
//   relatedJobs: [...],
//   emotionalJobs: [...],
//   socialJobs: [...]
// }

// Create job stories
const stories = jtbd.stories({
  when: 'a PR is submitted',
  iWantTo: 'get feedback quickly',
  soICan: 'merge and move on to the next feature'
})

// Map forces of progress
const forces = jtbd.forces({
  pushAway: 'Slow reviews blocking releases',
  pullToward: 'Ship features daily',
  anxiety: 'AI might miss important issues',
  habit: 'Trust in human reviewers'
})

The Framework

┌─────────────────────────────────────────────────────────────────────┐
│  THE JOB                                                            │
│  ─────────────────────────────────────────────────────────────────  │
│  When [situation], I want to [motivation], so I can [outcome]       │
├─────────────────────────────────────────────────────────────────────┤
│  JOB HIERARCHY                                                      │
│  ─────────────────────────────────────────────────────────────────  │
│  Main Job: The core functional job                                  │
│  Related Jobs: Jobs that come before/after                          │
│  Emotional Jobs: How they want to feel                              │
│  Social Jobs: How they want to be perceived                         │
├─────────────────────────────────────────────────────────────────────┤
│  FORCES OF PROGRESS                                                 │
│  ─────────────────────────────────────────────────────────────────  │
│                                                                     │
│     Push ────────────────►  ◄──────────────── Habit                 │
│   (pain of current)                    (comfort of current)         │
│                                                                     │
│     Pull ────────────────►  ◄──────────────── Anxiety               │
│   (appeal of new)                      (fear of new)                │
│                                                                     │
├─────────────────────────────────────────────────────────────────────┤
│  OUTCOME EXPECTATIONS                                               │
│  ─────────────────────────────────────────────────────────────────  │
│  Desired outcomes: What success looks like                          │
│  Undesired outcomes: What they want to avoid                        │
└─────────────────────────────────────────────────────────────────────┘

Job Stories

// Generate job stories
const story = jtbd.story({
  when: 'I submit a pull request',
  iWantTo: 'understand if my code is ready to merge',
  soICan: 'ship the feature and move on'
})

// Generate from customer interviews
const stories = await jtbd.storiesFromInterview(`
  "I hate waiting 2 days for code review.
  By the time I get feedback, I've context-switched
  to something else and have to reload everything."
`)

Forces Analysis

// Analyze switching forces
const forces = jtbd.analyzeForces({
  current: 'Manual code review',
  new: 'AI code review'
})

// {
//   push: ['Reviews take 2-3 days', 'Inconsistent feedback'],
//   pull: ['Instant feedback', 'Always available'],
//   anxiety: ['AI might miss security issues', 'Team resistance'],
//   habit: ['Trust human judgment', 'Current process works']
// }

// Calculate momentum
const momentum = jtbd.momentum(forces)
// { score: 72, recommendation: 'Strong potential - address anxiety' }

MCP Server

{
  "mcpServers": {
    "jtbd": {
      "command": "npx",
      "args": ["jobs-to-be-done", "mcp"]
    }
  }
}

"What job does my product get hired for?" "Write job stories for my target customer" "Analyze the forces preventing customers from switching"

Integration

import { jtbd } from 'jobs-to-be-done'
import { icp } from 'ideal-customer-profile'

// Jobs inform ICP
const jobs = await jtbd.discover({ product: 'AI code review' })
const profile = await icp.fromJobs(jobs)

// Jobs inform feature prioritization
const features = ['instant review', 'GitHub integration', 'Slack alerts']
const ranked = jtbd.rankFeatures(features, jobs)

License

MIT