Skip to content
프로젝트

소개

Help shape the future of Project G-Assist

AI 및 머신러닝

이 수치를 측정하는 방법

What you can do

  • Python plugins for rapid development using the G-Assist SDK
  • C++ plugins for performance-critical applications with the header-only SDK
  • Node.js plugins for JavaScript developers with the Node.js SDK
  • AI-driven features using the ChatGPT-powered Plugin Builder

측정된 스타 증가

in 24h
+1
in 7 days
+2
in 15 days
+4
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Project G-Assist Plugins

Project G-Assist is an experimental on-device AI Assistant that helps RTX users control a broad range of PC settings, from optimizing game and system settings, charting frame rates and other key performance statistics, to controlling select peripheral lighting — all via basic voice or text commands.

Project G-Assist is built for community expansion. Whether you're a Python developer, C++ enthusiast, or just getting started — its Plugin architecture makes it easy to define new commands for G-Assist to execute. We can't wait to see what the community dreams up!

Why Plugins Matter

  • Leverage a responsive Small Language Model (SLM) running locally on your own RTX GPU
  • Extend and customize G-Assist with functionality that enhances your PC experience
  • Interact with G-Assist from the NVIDIA Overlay without needing to tab out or switch programs
  • Invoke AI-powered GPU and system controls in your applications using C++ and python bindings
  • Integrate with agentic frameworks using tools like Langflow to embed G-Assist in bigger AI pipelines

What Can You Build?

  • Python plugins for rapid development using the G-Assist SDK
  • C++ plugins for performance-critical applications with the header-only SDK
  • Node.js plugins for JavaScript developers with the Node.js SDK
  • AI-driven features using the ChatGPT-powered Plugin Builder
  • Custom system interactions for hardware and OS automation
  • Game and application integrations that enhance PC performance or add new commands

If you're looking for inspiration, check out our sample plugins for controlling peripheral & smart home lighting, invoking larger AI models like Gemini, managing Spotify tracks, checking stock prices, getting weather information, or even checking streamers' online status on Twitch — and then let your own ideas take G-Assist to the next level!

Quick Start

Python Development with G-Assist

Get started quickly using our Python bindings of the C++ APIs:

  1. Install the binding locally
cd api/bindings/python
pip install .
  1. Chat with G-Assist
from rise import rise

# Initialize G-Assist connection
rise.register_rise_client()

# Send and receive messages
response = rise.send_rise_command("What is my GPU?")
print(f'Response: {response}')
"""
Response: Your GPU is an NVIDIA GeForce RTX 5090 with a Driver version of 572.83.
"""
  1. Extend G-Assist with a Plugin
from gassist_sdk import Plugin

plugin = Plugin("my-plugin", version="1.0.0")

@plugin.command("search_web")
def search_web(query: str):
    """Search the web for information."""
    plugin.stream("Searching...")  # Streaming output
    results = do_search(query)
    return {"results": results}

if __name__ == "__main__":
    plugin.run()

💡 Requirements:

  • Python 3.x
  • G-Assist core services installed
  • pip package manager

See our Python Bindings Guide for detailed examples and the Plugin SDK for building plugins.

NVIDIA Plugin Example - Twitch

Try these commands:

  • "Hey Twitch, is Ninja live?"
  • "Check if shroud is streaming"
  • "Is pokimane online right now?"

Example Responses

When a streamer is live:

ninja is LIVE!
Title: Friday Fortnite!
Game: Fortnite
Viewers: 45,231
Started At: 2025-03-14T12:34:56Z

When a streamer is offline:

ninja is OFFLINE

Key Features

  • Protocol V2 with JSON-RPC 2.0 communication
  • Secure API credential management
  • OAuth token handling
  • Comprehensive logging system
  • SDK-based development with automatic ping/pong handling
  • Real-time stream status checking

Project Structure

plugins/examples/twitch/
├── manifest.json        # Plugin configuration (with protocol_version: "2.0")
├── config.json          # Twitch API credentials (add to .gitignore!)
├── plugin.py            # Main plugin code using gassist_sdk
├── requirements.txt     # Python dependencies
├── libs/                # G-Assist SDK folder
│   └── gassist_sdk/     # SDK automatically handles JSON-RPC V2 protocol
└── README.md            # Plugin documentation

See our Twitch Plugin Example Code for a step-by-step guide to creating a Twitch integration plugin for G-Assist.

Table of Contents

G-Assist Module Architecture

flowchart TD
    A[G-Assist] --> B[Inference Engine]
    B -->|Built-in Commands| C[Core Functions]
    B -->|Plugin Commands| D[Plugin Engine]
    D <-->|JSON-RPC 2.0| E[Plugins]

Protocol V2 Features

G-Assist plugins communicate using Protocol V2, a robust JSON-RPC 2.0 based system:

