bff-gateway

Orchestrate frontend API requests and aggregate microservice responses in the BFF gateway.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/leasebase/leasebase-bff-gateway --skill bff-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bff-gateway
Source: https://github.com/leasebase/leasebase-bff-gateway/tree/main/.agents/skills/bff-gateway
Command: npx skills add https://github.com/leasebase/leasebase-bff-gateway --skill bff-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill manages the backend-for-frontend gateway layer, orchestrating frontend-oriented API requests and aggregating responses from internal microservices.

Core Features & Use Cases

  • API Orchestration: Routes external requests to appropriate internal microservices.
  • Request Aggregation: Combines data from multiple backend services for a unified frontend response.
  • Gateway Behavior: Manages proxy behavior, route protection, and ensures auth/session context is handled securely.
  • Use Case: When a web client requests user profile information, the BFF Gateway might call the user service for basic details and the lease service for associated lease data, then combine these into a single response.

Quick Start

Analyze the repository to understand the current gateway responsibilities before making any changes.

Frequently Asked Questions about bff-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a BFF gateway and how does it handle API orchestration for microservices?

A BFF gateway manages the backend-for-frontend layer by orchestrating frontend-oriented API requests and aggregating responses from internal microservices into a unified output. It handles routing, proxy behavior, and request shaping for web clients.

How do I aggregate data from multiple microservices for a single frontend response?

You aggregate data from multiple microservices by using a BFF gateway layer to route external requests to appropriate internal services, fetch associated data, and combine these multiple backend responses into a single unified frontend response.

Does this BFF gateway work with ECS and Fargate deployment environments?

Yes, this BFF gateway requires compatibility with ECS/Fargate and existing routing patterns. It is designed to manage auth/session-aware gateway behavior and route protection within those specific container deployment environments.

How does a backend-for-frontend proxy manage auth and session context securely?

A backend-for-frontend proxy manages auth and session context securely by enforcing route protection and maintaining session-aware gateway behavior. This ensures that frontend API requests are safely authenticated before being proxied to internal microservices.

When should I use API request aggregation instead of direct microservice calls?

You should use API request aggregation when a web client needs unified data from multiple backend services. Instead of making direct microservice calls, the BFF gateway combines associated data into a single response to reduce client-side complexity.

What is the best way to modify existing gateway routing patterns for microservices?

The best way to modify gateway routing patterns is to first analyze the repository to understand the current gateway responsibilities. This ensures any changes to proxy behavior, route protection, or API orchestration maintain compatibility with existing patterns.