langchain-local-dev-loop

Featured

Configure LangChain local development workflow with testing and mocks. Use when setting up dev environment, creating test fixtures with mocked LLMs, or establishing a rapid iteration workflow for LangChain apps. Trigger: "langchain dev setup", "langchain local development", "langchain testing", "langchain mock", "test langchain chains".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain Local Dev Loop ## Overview Set up a productive local development workflow for LangChain: project structure, mocked LLMs for unit tests (no API calls), integration tests with real providers, and dev tooling. ## Project Structure ``` my-langchain-app/ ├── src/ │ ├── chains/ # LCEL chain definitions │ │ ├── summarize.ts │ │ └── rag.ts │ ├── tools/ # Tool definitions │ │ └── calculator.ts │ ├── agents/ # Agent configurations │ │ └── assistant.ts │ └── index.ts ├── tests/ │ ├── unit/ # Mocked tests (no API calls) │ │ └── chains.test.ts │ └── integration/ # Real API tests (CI gated) │ └── rag.test.ts ├── .env # API keys (git-ignored) ├── .env.example # Template for required vars ├── package.json ├── tsconfig.json └── vitest.config.ts ``` ## Step 1: Dev Dependencies ```bash set -euo pipefail npm install @langchain/core @langchain/openai langchain zod npm install -D vitest @types/node tsx dotenv typescript ``` ## Step 2: Vitest Configuration ```typescript // vitest.config.ts import { defineConfig } from "vitest/config"; export default defineConfig({ test: { include: ["tests/**/*.test.ts"], environment: "node", setupFiles: ["./tests/setup.ts"], testTimeout: 30000, }, }); ``` ```typescript // tests/setup.ts import "dotenv/config"; ``` ## Step 3: Unit Tests with Mocked LLM ```typescript // tests/unit/chains.test.ts import { describe,...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

linktree-local-dev-loop

Local Dev Loop for Linktree. Trigger: "linktree local dev loop".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langchain-ci-integration

Configure CI/CD for LangChain with GitHub Actions, mocked unit tests, gated integration tests, and RAG pipeline validation. Trigger: "langchain CI", "langchain GitHub Actions", "langchain automated tests", "CI langchain", "langchain pipeline testing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

elevenlabs-local-dev-loop

Configure local ElevenLabs development with mocking, hot reload, and audio testing. Use when setting up a dev environment for TTS/voice projects, configuring test workflows, or building a fast iteration cycle with ElevenLabs audio. Trigger: "elevenlabs dev setup", "elevenlabs local development", "elevenlabs dev environment", "develop with elevenlabs", "test elevenlabs locally".

2,266 Updated today
jeremylongshore
AI & Automation Featured

deepgram-local-dev-loop

Configure Deepgram local development workflow with testing and mocks. Use when setting up development environment, configuring test fixtures, or establishing rapid iteration patterns for Deepgram integration. Trigger: "deepgram local dev", "deepgram development setup", "deepgram test environment", "deepgram dev workflow", "deepgram mock".

2,266 Updated today
jeremylongshore
AI & Automation Featured

klaviyo-local-dev-loop

Configure Klaviyo local development with hot reload, mocking, and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with the Klaviyo API. Trigger with phrases like "klaviyo dev setup", "klaviyo local development", "klaviyo dev environment", "develop with klaviyo", "klaviyo testing".

2,266 Updated today
jeremylongshore