A powerful tool for testing, saving, and sharing API requests. Features include Google authentication via Supabase, saving private and public requests, and generating code examples.
- 🔐 User Authentication with Google (via Supabase)
- 💾 Save API Requests privately or publicly
- 🚀 Test API Endpoints with different methods (GET, POST, PUT, DELETE, PATCH)
- 🔄 Generate Code Examples in multiple languages (JavaScript, Python, cURL)
- 📦 Export Documentation for your API requests
- 🔗 Share Requests via URL (with optional password protection)
- 🏷️ Tag System for organizing requests
git clone https://your-repository-url.git
cd api-network-hubnpm install
# or
yarn install
# or
pnpm install-
Create a Supabase account at https://supabase.com
-
Create a new Supabase project
-
Set up Authentication:
- Go to Authentication > Providers
- Enable Google provider
- Create OAuth credentials in the Google Cloud Console:
- Create OAuth 2.0 Client ID
- Set authorized redirect URI to:
https://[YOUR_SUPABASE_PROJECT].supabase.co/auth/v1/callback
- Add Client ID and Client Secret to Supabase
-
Run the database migrations:
- Go to the SQL Editor in your Supabase dashboard
- Create a new query and paste the contents of the migration file
- Run the query to create the necessary tables and policies
Create a .env.local file in the root of your project with the following variables:
NEXT_PUBLIC_SUPABASE_URL=your-supabase-project-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
NEXT_PUBLIC_APP_URL=http://localhost:3000
Replace the values with your Supabase project details.
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the application.
/app- Next.js app router pages and layouts/components- UI components including authentication and request handling/lib- Utilities, types, and Supabase client configuration
The application uses a saved_requests table with the following structure:
id- UUID primary keyuser_id- Reference to auth.users(id)name- Request namemethod- HTTP method (GET, POST, etc.)endpoint- API endpoint URLheaders- JSON headers (optional)body- Request body (optional)tags- Array of tag strings (optional)is_public- Boolean flag for public/private visibilitycreated_at- Timestampupdated_at- Timestamp
- User clicks "Sign in with Google" button
- Supabase redirects to Google OAuth
- After successful sign-in, Google redirects back to the app
- The auth callback page (
/auth/callback) handles the authentication code - User is redirected to the home page, now authenticated
- Row Level Security (RLS) ensures users can only access their own private requests
- Password-protected sharing for private requests
- Only authenticated users can create public examples
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.