This repo contains two packages:
sonar-core– the core library for interacting with the Sonar API.sonar-react– React adapter built on top ofsonar.
We use pnpm workspaces for dependency management and Changesets for versioning & publishing.
You can install either package directly from npm:
# Core library (framework agnostic)
npm install @echoxyz/sonar-core
# React adapter (includes sonar as a dependency)
npm install @echoxyz/sonar-reactimport { tmp } from "sonar-core";
console.log(tmp);import { useSonar } from "sonar-react";
function App() {
const tmp = useSonar();
return <div>{tmp}</div>;
}See here.