
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A simple and powerful Typescript based agent framework to help businesses thrive in the AI Agent revolution.
A simple and powerful Typescript based agent framework to help businesses thrive in the AI Agent revolution.
👨💼 + 🧠🤖 = 💰
DaggerAI is a project that helps developers deploy AI agents.
Our mission is to make AI wide available and empower all developers to quickly deploy applications that will help them improve their lives and the lives of others.
DaggerAI was design to be simple and easy to reason about. The Agents will execute Tasks to automate and solve real world business problems with the power of large language models from OpenAI, Anthropic or Meta. The agents can also use tools (Calculator, Internet Search, Google Mail, etc) to complete their tasks.
We use DAGs (Directed Acyclic Graphs) to define the workflow of the agents. This allows us to define the order of execution of the tasks and the dependencies between them.
Tasks can use the output of previous tasks, all you have to do is to connect the tasks that depend on each other.
We find this approach to be very powerful and easy to reason about. It is possible to create new tasks on the fly and add them dinamically to the workflow. The possibilities are endless.
Currently all agent based frameworks are written for cutting-edge developers, with a lot of complex code and logic, many abstraction layers and complex dependencies (ex: langchain).
This approach is not ideal for newcomers to the AI space.
We also decided to build it with Typescript, we feel the JS community needs more ❤️ when it comes to AI.
Make sure you have the lattest version of Node.js installed.
Add DaggerAI to your project by running the following command in your terminal:
npm install daggerai
import {
Squad,
Agent,
SerperTool,
Task,
ChatOpenAI,
ChatAnthropic,
} from 'daggerai'
const squad = new Squad()
// You can use multiple LLMs (one for each task) if you want
process.env['ANTHROPIC_API_KEY'] = 'your-anthropic-api-key'
const llm = new ChatAnthropic({
model: 'claude-3-haiku-20240307',
maxTokens: 4000,
})
// You can also use OpenAI models
// process.env['OPENAI_API_KEY'] = 'your-openai-api-key'
// const llm = new ChatOpenAI({
// model: 'claude-3-haiku-20240307',
// maxTokens: 4000,
// })
// Create the websearch tool
process.env['SERPER_API_KEY'] = 'your-serper-api-key'
const serperTool = new SerperTool()
const blogWriter = new Agent({
role: 'Social Media Blog Writer',
backstory:
'As a Social Media Blog Writer, I create engaging and shareable content tailored to a target audience. From topic ideation to keyword research and captivating introductions, I deliver high-quality blog posts that drive traffic and engagement.',
goal: 'Create amazing social media blog posts.',
})
const research = new Task({
name: 'Research',
description: 'Research the topic for the blog post.',
expectedOutput: 'A list of key points and sources for the blog post.',
agent: blogWriter,
tools: [serperTool],
llm,
})
const outline = new Task({
name: 'Blog Post Outline',
description: 'Create an outline for the blog post.',
expectedOutput: 'A structured outline for the blog post.',
agent: blogWriter,
llm,
})
const blogPost = new Task({
name: 'Blog Post',
description: 'Write the blog post.',
expectedOutput: 'A well-written and engaging blog post.',
agent: blogWriter,
llm,
})
// add the tasks to the squad
squad.add(research)
squad.add(outline)
squad.add(blogPost)
/**
* Connect the tasks to define the order of execution and dependencies.
* In this example outline will receive the output of research task
* and blogPost will receive the output of outline task.
*/
squad.connect(research, outline)
squad.connect(outline, blogPost)
const results = await squad.evaluate()
console.log(results)
DaggerAI is open-source and we welcome contributions. If you're looking to contribute, please:
Fork the repository. Create a new branch for your feature. Add your feature or improvement. Send a pull request.
We appreciate your input!
DaggerAI is released under the MIT License.
We love helping companies deploy AI agents to solve real business problems. If you are interested feel free to email me at rodamora@gmail.com
FAQs
A simple and powerful Typescript based agent framework to help businesses thrive in the AI Agent revolution.
The npm package daggerai receives a total of 3 weekly downloads. As such, daggerai popularity was classified as not popular.
We found that daggerai 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.