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

langchain-stackresolve

v0.1.0

Published

StackResolve tools for LangChain.js: resolve a task to the right tool, get the current way to build something, audit a domain for agent-readiness, and research a company.

Downloads

50

Readme

langchain-stackresolve

StackResolve tools for LangChain.js. Give an agent the ability to pick the right software for a task, get today's way to build something, compare products on facts, and research a company from its domain.

npm install langchain-stackresolve @langchain/core

Set STACKRESOLVE_API_KEY (get one at stackresolve.dev; there is a free tier). Public endpoints work without a key.

Use

import { createAgent } from 'langchain'
import { agentReadyTools } from 'langchain-stackresolve'

const agent = createAgent({
  model: 'anthropic:claude-sonnet-5',
  tools: agentReadyTools(),
})

const res = await agent.invoke({
  messages: [{ role: 'user', content: 'What should I use to scrape a JS-heavy site?' }],
})

Tools

| Tool | What it answers | | --- | --- | | stackresolve_resolve | Which tool should I use for this task, and why | | stackresolve_how_to | What is the current, cited way to build this | | stackresolve_find_tools | Which products fit this task | | stackresolve_compare_products | X vs Y, field by field | | stackresolve_audit | Can an agent integrate this domain without a human | | stackresolve_get_company | What is this company | | stackresolve_get_pricing | What does it cost right now | | stackresolve_find_competitors | Who are the real alternatives | | stackresolve_research_company | Anything else, researched live with sources |

Bundles

Nine tools is a lot to put in front of one model. Pick the half you need.

import { stackResolveTools, agentReadyTools, companyDataTools } from 'langchain-stackresolve'

agentReadyTools()   // resolve, how_to, find_tools, compare, audit
companyDataTools()  // get_company, get_pricing, find_competitors, research_company
stackResolveTools() // all nine, sharing one client

Individual factories are exported too (createResolveTool, createAuditTool, and so on) when you want to name or filter tools yourself.

Options

Every factory takes the SDK options.

agentReadyTools({
  apiKey: process.env.STACKRESOLVE_API_KEY, // default: that env var
  baseUrl: 'https://api.stackresolve.dev',  // default
  fetch: myFetch,                           // default: global fetch
  client: existingStackResolveClient,       // reuse a client you already built
})

Errors

Tools return API and network errors as readable text instead of throwing, so a missing key or a rate limit becomes something the agent can react to rather than an exception that ends the run. Schema validation still rejects, because a malformed call should never reach the API.

License

MIT