proxy-route

Generate HTTP proxy routes for the Vivreal portal using a factory pattern.

Updated May 12, 2026
One-click install
npx skills add https://github.com/HillBombCreations/vivreal-skills --skill proxy-route
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: proxy-route
Source: https://github.com/HillBombCreations/vivreal-skills/tree/main/vivreal-proxy-factory/skills/cmd-proxy-route
Command: npx skills add https://github.com/HillBombCreations/vivreal-skills --skill proxy-route

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the generation of proxy routes for the Vivreal portal, streamlining the process of setting up new routes and reducing manual configuration efforts.

Core Features & Use Cases

  • Automated Route Generation: Generates new proxy routes using the createProxyHandler() factory pattern.
  • Customizable Arguments: Offers various flags to customize the route, such as method, path, upstream path, and timeout settings.
  • Upstream URL Mapping: Allows selection of different backend services (cms, secure, main) with respective environment variables.
  • Use Case: For developers who need to quickly set up new API routes for the Vivreal portal without manual coding.

Quick Start

Create a new proxy route for the 'analytics' integration using method GET and upstream 'cms' with params 'type', 'startDate', and 'endDate'.

Frequently Asked Questions about proxy-route

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

FAQPage Schema
How do I create HTTP proxy routes for the Vivreal portal?

Vivreal portal proxy routes are generated automatically using the createProxyHandler() factory pattern, handling HTTP methods, custom paths, and upstream services. This reduces manual coding by using flags to configure backend URLs, CSRF, timeout, and validation.

Can I customize HTTP methods and timeout settings for my API proxy route?

Yes, you can customize HTTP methods and timeout settings for an API proxy route using specific flags. The factory pattern accepts arguments for method, path, upstream path, and timeout, alongside optional CSRF and validation flags to fit your backend service requirements.

How do I map proxy routes to different backend services?

You map proxy routes to different backend services by selecting specific upstream options like cms, secure, or main. The factory pattern uses respective environment variables for these upstream URLs to direct your API traffic to the correct backend service automatically.

Do I need environment variables to set up an upstream API proxy?

Yes, environment variables are required to set up an upstream API proxy. They define the backend URLs for your selected upstream services, ensuring the generated HTTP routes correctly forward requests to the intended cms, secure, or main backend endpoints.

What is the best way to automate proxy route generation without manual coding?

The best way to automate proxy route generation without manual coding is using a factory pattern like createProxyHandler(). It streamlines setting up new API routes by accepting customizable arguments for methods, paths, and upstream services directly through command flags.

Are there limitations when using a factory pattern for HTTP proxy configuration?

A limitation of using a factory pattern for HTTP proxy configuration is the dependency on predefined upstream services like cms, secure, and main. You must configure environment variables for backend URLs and apply optional flags for CSRF and validation within this fixed structure.