node_ai_tools is a demonstration application built with Node.js and TypeScript to showcase how to integrate OpenAPI calls while leveraging multiple external services. This project is ideal for testing "tools" in a Large Language Model (LLM) context.
-
Reddit Scraping
Fetch the latest posts from a specific Reddit channel. -
Image Generation
Generate personalized images based on text prompts. -
Dad Joke API
Retrieve “dad jokes” from an external API to add a playful element to the user experience.
This project provides a test environment for exploring how an LLM’s "tools" can interact with external APIs (e.g., Reddit, image generation, Dad Joke API) within a single Node.js/TypeScript application.
-
Clone the repository:
git clone <repository-url> cd node_ai_tools
-
Copy the
.env.example
file and rename it to.env
.
Add yourOPENAI_API_KEY
to the.env
file. -
Install dependencies:
npm install
-
Start the application with a user prompt:
npm run start "user prompt"
This project was inspired by "Build an AI Agent from Scratch" from Frontend Masters, created by Scott Moss.