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

@vaeshkar/aip-figma

v2.0.0

Published

Figma service implementation using AIP (AI-Protocol) with AICF-RPC support

Readme

Figma AIP Service 🎨

A complete Figma service implementation using the AIP (AI-Protocol) standard.

This service provides the same capabilities as Figma's MCP server, but using the universal AIP protocol - meaning any LLM can use it, not just Claude!


🌟 Features

File Operations

  • ✅ Get Figma files
  • ✅ Get specific nodes from files
  • ✅ Render images from files
  • ✅ Get image fills
  • ✅ Get file version history

Comments

  • ✅ Get comments
  • ✅ Post comments
  • ✅ Delete comments
  • ✅ Manage comment reactions

Components & Styles

  • ✅ Get team/file components
  • ✅ Get component sets
  • ✅ Get team/file styles
  • ✅ Get style details

Projects & Teams

  • ✅ Get team projects
  • ✅ Get project files

Webhooks (V2 API)

  • ✅ Create webhooks
  • ✅ Get/update/delete webhooks
  • ✅ List team webhooks

Library Analytics

  • ✅ Component usage analytics
  • ✅ Style usage analytics
  • ✅ Variable usage analytics

🚀 Quick Start

Prerequisites

Installation

# Install globally
npm install -g @vaeshkar/aip-figma

# Or use with npx
npx @vaeshkar/aip-figma --figma-token=YOUR_TOKEN

From Source

# Clone and install
git clone https://github.com/Vaeshkar/aip.git
cd aip/services/figma
npm install

# Set your Figma API token
export FIGMA_API_KEY=your_figma_api_key

# Start the service
npm start

The service will start with dual protocol support:

  • JSON-RPC: http://localhost:3001/aip/v1/rpc
  • AICF-RPC: http://localhost:3001/aip/v1/aicf (75% fewer tokens!)

📖 Usage

With JSON-RPC (Human-Friendly)

import { AIPClient } from "@vaeshkar/aip-core";

const client = new AIPClient({
  url: "http://localhost:3001/aip/v1/rpc",
});

await client.connect();

// Get a Figma file
const result = await client.invokeTool("figma.getFile", {
  fileKey: "your-file-key",
});

console.log(result.data);

With curl (JSON-RPC)

# Get a Figma file
curl -X POST http://localhost:3001/aip/v1/rpc \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "aip.tool.invoke",
    "params": {
      "tool": "figma.getFile",
      "arguments": {
        "fileKey": "your-file-key"
      }
    }
  }'

With AICF-RPC (AI-Optimized) 🚀

75% fewer tokens than JSON-RPC!

# List all tools
curl -X POST http://localhost:3001/aip/v1/aicf \
  -H "Content-Type: text/plain" \
  -d "LIST"

# Get tool info
curl -X POST http://localhost:3001/aip/v1/aicf \
  -H "Content-Type: text/plain" \
  -d "INFO|figma.getFile"

# Get a Figma file
curl -X POST http://localhost:3001/aip/v1/aicf \
  -H "Content-Type: text/plain" \
  -d "CALL|figma.getFile|your-file-key"

Learn more: AICF-RPC Documentation


🔧 Available Tools

File Tools

  • figma.getFile - Get a Figma file by key
  • figma.getFileNodes - Get specific nodes from a file
  • figma.getImages - Render images from a file
  • figma.getImageFills - Get image fills in a file
  • figma.getFileVersions - Get version history

Comment Tools

  • figma.getComments - Get comments in a file
  • figma.postComment - Add a comment
  • figma.deleteComment - Delete a comment

Component Tools

  • figma.getTeamComponents - Get components in a team
  • figma.getFileComponents - Get components in a file
  • figma.getComponent - Get a component by key

Style Tools

  • figma.getTeamStyles - Get styles in a team
  • figma.getFileStyles - Get styles in a file
  • figma.getStyle - Get a style by key

Project Tools

  • figma.getTeamProjects - Get projects in a team
  • figma.getProjectFiles - Get files in a project

🆚 AIP vs MCP

| Feature | Figma AIP Service | Figma MCP Server | | ------------------ | ---------------------- | ---------------- | | Protocol | AIP (Universal) | MCP (Anthropic) | | LLM Support | Any LLM | Claude only | | Transport | HTTP, WebSocket, stdio | stdio, SSE | | Context Format | AICF-native | Custom | | Extensibility | Plugin architecture | Limited |


📝 Configuration

Environment Variables

  • FIGMA_API_KEY - Your Figma API token (required)
  • PORT - Server port (default: 3001)
  • HOST - Server host (default: 0.0.0.0)

Command Line Arguments

npm start -- --figma-token YOUR_TOKEN --port 3001

🔐 Authentication

The service requires a Figma API token. You can provide it via:

  1. Environment variable: FIGMA_API_KEY=your_token
  2. Command line: --figma-token your_token
  3. Config file: Create config.json with {"figmaApiKey": "your_token"}

📚 Examples

See the examples/ directory for complete usage examples.


🤝 Contributing

This is part of the AIP ecosystem. Contributions welcome!


📄 License

AGPL-3.0-or-later

Copyright (c) 2025 Dennis van Leeuwen (Digital Liquids)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

See LICENSE for full details.


Built with ❤️ by Dennis van Leeuwen using AIP (AI-Protocol)