npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

apigee-templater

v4.1.2

Published

Provides tooling for feature development of Apigee proxies using YAML, JSON and ZIP formats, and REST, MCP & CLI interfaces.

Readme

Apigee Feature Templater (aft) 🚀

Apigee Feature Templater is your new best friend for API authoring. Forget repetitive boilerplate—Feature 🧩 and Template 🏗️ definitions let you compose APIs like a pro. Deploy them as Apigee proxies 📦 and go grab a coffee ☕.

Get the Party Started 🎉

npm i apigee-templater -g

Concepts & Formats 🧠

1. Feature 🧩

Think of this as a Lego brick for your API logic. Policies, resources, parameters—all wrapped up nicely.

Example my-feature.yaml:

name: response-hello-world
type: feature
description: Adds a hello world message to the response.
parameters:
  - name: MESSAGE
    default: Hello world!
policies:
  - name: JS-AddMessage
    type: Javascript
    content:
      javascript:
        resourceUrl: jsc://add-message.js
resources:
  - name: add-message.js
    type: jsc
    content: |
      context.setVariable("response.content", "Hello world!");

2. Template 🏗️

The blueprint. Mix and match features to build your dream API.

Example my-template.yaml:

name: AI-Gateway-v1
type: template
description: API template for AI-Gateway-v1
features:
  - target-llm-gemini
  - auth-key-header
parameters:
  - name: auth-key-header.API_KEY_HEADER_NAME
    default: x-api-key
endpoints:
  - name: default
    basePath: /v1/gemini
    routes:
      - name: default
        target: llm-gemini
targets:
  - name: llm-gemini
    url: https://aiplatform.googleapis.com/v1/projects/{organization.name}/locations/global/endpoints/openapi/chat/completions
    auth: GoogleAccessToken

3. Proxy 📦

The final package. Ready to ship to Apigee. It is also the format used internally when a Template is processed.

Example my-proxy.yaml:

name: SimpleProxy-v1
type: proxy
description: A simple proxy definition.
endpoints:
  - name: default
    basePath: /v1/simple
    routes:
      - name: default
        target: default
targets:
  - name: default
    url: https://mocktarget.apigee.net

Magic Spells (Commands) 🧙‍♂️

  • Conjure a new template: 🪄

    aft my-template.yaml
  • Enchant a template with a feature: ✨

    aft my-template.yaml -a target-httpbin
  • Launch (Deploy) to Apigee: 🚀

    PROJECT_ID=my-gcp-project
    aft -i my-template.yaml -o $PROJECT_ID:my-proxy-name

License 📜

Apache 2.0 - Not an official Google product (but still awesome).