Skip to content

lopongoaca/starApi

Repository files navigation

StarAPI

A simple, fast API testing tool built with Tauri + React. Think of it as a lightweight alternative to Postman.

Features

  • Collections & Folders: Organize your API requests in a hierarchical structure with unlimited nesting
  • Tabbed Interface: Work on multiple requests simultaneously with tab navigation
  • Keyboard Shortcuts: Navigate efficiently with keyboard shortcuts
  • HTTP Methods: Support for GET, POST, PUT, DELETE
  • Authentication: Basic Auth and Bearer Token support
  • Request Body: JSON, raw text, and form data support
  • Response Viewer: Syntax highlighted JSON responses with headers inspection
  • Export/Import: Export collections to JSON files and import them back

Keyboard Shortcuts

Shortcut Action
Cmd/Ctrl + T New tab
Cmd/Ctrl + W Close current tab
Cmd/Ctrl + 1-9 Go to tab N
Cmd/Ctrl + Tab Next tab
Cmd/Ctrl + Shift + Tab Previous tab

Development

Prerequisites

Setup

# Install dependencies
pnpm install

# Run in development mode
pnpm tauri dev

# Build for production
pnpm tauri build

Tech Stack

  • Frontend: React 18, TypeScript, Tailwind CSS, Zustand
  • Backend: Tauri v2, Rust
  • HTTP Client: reqwest (Rust)
  • Code Editor: CodeMirror

Project Structure

starApi/
├── src/                    # React frontend
│   ├── components/         # UI components
│   │   ├── Sidebar/        # Collection tree
│   │   ├── Tabs/           # Tab bar
│   │   ├── RequestPanel/   # Request editor
│   │   └── ResponsePanel/  # Response viewer
│   ├── store/              # Zustand stores
│   ├── hooks/              # React hooks
│   ├── types/              # TypeScript types
│   └── lib/                # Tauri API wrapper
└── src-tauri/              # Rust backend
    └── src/
        ├── commands/       # Tauri commands
        └── models/         # Data models

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages