Examples

Aria chat app

Aria is an AI chat assistant built with React and Express. Users connect rNet once and every chat is paid from their credits.

Source: github.com/rNetAi/online-chat-demo

Aria home screen after signing in with rNet

Features

  • A Connectors page where users connect, and disconnect, their rNet account.
  • Chat interface with conversation history.
  • Calls developer-selected models through rNet.
  • A clean starting point for adding RAG and other features.

Run it

1

Register an app

In the Developer Console, register an app with this redirect URI (it must match backend/server.js):

text
http://localhost:8080/callback
2

Start the backend

bash
git clone https://github.com/rNetAi/online-chat-demo
cd online-chat-demo/backend
printf "RNET_CLIENT_ID=your_client_id\nRNET_CLIENT_SECRET=your_client_secret\n" > .env
npm install
npm start   # http://localhost:8080
3

Start the frontend

bash
cd ../frontend
npm install
npm run dev   # usually http://localhost:5173
4

Sign in and chat

Open the Vite URL, go to Connectors and choose Connect. Sign in to rNet, choose Allow and start chatting.

Aria sign-in screen
Sign-in screen.
Aria showing an AI response
An AI response paid from rNet credits.