Instant features
Devtool
When you load your app in development, you'll notice a little "Instant" icon show up:

This is your handy devtool shortcut. Once you click it, you'll see a widget that lets you make changes to your app.
Use the Explorer to change up your data and schema:

Or the Sandbox to try out different queries and transactions:

#Changing Positions
You can choose where to position your devtool as well. Pass in the devtool configuration in init:
import { init } from '@instantdb/react';import schema from '../instant.schema.ts';const db = init({appId: process.env.NEXT_PUBLIC_INSTANT_APP_ID!,schema,devtool: {position: 'bottom-right',},});
You can set it to bottom-left, top-left, top-right, or bottom-right.
#Custom Hosts
By default, the devtool only shows up on localhost. But you can decide which hosts to show it on too. Pass in the allowedHosts option:
import { init } from '@instantdb/react';import schema from '../instant.schema.ts';const db = init({appId: process.env.NEXT_PUBLIC_INSTANT_APP_ID!,schema,devtool: {allowedHosts: ['localhost', 'site.local'],},});
#Self-hosted dashboards
When connecting to a self-hosted Instant deployment, set dashURI to the deployment's dashboard URL:
import { init } from '@instantdb/react';import schema from '../instant.schema.ts';const db = init({appId: process.env.NEXT_PUBLIC_INSTANT_APP_ID!,schema,apiURI: 'https://api.myinstant.com',websocketURI: 'wss://api.myinstant.com/runtime/session',devtool: {dashURI: 'https://dash.myinstant.com',},});
The devtool will use your self-hosted dashboard for authentication and app management.
#Disabling the devtool
If you would like to hide the devtool completely, you can add devtool: false in init:
import { init } from '@instantdb/react';import schema from '../instant.schema.ts';const db = init({appId: process.env.NEXT_PUBLIC_INSTANT_APP_ID!,schema,devtool: false,});
#Shortcuts
To quickly toggle the window, you can use the shortcut ctrl + shift + 0 (zero).
#Feedback?
If you have any feedback, let us know on Discord.