
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@useatlas/react
Advanced tools
Embeddable Atlas chat UI for React applications.
npm install @useatlas/react
import { AtlasChat } from "@useatlas/react";
import "@useatlas/react/styles.css";
function App() {
return <AtlasChat apiUrl="https://api.example.com" apiKey="your-key" />;
}
Override how SQL results, charts, explore output, and Python results render inside the widget using the toolRenderers prop. This example assumes you have already imported the styles as shown above.
import { AtlasChat, type ToolRendererProps, type SQLToolResult } from "@useatlas/react";
function MySQLRenderer({ result, isLoading }: ToolRendererProps<SQLToolResult | null>) {
if (isLoading || !result) return <div>Running query...</div>;
if (!result.success) return <div>Query failed: {result.error}</div>;
return (
<div>
<h3>Results ({result.rows.length} rows)</h3>
<table>
<thead>
<tr>{result.columns.map((col) => <th key={col}>{col}</th>)}</tr>
</thead>
<tbody>
{result.rows.map((row, i) => (
<tr key={i}>
{result.columns.map((col) => <td key={col}>{String(row[col] ?? "")}</td>)}
</tr>
))}
</tbody>
</table>
</div>
);
}
function App() {
return (
<AtlasChat
apiUrl="https://api.example.com"
apiKey="your-key"
toolRenderers={{
executeSQL: MySQLRenderer,
}}
/>
);
}
| Tool Name | Result Type | Description |
|---|---|---|
executeSQL | SQLToolResult | SQL query results with columns and rows |
explore | ExploreToolResult | Semantic layer exploration output (string) |
executePython | PythonToolResult | Python execution results with optional charts and tables |
Custom renderers for any tool name are supported — just add the tool name as a key in the toolRenderers map. Tools without a custom renderer use the built-in defaults.
Every renderer receives ToolRendererProps<T>:
| Prop | Type | Description |
|---|---|---|
toolName | string | Name of the tool being rendered |
args | Record<string, unknown> | Input arguments passed to the tool |
result | T | Tool output. Built-in tool types include | null for the loading state |
isLoading | boolean | Whether the tool invocation is in progress |
For fully custom UIs, use the hooks entry point. Tool renderer types are also available here:
import { AtlasProvider, useAtlasChat } from "@useatlas/react/hooks";
import type { ToolRendererProps, SQLToolResult } from "@useatlas/react/hooks";
See the hooks documentation for details.
FAQs
Embeddable Atlas chat UI for React applications
The npm package @useatlas/react receives a total of 517 weekly downloads. As such, @useatlas/react popularity was classified as not popular.
We found that @useatlas/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.