Agentic Express is a TypeScript-based npm package designed to accelerate REST agent application development on top of Express.js. By providing prebuilt utilities, middleware, and patterns, it allows developers to focus on building Langgraph agents without worrying about the underlying REST infrastructure.
- Express.js Simplified: Prebuilt middleware and utilities to streamline REST API development.
- Langgraph Agent Focus: Designed to complement Langgraph agent development by handling REST concerns.
- TypeScript Support: Fully typed for safer and more predictable development.
- Scalable Patterns: Encourages best practices for building scalable and maintainable applications.
You can quickly scaffold a new Agentic Express app using the CLI:
npx agentic-express init
# or
pnpm dlx agentic-express init
# or
yarn dlx agentic-express init
Install the package via npm or yarn or pnpm:
pnpm add agentic-express
# or
npm install agentic-express
# or
yarn add agentic-express
Here's how you can use Agentic Express to build a REST agent app:
import express from 'express';
import { AgenticExpress } from 'agentic-express';
const app = express();
// Set up the app with Agentic Express middleware
const agenticExpress = new AgenticExpress({
graphStream: invokeGraph,
});
// Add the middleware to the express app
router.use(await agenticExpress.setup());
// Start the server
app.listen(3000, () => {
console.log('Agentic Express server is running on http://localhost:3000');
});
We welcome contributions! Please see the CONTRIBUTING.md file for detailed guidelines on how to contribute.
This project is licensed under the MIT License. See the LICENSE file for details.
Created with ❤️ by Sohab Sk