View the tokenisation of your words using the tokeniser for a Stable Diffusion model.
16
stars
32
commits
JavaScript
primary language
Jun 9, 2026
updated
Use Hugging Face Tokenizers in the browser using Rust and WASM. View the tokenisation of your words using the tokenizer for the model you're using.
https://sd-tokenizer.rocker.boo/
wasm-pack build --target no-modules
After building the WASM we can load everything from an http-server.
Example server:
npx http-server
npx http-server
Starting up http-server, serving ./
http-server version: 14.1.1
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://127.0.0.1:8080
http://192.168.1.7:8080
http://172.21.0.1:8080
http://172.19.0.1:8080
http://172.18.0.1:8080
Hit CTRL-C to stop the server
And we can go to http://127.0.0.1:8080.
Using fly to host the service
fly deploy
Open and welcome for issues or PRs.
32 commits
JavaScript
48.2%
HTML
20.7%
Rust
15.2%
CSS
11.8%
TypeScript
2.8%
Dockerfile
1.1%
View the tokenisation of your words using the tokeniser for a Stable Diffusion model.
16
stars
32
commits
JavaScript
primary language
Jun 9, 2026
updated
Use Hugging Face Tokenizers in the browser using Rust and WASM. View the tokenisation of your words using the tokenizer for the model you're using.
https://sd-tokenizer.rocker.boo/
wasm-pack build --target no-modules
After building the WASM we can load everything from an http-server.
Example server:
npx http-server
npx http-server
Starting up http-server, serving ./
http-server version: 14.1.1
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://127.0.0.1:8080
http://192.168.1.7:8080
http://172.21.0.1:8080
http://172.19.0.1:8080
http://172.18.0.1:8080
Hit CTRL-C to stop the server
And we can go to http://127.0.0.1:8080.
Using fly to host the service
fly deploy
Open and welcome for issues or PRs.
32 commits
JavaScript
48.2%
HTML
20.7%
Rust
15.2%
CSS
11.8%
TypeScript
2.8%
Dockerfile
1.1%