flexport-local-dev-loop

Featured

Configure Flexport local development with mock API responses and testing. Use when setting up a development environment, creating mock shipment data, or establishing a fast iteration cycle for Flexport logistics integration. Trigger: "flexport dev setup", "flexport local development", "flexport mock API".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Flexport Local Dev Loop ## Overview Set up a fast, reproducible local development workflow for Flexport integrations. Since Flexport has no official SDK, the dev loop centers on a typed HTTP client wrapper with mock responses for testing. ## Instructions ### Step 1: Project Structure ``` flexport-integration/ ├── src/ │ ├── flexport/ │ │ ├── client.ts # Typed Flexport API client │ │ ├── types.ts # API response types │ │ └── mock-data.ts # Test fixtures │ └── index.ts ├── tests/ │ ├── flexport.test.ts # Unit tests with mocks │ └── integration.test.ts # Live API tests (CI only) ├── .env.local # Local secrets (git-ignored) ├── .env.example └── package.json ``` ### Step 2: Typed Client Wrapper ```typescript // src/flexport/types.ts interface FlexportShipment { id: string; status: 'booked' | 'in_transit' | 'arrived' | 'delivered'; freight_type: 'ocean' | 'air' | 'trucking'; origin_port: { code: string; name: string }; destination_port: { code: string; name: string }; cargo_ready_date: string; estimated_arrival_date: string; } interface FlexportResponse<T> { data: { records: T[]; total_count: number }; } // src/flexport/client.ts export class FlexportClient { private base = 'https://api.flexport.com'; private headers: Record<string, string>; constructor(apiKey: string) { this.headers = { 'Authorization': `Bearer ${apiKey}`, 'Flexport-Version': '2', 'Content-T...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category