
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
@decodo/langchain-ts
Advanced tools
A Node.js LangChain plugin that enables developers to use Decodo's Scraper API alongside their LangChain applications.
npm install @decodo/langchain-ts
To use the tools in this project, you will need a Decodo Advanced Web Scraping API subscription. Free trials are available on the dashboard.
Once you have a plan activated, take a note of your generated username and password:

A simple agentic example:
import dotenv from 'dotenv';
import { ChatOpenAI } from '@langchain/openai';
import { createReactAgent } from '@langchain/langgraph/prebuilt';
import { DecodoUniversalTool } from '@decodo/langchain-ts';
dotenv.config();
const main = async () => {
const username = process.env.SCRAPER_API_USERNAME!;
const password = process.env.SCRAPER_API_PASSWORD!;
const decodoUniversalTool = new DecodoUniversalTool({ username, password });
const model = new ChatOpenAI({
model: 'gpt-4o-mini',
});
const agent = createReactAgent({
llm: model,
tools: [decodoUniversalTool],
});
const result = await agent.invoke({
messages: [
{
role: 'user',
content: 'scrape the wikipedia NBA 2025 season page and tell me who won in 2025?',
},
],
});
console.log(result.messages[result.messages.length - 1].content);
};
if (require.main === module) {
main();
}
See the tools/ directory for a list of available tools.
See the examples/ directory to see tools in action.
All tools accept a DecodoConfig object:
type DecodoConfig = {
username: string; // Your Web Advanced product username
password: string; // Your Web Advanced product password
};
See the Scraper API documentation for a list of available parameters
MIT
For support, please visit Decodo's documentation or open an issue on GitHub.
FAQs
LangChain tools for Decodo's Scraper API
The npm package @decodo/langchain-ts receives a total of 145 weekly downloads. As such, @decodo/langchain-ts popularity was classified as not popular.
We found that @decodo/langchain-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.