Feature Description
JSON-RPC 2.0 Standard protocol for interoperability
Length-Prefixed Framing Binary 4-byte header ensures reliable message parsing
Engine-Driven Health Monitoring Automatic ping/pong (no plugin heartbeat threads needed)
Native Python Support Run .py files directly—no compilation required
SDK-Based Development ~20 lines of business logic vs. ~200+ lines of boilerplate

See the Plugin Migration Guide for full protocol details.

Extending G-Assist (Plugins)

Transform your ideas into powerful G-Assist plugins! Whether you're a Python developer, C++ enthusiast, or just getting started, our plugin system makes it easy to extend G-Assist's capabilities. Create custom commands, automate tasks, or build entirely new features - the possibilities are endless!

Plugin Architecture

Each plugin lives in its own directory named after the plugin (this name is used to invoke the plugin):

plugins/
└── myplugin/                    # Plugin directory name = invocation name
    ├── plugin.py                # Main plugin script (or .exe for compiled)
    ├── manifest.json            # Plugin configuration with protocol_version
    ├── config.json              # Settings & credentials (optional)
    ├── requirements.txt         # Python dependencies
    └── libs/                    # SDK folder (auto-added to PYTHONPATH)
        └── gassist_sdk/
            ├── __init__.py
            ├── plugin.py
            ├── protocol.py
            └── types.py

File Descriptions:

  • plugin.py - Main plugin script (Python plugins run directly—no compilation needed!)
  • manifest.json - Plugin manifest that defines:
    • manifestVersion - manifest schema version (currently 1)
    • name - plugin identifier
    • version - plugin version (e.g., "1.0.0")
    • description - brief description of plugin functionality
    • executable - name of the executable file (e.g., "plugin.py")
    • persistent - [true/false] whether plugin runs throughout G-Assist lifecycle
    • protocol_version - "2.0" for JSON-RPC V2 protocol (required)
    • functions - array of available functions with:
      • name - function identifier
      • description - what the function does
      • tags - keywords for AI model to match user intent
      • properties - parameters the function accepts
      • required - array of required parameter names
  • config.json - Configuration file for plugin-specific settings (API keys, credentials, etc.) ⚠️ Add to .gitignore
  • libs/gassist_sdk/ - The G-Assist SDK (copy from plugins/sdk/python/gassist_sdk/)

💡 Tip: The plugin directory name is what users will type to invoke your plugin (e.g., "Hey myplugin, do something")

Plugin Integration

How to Call a Plugin from G-Assist

The manifest file acts as the bridge between G-Assist and your plugin. G-Assist automatically scans the plugin directory to discover available plugins.

Two Ways to Invoke Plugins:

  1. Natural Language Commands

    What are the top upcoming games for 2025?
    

    The AI model automatically:

    • Analyzes the user's intent
    • Selects the most appropriate plugin
    • Chooses the relevant function to execute
    • Passes any required parameters
  2. Direct Plugin Invocation

    Hey Logitech, change my keyboard lights to green
    
    • User explicitly specifies the plugin by name
    • AI model determines the appropriate function from the manifest
    • Parameters are extracted from the natural language command

💡 Pro Tip: Direct plugin invocation is faster when you know exactly which plugin you need!

NVIDIA-Built G-Assist Plugins

Explore our official example plugins:

Getting Started

AI & Information

  • Gemini AI Integration - Query Google's Gemini AI for real-time information, general knowledge, and web searches
  • Weather - Get current weather conditions for any city
  • Stock Market - Check stock prices and look up ticker symbols
  • Twitch - Check if streamers are live and get stream details

Smart Lighting

  • Corsair iCUE - Control Corsair RGB peripheral lighting (keyboard, mouse, headset)
  • Logitech G HUB - Control Logitech G RGB peripheral lighting (keyboard, mouse, headset)
  • Nanoleaf - Control Nanoleaf smart lighting panels
  • OpenRGB - Universal RGB lighting control for multiple device brands

Automation & Entertainment

  • Spotify - Control Spotify playback, manage playlists, and get track information
  • IFTTT - Trigger IFTTT applets and automate smart home routines
  • Discord - Send messages, charts, screenshots, and clips to Discord channels

Community-Built Plugins

Check out what others have built:

  • [Your Plugin Here] - Submit your plugin using a pull request! We welcome contributions that:
    • Follow our contribution guidelines
    • Include proper documentation and examples
    • Have been tested thoroughly
    • Add unique value to the ecosystem

Development Tools

Need Help?

License

Documentation, skills, and assets are licensed under CC-BY-4.0. Source code is licensed under the Apache License 2.0. Both texts are in the LICENSE file.

Contributing

We welcome contributions! Please see our Contributing Guide for details.

관련 프로젝트 살펴보기

불러오는 중…