- Majid Ali
- Articles
Articles on AI, React Native and JavaScript
Notes from building AI features, mobile apps and backends in production, and from what I’m learning along the way.
- AI engineering · 5 min read
LLM inference explained for app developers: prefill, decode and the KV cache
Why AI features feel slow: prefill, decode, the KV cache, TTFT and tokens per second explained for app developers, with the math and what to change.
- React Native · 5 min read
How to stream LLM responses in React Native with Server-Sent Events
How to stream OpenAI or Claude responses into a React Native app with Server-Sent Events: Node server, expo/fetch client, and the bugs to avoid.
- JavaScript · 3 min read
8 JavaScript tricks I use in production code, and the bugs they prevent
Modern JavaScript tricks I use in Node.js, React and React Native: ??, AbortController, Promise.allSettled, structuredClone, toSorted, Object.groupBy.
Want this kind of engineering on your product?
I build React Native apps, AI features and the backends behind them.