atjsh/llmlingua-2-js

JavaScript/TypeScript implementation of LLMLingua-2 (Experimental)

34
/ 100
Emerging

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.

web-development AI-applications frontend-optimization LLM-integration prompt-engineering
Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 6 / 25
Maturity 15 / 25
Community 11 / 25

How are scores calculated?

Stars

22

Forks

3

Language

TypeScript

License

MIT

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.