π Quick Start: Clone, install, configure, and run in minutes!
A production-ready example app using Fastn AI React Core with TypeScript, Tailwind CSS, and modern React patterns.
- π Connectors Management - Manage your Fastn AI connectors
- βοΈ Configurations - Handle subscriptions and configurations
- π¨ Modern UI - Clean, accessible interface with Tailwind CSS
- π Type Safe - Full TypeScript support
- β‘ Fast Development - Hot reload with Vite
Make sure you have:
- Node.js (v18 or higher)
- npm (v9 or higher)
Check your versions:
node --version
npm --versiongit clone https://github.com/fastnai/react-core-client.git
cd react-core-clientnpm installOpen src/App.tsx and replace the placeholder values:
Note: This app uses Fastn custom authentication. Make sure your auth token is compatible with Fastn's custom auth system.
<FastnProvider
config={{
spaceId: "your-space-id-here", // β Replace with your space ID
tenantId: "your-tenant-id-here", // β Replace with your tenant ID
authToken: "your-auth-token-here", // β Replace with your auth token
customAuth: true, // β Keep this as true for custom auth
}}
queryClient={queryClient}
>Where to get your credentials:
- Space ID: Found in your Fastn AI dashboard or provided by your administrator
- Tenant ID: Your organization or user identifier in Fastn AI
- Auth Token: Your application authentication token (must be compatible with Fastn custom auth)
- Contact your Fastn AI administrator if you don't have these credentials
npm run devπ Done! Your app is running at http://localhost:5173
- Fastn AI Account with access to:
- Space ID (looks like:
26b22534-cd25-44dc-90e8-e1afd0a415f4) - Tenant ID (your organization or user identifier)
- Auth Token (your application auth token that can be authenticated by fastn using fastn custom auth)
- Space ID (looks like:
# Check Node.js version (should be 18+)
node --version
# Check npm version (should be 9+)
npm --version# Clone the repository
git clone https://github.com/fastnai/react-core-client.git
# Navigate to project directory
cd react-core-client
# Install all dependencies
npm install- Open
src/App.tsxin your code editor - Find the
FastnProvidercomponent (around line 30) - Replace the configuration values:
// Before (example values)
spaceId: "26b22534-cd25-44dc-90e8-e1afd0a415f4",
tenantId: "sarmadfastn",
authToken: "this-is-a-test-auth-token",
// After (your real values)
spaceId: "your-actual-space-id",
tenantId: "your-actual-tenant-id",
authToken: "your-actual-auth-token",# Start development server
npm run devThe app will open automatically in your browser at http://localhost:5173
| Command | What it does |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run lint |
Check code quality |
src/
βββ components/ # All UI components
β βββ ui/ # Reusable UI primitives
β βββ connectors-list.tsx # Connectors management
β βββ configurations-list.tsx # Configurations management
βββ lib/ # Utility functions
βββ App.tsx # Main app with FastnProvider
βββ main.tsx # App entry point
Solution: The app will automatically use the next available port. Check your terminal for the new URL.
Solution:
- Double-check your
spaceId,tenantId, andauthToken - Ensure your credentials are valid and not expired
- Contact your Fastn AI administrator
Solution:
# Reinstall dependencies
rm -rf node_modules package-lock.json
npm installSolution:
- Make sure you're using Node.js v18+
- Check that all dependencies are installed
- Restart your development server
- Check the console for specific error messages
- Verify your credentials are correct
- Try a fresh install:
rm -rf node_modules package-lock.json npm install
- Contact support with your error details
- ConnectorsList - View and manage your Fastn AI connectors
- ConfigurationsList - Handle configurations and subscriptions
- TabNavigation - Switch between different sections
- FastnProvider - Provides Fastn AI context and authentication
- React 18 - Modern React with hooks
- TypeScript - Type safety throughout
- Tailwind CSS - Utility-first styling
- Vite - Fast build tool and dev server
- Fastn AI SDK - Official Fastn AI React libraries
Once your app is running:
- Explore the UI - Navigate between Connectors and Configurations tabs
- Test functionality - Try creating and managing connectors
- Customize - Modify components to fit your needs
- Deploy - Build and deploy to your hosting platform
MIT License - feel free to use this code in your projects!
Need help? Check the troubleshooting section above or reach out to the Fastn AI team.