A modern, simple studio for testing and exploring tRPC endpoints.
demo.mov
- Add introspection to your tRPC API:
npm install @trpc-studio/introspection
# or
yarn add @trpc-studio/introspection
import { createTRPCRouter } from '@trpc/server';
import { addIntrospectionEndpoint } from '@trpc-studio/introspection';
export const appRouter = addIntrospectionEndpoint(
createTRPCRouter({})
);
- Visit tRPC Studio
- Enter your API URL (e.g.,
https://your-api.com/api/trpc
) - Start testing your procedures!
# Install dependencies
yarn install
# Start development server
yarn dev
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.