#4051·new-api

[Feature Request] Support custom navigation menu items in header

Author: lcq225Created Apr 2, 2026Updated Sep 29, 2026
Labelsstale

Feature Request: Custom Navigation Menu Items

Summary

Request the ability to add custom navigation menu items to the header bar, allowing users to integrate external tools/services directly into the NewAPI interface.

Motivation

Currently, the navigation menu is fixed with: 首页, 控制台, 模型广场, 文档, 关于.

Many users need to integrate external tools or internal services. For example:

  • Skillhub: Skills marketplace for AI agents
  • Internal Documentation: Company-specific docs
  • Monitoring Dashboard: Grafana/Prometheus dashboards
  • Custom Tools: Internal admin panels

Currently, users must:

  1. Modify source code (web/src/hooks/common/useNavigation.js)
  2. Rebuild the frontend
  3. Redeploy the entire application

This is cumbersome and makes upgrades difficult.

Proposed Solution

Option A: Environment Variable Configuration (Recommended)

Add support for custom menu items via environment variables:

bash
NEWAPI_CUSTOM_NAV_ITEMS='[
  {"name": "Skillhub", "url": "http://192.168.213.151:8888/", "external": true},
  {"name": "Monitoring", "url": "/grafana", "external": false}
]'

Option B: Admin Panel Configuration

Add a "Navigation" section in the admin panel where administrators can:

  • Add custom menu items
  • Set display name, URL, icon
  • Enable/disable items
  • Reorder items

Option C: Configuration File

Add to config.json:

json
{
  "custom_navigation": [
    {
      "key": "skillhub",
      "name": "Skillhub",
      "url": "http://192.168.213.151:8888/",
      "external": true,
      "position": "after:pricing"
    }
  ]
}

Use Cases

  1. AI Agent Platforms: Integrate Skillhub for agent skills marketplace
  2. Enterprise: Link to internal documentation or tools
  3. Service Providers: Add monitoring/status page links
  4. Developers: Quick access to API docs, playground, etc.

Additional Context

Current Workaround: We have to fork the repository, modify web/src/hooks/common/useNavigation.js, build Docker image, and maintain fork for every update.

Related: This would simplify many customization requests and aligns with NewAPI's goal of being a flexible API management platform.

Would you like to contribute?

I'm willing to contribute a PR for this feature if the maintainers agree with the approach.

Environment

  • NewAPI Version: latest
  • Deployment: Docker
  • Use Case: Enterprise internal deployment with multiple integrated tools

Thank you for considering this feature request!