#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 bottom-left, top-left, top-right, 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'],
},
});
#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
If you are an LLM trying to learn how to develop with Instant, here are all of the links to the docs:
- Getting started w/ React
- Getting started w/ React Native
- Getting started w/ Vanilla JS
- Getting started w/ SolidJS
- Getting started w/ Svelte
- Getting started w/ TanStack Start
- Create Instant App
- Recommended Workflow
- Using LLMs
- Init
- Modeling data
- Writing data
- Reading data
- Infinite Queries
- Instant on the backend
- Patterns
- Auth
- Magic codes
- Guest Auth
- Google OAuth
- Sign In with Apple
- GitHub OAuth
- LinkedIn OAuth
- Clerk
- Firebase Auth
- Permissions
- Rate Limits
- Managing users
- Presence, Cursors, and Activity
- Instant CLI
- Devtool
- Platform API
- Explorer Component
- Custom emails
- App teams
- Storage
- Streams
- Stripe Payments
- Admin HTTP API
- (Experimental) Next.js SSR
- Migrating from Supabase