What do you want to do?
4 use cases
-
Run the Margelo chat app on a simulator with your keys
Install the React Native chat app, add your OpenAI and Pinecone keys, and send a first streamed message.
- REPO
margelo/ai-chat-demo - Software and DevOps
- Intermediate
View prompt
Clone margelo/ai-chat-demo, go into the app folder, and set up the project following the README setup and run steps for <target platform: ios or android>. Confirm the app launches and that a Margelo question triggers the search_margelo_kb tool and returns an answer based on retrieved context.
- REPO
-
Point the knowledge base tool at your own Pinecone index
Reuse the chat app and retrieval tool with your own Pinecone index and text content.
View prompt
In the margelo/ai-chat-demo repo, change the knowledge base search to use the Pinecone index host <your index host> and adjust the retrieval instructions for <your topic>. Run npm run typecheck and report the result, then ask one question you know the index answers and confirm the reply uses retrieved text.
-
Study WebSocket streaming for LLM replies in React Native
Read the protocol, connection, and store code to see how tokens and tool calls stream into the UI.
- REPO
margelo/ai-chat-demo - Software and DevOps
- Intermediate
View prompt
Review margelo/ai-chat-demo and explain how app/src/openai/connectionManager.ts and app/src/openai/protocol.ts stream Responses API events over react-native-nitro-websockets. Output a short written summary of the event flow and confirm with npm test that the existing tests pass.
- REPO
-
Plan a relay server that keeps the API keys off the device
Map each key-using call in the app to a server endpoint before any production release.
View prompt
For the margelo/ai-chat-demo repo, list each file that reads an API key from src/config.ts and propose a relay server design that holds those keys server-side. Output the endpoint list and one verification step that confirms no key remains in the app bundle.
Quick start with AI Chat Demo
- Check you have what it needs: Xcode and CocoaPods for iOS, or the Android setup from the React Native environment guide; Node 22.11 or newer; An OpenAI API key.
- Open margelo/ai-chat-demo on GitHub and read the README and license.
- Run
cd appand thennpm install. - Run
cp src/config.example.ts src/config.tsand fill in your OpenAI key, Pinecone key, and index host in that file. - Run
cd ios && pod install && cd ..to install the iOS pods. - Run
npm startin one terminal to start Metro.
These steps come from our top use case, Run the Margelo chat app on a simulator with your keys, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for margelo/ai-chat-demo
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAI Chat Demo alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forMobile and React Native developers who want a working streaming chat plus retrieval-augmented generation reference, and agents that will set up or adapt it.
- Why it is hot193 stars, launched 83 days ago
- LanguageTypeScript
- Sourcegithub.com/margelo/ai-chat-demo · Back to Hot repos
Requirements
- Xcode and CocoaPods for iOS, or the Android setup from the React Native environment guide
- Node 22.11 or newer
- An OpenAI API key
- A Pinecone API key, a populated Pinecone index, and its index host
Add this badge to your README
Maintain AI Chat Demo? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/margelo-ai-chat-demo/?utm_source=github&utm_medium=badge&utm_campaign=margelo-ai-chat-demo)
HTML
<a href="https://dedupedai.com/use-cases/margelo-ai-chat-demo/?utm_source=github&utm_medium=badge&utm_campaign=margelo-ai-chat-demo"><img src="https://dedupedai.com/badge/margelo/ai-chat-demo.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about AI Chat Demo
What is AI Chat Demo?
A React Native ChatGPT-style mobile chat app that streams OpenAI replies over a WebSocket and answers Margelo questions by searching a Pinecone knowledge base. It is an open-source project on GitHub: https://github.com/margelo/ai-chat-demo.
How do I use AI Chat Demo?
Run cd app and then npm install; then run cp src/config.example.ts src/config.ts and fill in your OpenAI key, Pinecone key, and index host in that file; run cd ios && pod install && cd .. to install the iOS pods. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is AI Chat Demo for?
Mobile and React Native developers who want a working streaming chat plus retrieval-augmented generation reference, and agents that will set up or adapt it.
What can I do with AI Chat Demo?
4 use cases so far, for example: Run the Margelo chat app on a simulator with your keys; Point the knowledge base tool at your own Pinecone index; Study WebSocket streaming for LLM replies in React Native. Each has steps and a copy-paste agent prompt.
What do I need to run AI Chat Demo?
Xcode and CocoaPods for iOS, or the Android setup from the React Native environment guide; Node 22.11 or newer; An OpenAI API key; A Pinecone API key, a populated Pinecone index, and its index host.
What are alternatives to AI Chat Demo?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is AI Chat Demo safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.