
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
apigee-templater
Advanced tools
Provides tooling for the templating and conversion of Apigee proxies between XML zip, JSON, and Yaml, and providing conversion services through REST, CLI and MCP.
Apigee Business Templater is a Node.js tool written in Typescript providing assisted & streamlined Apigee proxy authoring through the use of template and feature definitions. It is especially useful for Apigee non-experts, for example domain or business teams, to create, publish and manage APIs, without needing to be Apigee proxy developers.
Here is an example template in YAML format to create a simple proxy to httpbin.org:
---
name: HttpBin-v1
type: template
description: A simple proxy to httpbin.
features: []
endpoints:
- name: default
basePath: "/v1/httpbin"
routes:
- name: default
target: default
targets:
- name: default
url: https://httpbin.org
Feature - a feature is a piece of composable functionality that can be added to templates, and includes all details needed to implement the functionality. Here is an example feature definition YAML file that a Gemini endpoint and target to a template. Apigee proxies that model individual features, let's call them feature proxies, can be converted to features easily using Apigee Templater.
Proxy - a proxy is a finished API generated from a template and all referenced features, and can be either in JSON, YAML or ZIP format. It includes all details of the API logic and handling, and can be directly deployed to any Apigee instance. Here is an example proxy output YAML file that has been generated from the AI Template and includes our AI features.
Using templates and features it's possible to compose Apigee proxies from pre-defined building blocks, without having to directly write or create Apigee proxy definitions in XML. If templates and features cannot be found locally, the repository directory is checked as a central repository. If you would like to add useful templates or features to the repository, just open a pull request.
Apigee Templater provides REST, MCP and CLI interfaces to build, manage & apply templates and features to create or modify Apigee proxies. Apigee Templater v3 is currently in BETA status, if you test and find bugs or have feature requests please report them as Issues.
SimpleProxy-v1
proxy ZIP, JSON and YAML formats. The proxy receives traffic at the /v1/simple-proxy
base path, and directs traffic to two targets based on the path. A Javascript policy also adds "hello world" to the response.auth-apikey-header
JSON definition.SimpleProxy-v2
JSON definition after the feature auth-apikey-header
has been applied, adding auth to the proxy.npm i && npm run test
.You can use the apigee-templater CLI locally or using npx, using either apigee-templater or abt as command.
# install
npm i -g apigee-templater
# list commands
abt -h
# get a description of the proxy Gemini-v1 from Apigee org apigee-prod13
abt -i apigee-prod13:Gemini-v1 -t $(gcloud auth print-access-token)
# export the Apigee proxy Gemini-v1 from the org apigee-prod13 as a yaml proxy file
abt -i apigee-prod13:Gemini-v1 -o Gemini-v1.yaml -t $(gcloud auth print-access-token)
# build the AI Template into a proxy zip that can be deployed to Apigee (-f format is not needed since .zip can only mean the apigee proxy format).
abt -i AI-API-v1 -o AI-API-v1.zip
After cloning this repository you can start the REST & MCP server like this.
# install dependencies
npm i
# start server
npm start
Sample REST calls can be found in the wiki.
Test the MCP server in a sample ADK agent here.
Sample agent requests:
List all proxies in the apigee org apigee-prod13.
Describe the proxy Llama-v1 in the org apigee-prod13.
Import the proxy Llama-v1 to a feature with the name AI-Llama-v1.
Create a new template named AI-Proxy-v1 with the features AI-Llama-v1, AI-Gemini-v1 and Auth-Key-Header-v1 applied.
Export a proxy from the template AI-Proxy-v1 and deploy it to the apigee org apigee-prod13 and environment dev.
Currently these features are not yet supported:
See the contributing instructions to get started.
All solutions within this repository are provided under the Apache 2.0 license. Please see the LICENSE file for more detailed terms and conditions.
This repository and its contents are not an official Google product.
FAQs
Provides tooling for the templating and conversion of Apigee proxies between XML zip, JSON, and Yaml, and providing conversion services through REST, CLI and MCP.
We found that apigee-templater demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.