Requirements and compatibility
You need permission to change the application's build configuration and access to the corresponding Claron project. This guide describes the current @claron/sdk frontend plugin interfaces. Check the installed package version before copying a configuration.
The Vite plugin instruments JSX and TSX, including React applications. Using Vite alone does not enable source attribution for Vue templates, Svelte components, or Angular templates. The Next.js wrapper uses webpack; a Turbopack build does not run its webpack instrumentation.
The backend SDK is a separate, optional setup. Installing a frontend compiler plugin does not enable server evidence.
Set the project and build credentials
Copy the project's UUID from its project details or project URL
Use the project that receives your extension reports.
Open Settings → Developer & API and create a named key with sdk:create
Copy the key once and store it in the build environment's secret store. See API Keys.
Set CLARON_PROJECT_ID to that UUID and CLARON_API_KEY to the key in the build environment
Do not use NEXT_PUBLIC_, VITE_, or another browser-exposed prefix for the key.
Install the package in the application directory
Development tagging is off by default; set CLARON_ENABLED=true only when you deliberately want tagging in a development build.
React with Vite
Keep your existing plugins and add claronVitePlugin. Run your normal production build and deploy its output.
Next.js with webpack
Wrap the existing configuration instead of replacing it. On Next.js versions that default to Turbopack, explicitly use webpack for the build. Keep all existing Next.js settings.
React with webpack
Add ClaronWebpackPlugin to the existing plugins array. Keep the application's entry, output, loaders, and JSX/TypeScript compilation. The plugin adds source tagging; it does not replace your normal compiler.
JSX and TSX with Rollup
Add claronRollupPlugin before the plugin that compiles JSX/TSX. Preserve the existing React, TypeScript, resolution, and output configuration.
JSX and TSX with esbuild
Add claronEsbuildPlugin to the existing build's plugins. It reads application JSX/TSX files before esbuild compiles them; keep your normal entry points and output options.
Nuxt, SvelteKit, Astro, and Angular templates
The generic frontend plugins above instrument JSX/TSX. Adding the Vite plugin alone does not instrument Vue, Svelte, Astro, or Angular templates.
For supported applications built and hosted by Claron, dedicated framework integrations handle template source attribution alongside the hosted build. Follow Projects and the hosted framework requirements. A separately hosted application needs its framework-specific integration; do not substitute the React/Vite example for a template adapter.
Verify the deployed result
Open the new deployment in the browser extension, with the correct project selected.
Inspect a JSX/TSX element in the browser's Elements panel
It should have a data-claron-src attribute. Elements created with innerHTML and uninstrumented third-party code may not have one.
Create a new Element annotation and open its source context in Claron
Check the file and line against that exact deployed commit. Existing reports do not gain evidence retroactively.
Upload private source maps (optional)
Uploading source maps lets Claron resolve the code that started a failing network request to your original file and line. Build with source maps enabled, then run uploadDeployment once per deployment with the same CLARON_PROJECT_ID and CLARON_API_KEY. It records the git branch and commit, gzips every .map file under outDir, and stores them privately in your project.
Uploads run only for production (from CLARON_ENVIRONMENT or NODE_ENV) unless CLARON_ENABLED=true. Pass uploadSourceMaps: false to register the deployment without maps. Claron keeps uploaded maps private; check separately that your own host does not serve .map files publicly.
Source attribution unavailable
Check that the plugin ran in the deployed build, the selected element is JSX/TSX, CLARON_ENABLED is not false, the build key is present, and the report belongs to the matching project and deployment. Restart the build after changing configuration.
If the SDK blocks a build, set CLARON_ENABLED=false and rebuild. Report the compiler error with the framework and package versions before re-enabling it.
Claron's uploaded source maps are stored privately. Your own hosting may still serve .map files generated by your build. Check the deployed URLs and configure the host to exclude those files if they must stay private. The compiler plugin does not guarantee that your hosting makes them inaccessible.
