Skip to content

A library to accelerate REST agent app development on top of Express, enabling users to focus on Langgraph agent development.

License

Notifications You must be signed in to change notification settings

ITZSHOAIB/agentic-express

Repository files navigation

Agentic Express 🚀

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.

☄️ Features

  • 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.

Initialize an Agentic Express App ♨️

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

⚒️ Installation

Install the package via npm or yarn or pnpm:

pnpm add agentic-express
# or
npm install agentic-express
# or
yarn add agentic-express

👀 Usage

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');
});

🤝 Contribution

We welcome contributions! Please see the CONTRIBUTING.md file for detailed guidelines on how to contribute.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


Created with ❤️ by Sohab Sk