Set up the dev environment

Before building a plugin, you need the TrustGraph UI running locally in development mode. This gives you a working codebase you can modify and see changes immediately.

Clone the UI repo

git clone https://github.com/trustgraph-ai/trustgraph-ui.git
cd trustgraph-ui
npm install
npm run build

The build step compiles the built-in plugins — this is needed before the dev server can run.

Run the dev server

npm run dev

The dev server will start and tell you the port number to connect on. Open that URL in your browser — you should see the TrustGraph UI, running locally from your development copy.

The local UI still needs a running TrustGraph instance to connect to. If you don’t have one, see the Quickstart.

Next

Set up the plugin — clone the plugin template and link it into the UI.