You are browsing as a guest. Sign up (or log in) to start making projects!

1h 59m 25s logged

Devlog #3 | LampOS
Evening all!
Big one today. Added three things: an AI chatbot (lampai), a notes app, and a calculator.
The notes app was straightforward — sidebar list of notes, click to edit, autosaves to localStorage as you type. Added a little “saved” indicator that fades in and out so there’s some feedback when it’s actually persisting.
The calculator was fun, just standard four-function stuff with a clean grid layout. Took a bit to get the +/- and % logic right but nothing major.
The chatbot, though. That was a whole journey. Wanted lampai to feel like a small AI living inside the OS, not just a generic chat widget. Getting the API connection working took way longer than expected — kept hitting CORS issues trying to call the API directly from the browser, which makes sense in hindsight since you can’t expose an API key client-side. Ended up setting up a Cloudflare Worker as a proxy so the key stays server-side and the frontend just talks to my worker URL instead. A few false starts along the way (typos in the worker code, wrong response parsing, the usual) but got it stable by the end of the night.
Now lampai actually responds and keeps conversation history during the session. Feels like the OS has a little bit of life in it now.
Thanks for stopping by!

0
1

Comments 0

No comments yet. Be the first!