I tried to port LLMLingua-2's official Python implementation into TypeScript.

For best performance, open the URL with a WebGPU enabled web browser.

Learn More: https://github.com/atjsh/llmlingua-2-js

Show HN: Compress Long LLM Prompt, Right in your web browser
atjsh.github.io