
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
research_agent
Advanced tools
A research agent that uses AI to research the web and summarize and create reports
research_agent leverages AI to automate the research process. It can:
Analyze websites and extract relevant information.
Generate summaries of findings.
Create detailed reports in markdown format.
The library supports multiple AI models
pnpm add research_agent
import { writeFileSync } from 'fs';
import { ResearchManager } from 'research_agent';
const writeToFile = async (fileName, data) => {
writeFileSync(fileName, data);
};
const main = async () => {
const manager = new ResearchManager(); // You can customize the LLM model here
const result = await manager.search('Who is this person in that website "www.youssefhany.dev"?');
// Write the report to a markdown file
await writeToFile('output.md', result);
};
void main();
import { WebPageLoaderWithSummary, QuestionGeneratorAgent, ResearchManager, NotificationManager } from 'research_agent';
import { ChatMistralAI } from '@langchain/mistralai';
const main = async (): Promise<void> => {
const chatgpt = createOpenAIChatModel({
modelName: 'gpt-3.5-turbo',
});
const mistralai = new ChatMistralAI({
apiKey: process.env.MISTRAL_API_KEY,
modelName: 'mistral-large-latest',
});
NotificationManager.addListener(console.log);
const questionGeneratorAgent = new QuestionGeneratorAgent(mistralai); // still not stable with mistral ai
const researchManager = new ResearchManager(mistralai, questionGeneratorAgent, {
maxIterations: 2,
researchWorkerConfig: {
llmModel: chatgpt,
tools: {
webLoader: new WebPageLoaderWithSummary(mistralai),
},
},
});
const query = 'Write a report about ramadan and its importance';
await researchManager.search(query);
};
await main();
This code snippet creates a ResearchManager instance and uses it to search for information about a person on a specific website. The search results are then written to a markdown file.
Multiple AI model support: Choose from OpenAI, Mistral AI, and potentially others.Question generation: Automatically generates questions to guide the research process.Web search and analysis: Utilizes tools like Tavily Search and Puppeteer to gather information from the web.Report generation: Creates comprehensive reports in markdown format.Contributions are welcome!
This project is licensed under the MIT license.
For detailed information about the library's API, please refer to the exported classes and functions:
ResearchManager: Manages the research process and generates reports.
QuestionGeneratorAgent: Generates questions to guide research.
SearchWorker: Performs web searches and analyzes websites.
FAQs
A research agent that uses AI to research the web and summarize and create reports
The npm package research_agent receives a total of 1 weekly downloads. As such, research_agent popularity was classified as not popular.
We found that research_agent demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.