Skip to content

IKatsuba/deno-mastra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno Mastra Project

A modern AI-powered application built with Deno and Mastra framework.

Prerequisites

  • Deno (version 2.2 or higher)

Installation

  1. Clone the repository:
git clone <your-repo-url>
cd deno-mastra
  1. Install dependencies:
deno task dev
  1. Create a .env file:
cp .env.example .env
  1. Update your .env file with your API keys:
OPENAI_API_KEY=your_openai_api_key

Project Structure

.
├── src/             # Source code directory
├──── mastra/        # Mastra configuration
├────── agents/      # Agents configuration
├────── tools/       # Tools configuration
├── deno.json        # Deno configuration
├── deno.lock        # Dependency lock file
└── .env             # Environment variables

Development

Start the development server:

deno task dev

This will start the Mastra server and make your agents available via REST endpoints.

Testing the API

You can test your agents using curl or any HTTP client:

curl -X POST http://localhost:4111/api/agents/npmAgent/generate \
  -H "Content-Type: application/json" \
  -d '{"messages": ["react"]}'

Dependencies

  • @mastra/core: Core Mastra framework
  • @mastra/memory: Memory management for agents
  • @ai-sdk/openai: OpenAI integration
  • zod: Schema validation

Blog Articles

Here are some blog articles that provide more context and examples of how to use this repository:

License

MIT

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors