A lightweight recreation of OS1/Samantha from the movie Her, running locally in the browser
144
stars
8
commits
TypeScript
primary language
Sep 2, 2026
updated
This project is an attempt to recreate some of the experience "OS1" from the movie 'Her', running entirely locally in your browser using transformers.js and featuring direct speech-to-text interaction. All the while trying to keep it lightweight at a whopping ~2GB of model downloads (which is then cached for future use).
It was a tough challenge trying to get a small 1B model to work in such a usable way without it hallucinating too much, but giving it guided prompts and a memory bank helped tremedously. Still, this model is subject to saying nonsense at times and is far from perfect.
(initially, you will download the required models, so loading will be a bit longer at first. Look at your browser's network tab in the console if you really want to see the models being fetched)
https://github.com/user-attachments/assets/525c56ec-ba87-4adf-bdcd-2e1ddf90f8b2
<|audio|> token are sent to the Ultravox processor.git clone https://github.com/callbacked/os1
cd os1
npm i
npm run dev
http://localhost:5173.The first time you load the application, the necessary AI models (~2GB) will be downloaded and cached by your browser. This might take a few moments. Subsequent loads should be faster.
This project is essentially an amalgamation of the hard work put in by these people orders of magnitude smarter than me, I would like to thank them in no particular order.
Siyoung Park: For the original MIT Licensed OS1 loading animation concept on CodePen.
ONNX Community: For providing the ONNX version of all of the models used here
Xenova For their work on Transformers.js, and reference to their LLM worker code in transformers.js-examples
Spike Jonze and the creators of the movie 'Her': For the original inspiration. A very bleak movie to watch 12 years later lmao.
8 commits
TypeScript
75.8%
CSS
13.6%
JavaScript
10.3%
A lightweight recreation of OS1/Samantha from the movie Her, running locally in the browser
144
stars
8
commits
TypeScript
primary language
Sep 2, 2026
updated
This project is an attempt to recreate some of the experience "OS1" from the movie 'Her', running entirely locally in your browser using transformers.js and featuring direct speech-to-text interaction. All the while trying to keep it lightweight at a whopping ~2GB of model downloads (which is then cached for future use).
It was a tough challenge trying to get a small 1B model to work in such a usable way without it hallucinating too much, but giving it guided prompts and a memory bank helped tremedously. Still, this model is subject to saying nonsense at times and is far from perfect.
(initially, you will download the required models, so loading will be a bit longer at first. Look at your browser's network tab in the console if you really want to see the models being fetched)
https://github.com/user-attachments/assets/525c56ec-ba87-4adf-bdcd-2e1ddf90f8b2
<|audio|> token are sent to the Ultravox processor.git clone https://github.com/callbacked/os1
cd os1
npm i
npm run dev
http://localhost:5173.The first time you load the application, the necessary AI models (~2GB) will be downloaded and cached by your browser. This might take a few moments. Subsequent loads should be faster.
This project is essentially an amalgamation of the hard work put in by these people orders of magnitude smarter than me, I would like to thank them in no particular order.
Siyoung Park: For the original MIT Licensed OS1 loading animation concept on CodePen.
ONNX Community: For providing the ONNX version of all of the models used here
Xenova For their work on Transformers.js, and reference to their LLM worker code in transformers.js-examples
Spike Jonze and the creators of the movie 'Her': For the original inspiration. A very bleak movie to watch 12 years later lmao.
8 commits
TypeScript
75.8%
CSS
13.6%
JavaScript
10.3%