using a local browser-based web llm: https://ai.google.dev/gemma/docs/integrations/web and ghost text: https://github.com/agdhruv/react-ghost-text