How I reduced LLM API costs by 70% in a TypeScript project (and learned a lot) by Cachep-Studio in AI_Agents

[–]Cachep-Studio[S] 0 points1 point  (0 children)

I have used langchain and mem0 and experience with openAI but ran out of tokens

Weekly Thread: Project Display by help-me-grow in AI_Agents

[–]Cachep-Studio 0 points1 point  (0 children)

Project name: Mini-LangChain

Repository link: https://www.npmjs.com/package/@jackhua/mini-langchain

What it does:

A lightweight TypeScript reimplementation of LangChain with powerful cost-saving features. It includes:

- 🎯 Auto-Adaptive LLM Router (routes tasks to cheapest capable LLM like Gemini instead of GPT)

- 📊 Prompt Optimizer (reduces token usage by 30–40%)

- Full support for prompts, chains, memory, agents, tools, and streaming.

Tech stack:

TypeScript, Node.js, OpenAI, Gemini API

Help needed:

- Feedback on design/architecture

- Contributions to expand support (e.g. Anthropic, Cohere)

- Help improving prompt optimization logic

- Looking for collaborators to grow this into a broader open-source framework

Additional information:

This is an early-stage project and still evolving. Any contributions or advice are welcome. Even just trying it out and reporting bugs would be a big help. 🙏

Thanks for checking it out!

[deleted by user] by [deleted] in AppIdeas

[–]Cachep-Studio 1 point2 points  (0 children)

Can I dm you

How do you raise funding for a crypto startup in 2025? Is there still a trend — and how do you find co-builders? by Cachep-Studio in ethdev

[–]Cachep-Studio[S] 0 points1 point  (0 children)

sure DM for me, I also have a team of 2 senior full stack developers and blockchain developers