atjsh/llmlingua-2-js
JavaScript/TypeScript implementation of LLMLingua-2 (Experimental)
LLMLingua-2-js helps web developers optimize applications that use large language models by compressing the input text provided to the model. It takes a lengthy text prompt and outputs a shorter, yet equally informative, version. This is ideal for developers building web-based AI tools, chatbots, or any interactive application powered by LLMs, where efficiency and responsiveness are key.
No commits in the last 6 months.
Use this if you are a web developer building applications that interact with large language models and need to reduce the size of your input prompts to save costs and improve performance, especially when running logic directly in the browser.
Not ideal if your application does not involve large language models or if you require server-side processing for prompt compression.
Stars
22
Forks
3
Language
TypeScript
License
MIT
Category
Last pushed
Sep 14, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/atjsh/llmlingua-2-js"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
genieincodebottle/schemalock
LLM output contract testing CLI, define what your pipeline must return, test it against any...
antsanchez/prompto
Interact with various LLMs in your browser (LangChain.js, Angular)
Coolhand-Labs/coolhand-ruby
Zero-config LLM cost & quality monitoring for Ruby apps - automatically log AI API calls and...
joshualamerton/prompt-trace
Prompt and response tracing for LLM workflows
suhjohn/llm-workbench
UI for testing prompts across various datasets locally