poojaverma031990-ui/Omni.js ? reverse-engineered prompt
Reverse engineered prompt
Build me a small browser based AI library that I can drop into any website with one script tag and start using right away.
I want it to let me run real language models in the browser, with simple helpers like generating text, chatting, classifying sentiment, filling in masked words, getting embeddings, and answering questions. It should work in plain HTML, and also be easy to use from React or other front end apps. Please include a simple demo page where I can try it out live, choose a model, type a prompt, and see streamed output as it generates.
It should download model files from Hugging Face, cache them locally so they load faster the next time, and fall back cleanly if the GPU path does not work. I also want a clean single file build that is easy to host on a static site, plus a small README style example showing how to use it in a few lines of JavaScript.
Are you gonna build this?
make sure you review the code using coderabbit