
GitHub - vercel-labs/ui: A library of behaviors for agents to build the next generation of user interfaces.
A library of behaviors for agents to build the next generation of user interfaces. - vercel-labs/ui
Frontend developers building web applications who want to add predictive text or autocomplete functionality to input fields without sacrificing user privacy
Surmiser is a JavaScript autocomplete primitive that adds Smart Compose–style predictive text to any input, working with React, vanilla HTML, and major UI libraries.
It runs a local, privacy-first prediction engine with a default phrase corpus, mobile gestures, keyboard shortcuts, and support for custom corpora and provider architectures (including remote APIs or LLMs). Installation is via npm, and usage is through React components/hooks or a vanilla attach function, licensed under MIT.