Rebuilding DeepSeek Chat with SolidJS — and putting ew-solid-ui through the wringer A developer rebuilt DeepSeek's chat demo in SolidJS using the ew-solid-ui 0.0.9/0.0.10 component library to stress-test it against real product conditions rather than isolated Storybook pages. The demo reproduces streaming replies, deep thinking, web search, message branching, Markdown/math/Mermaid rendering, attachments, voice input, and mobile safe areas, with the browser calling api.deepseek.com directly using a user-supplied API key. The developer reports the library held up, with a few issues surfacing only under the dense, high-frequency streaming workload. By the time ew-solid-ui reached 0.0.9 it had docs, examples, and a green test suite, which sounds reassuring until you remember what those things actually prove. A button on its own page. A modal on another page. A select on a third. Everything evenly spaced, everything well behaved. Of course nothing breaks. Storybook is not where a component library gets tested. A real product is: a select inside a modal, a button hanging off the right edge of an input, streamed text arriving every few dozen milliseconds, the theme flipping, a phone keyboard eating half the viewport. That's the exam. So I went looking for a real project to throw at it. Another admin dashboard was pointless — those pages are mostly tables, and tables don't stress anything. In the end I picked DeepSeek's chat demo. The reasoning was practical. It's dense enough to hit nearly every weak spot a component library has, and it comes with a finished design, so spacing, radii, and colors are already decided. I wouldn't waste time second-guessing visuals; all of it could go into one question. | What I wanted to test | Where the demo exercises it | |---|---| | Can CSS variables absorb an entire external theme? | The official --dsw- token set, plus light/dark switching | | Do nested overlays fight each other? | A select for language, voice, and region inside the settings modal | | Can a composer be reshaped by the business layer? | Attachment strip, toggle row, recording spectrum, drag overlay | | Does it survive high-frequency streaming updates? | Token-level Markdown with math and Mermaid inside | | Does mobile fall apart? | visualViewport , keyboard insets, safe areas | That's how this project started. The short version of how it ended: the library held up, but a few things only showed themselves in a page like this. What follows is the order I hit them, including how each one was found. Two live URLs: ds-chat.eveningwater.com https://ds-chat.eveningwater.com , or the GitHub Pages build https://eveningwater.github.io/ew-solid-ui-deepseek-chat-demo/ . You paste a DeepSeek API key into settings first. The browser calls https://api.deepseek.com directly; there's no server of mine in the middle. Feature-wise I copied the official demo: streaming replies, deep thinking, web search, continue, regenerate, edit prompt; message branches with version switching; Markdown, code blocks, math, Mermaid, citation chips; image and document attachments with drag, paste, and retry; voice input and read-aloud; session list with rename, delete, and ZIP import/export; light and dark themes, Chinese and English, mobile safe areas. The stack is nothing to show off: | Concern | Choice | |---|---| | Build / language | Vite 6 + TypeScript 5.7 | | Framework | SolidJS 1.9 fine-grained reactivity, no virtual DOM | | Component library | ew-solid-ui 0.0.10 | | State | createMemoryStore from ew-solid-ui/headless | | Storage | IndexedDB sessions/attachments + localStorage settings | | Content rendering | ew-solid-ui Markdown + KaTeX + Mermaid + Prism | idb , fflate , KaTeX, Mermaid, and Prism are just tools. They have nothing to do with whether I use the component library, so they went in where needed. No zustand for state, no second UI library. That's the whole dependency story. src/ ├── app/ page shell: App, theme, viewport, global styles ├── components/ │ ├── chatInput/ input, draft attachments, voice, spectrum, drag overlay │ ├── files/ file icons, file cards, preview hook │ ├── markdown/ Markdown adapter, code block, math, Mermaid, links │ ├── messages/ message list, user/assistant messages, thinking and search steps │ ├── search/ search results panel, source cards, citation chips │ ├── session/ welcome page, session page, mobile top bar │ ├── settings/ settings modal, API Key form │ └── sider/ sidebar, session item, mobile drawer ├── i18n/ Chinese and English copy ├── services/ api / chat / markdown / speech, settings and attachments └── utils/ Only one rule matters: anything generic comes from the library; anything that only exists because this is a chat app I write myself. Generic: Button, Icon the multi-color drag-and-drop illustration is upload-picture from the library , Tooltip, Dropdown, Modal, Select, the various fields, Popover, Welcome, Markdown, Toast, plus headless useCopy and createMemoryStore . Specific: the composer, message timeline, attachment cards, citation preprocessing, SSE, persistence, recording. Keep that line and you never end up cramming chat logic into a generic component just to prove you used the dependency. Rendering isn't the hard part of a chat page. State is. Streaming output, upload progress, the session list, and the settings panel all change independently, and one sloppy move re-renders the world. createMemoryStore in ew-solid-ui/headless covered it, so zustand never got installed: js import { createMemoryStore } from 'ew-solid-ui/headless' export const useChatStore = createMemoryStore