Emojify: Text-to-Emoji
Translate any English sentence into a short emoji sequence with a 2.4M-parameter model trained by runonweb. Loads in under a second, runs in a few milliseconds and never leaves the tab.
Try Emojify
Runs in this tab · nothing uploaded
What it does
Turn a sentence into emojis. 4 MB model.
- Trained from scratch: a 3-layer T5 (d_model 128, 8k shared vocab) on ~490k text/emoji pairs from the Text2Emoji dataset. Recipe in
training/text2emoji. - English input. Output is a short sequence of distinct emojis;
maxEmojiscaps the length (default 12). - Weights download from the Hugging Face Hub (
midudev/text2emoji-tiny). To self-host, copy the folder and passmodelPathplusmodel(the folder name).
Specifications
- Package
- runonweb/emoji
- Base model
- text2emoji-tiny (T5, 2.4M params, from scratch) · runonweb · data: Text2Emoji (KomeijiForce)
- License
- MIT
- Weights
- midudev/text2emoji-tiny
- Download
- ~4 MB
- Quantization
- q8 on WASM
- Backend
- WASM only
- Input
- Text
Get started with runonweb/emoji
pnpm add runonwebimport { Emojifier } from 'runonweb/emoji'
// 3.9 MB from the Hugging Face Hub (midudev/text2emoji-tiny)
const emojifier = new Emojifier()
await emojifier.load()
const { text, emojis } = await emojifier.emojify('I love pizza and my dog')
// text "🍕❤️🐶"
// emojis ["🍕", "❤️", "🐶"]
emojifier.dispose()Same shape everywhere: construct, load(), run, dispose(). Pass onProgressto show download progress on first use.
Questions about Emojify
Does Emojify run on device?
Yes. Weights download once and stay in the browser. Nothing is sent to a server.
Which model does Emojify use?
text2emoji-tiny (T5, 2.4M params, from scratch) by runonweb · data: Text2Emoji (KomeijiForce), under MIT. runonweb loads the midudev/text2emoji-tiny weights and runs q8 on WASM.
How big is the Emojify download?
~4 MB, fetched once on first use. The browser caches the weights, so later loads skip the network and keep working offline.
What does Emojify cost?
Nothing. runonweb is free and MIT-licensed, with no device limits, tokens or sign-in. The weights keep their own license: MIT.
Which browsers support Emojify?
Any modern browser with WebAssembly. This model does not use WebGPU yet: it fails at session creation in ONNX Runtime Web, so runonweb pins it to WASM.
Can I use a different model with runonweb/emoji?
Yes. See each module’s docs for the options it accepts (model, size, language…). Check the license and test both backends before shipping.