-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Open
Labels
📝 DocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
📚 Documentation Request
Background
I discovered that LobeChat already supports custom market server URLs via the NEXT_PUBLIC_MARKET_BASE_URL environment variable. This is excellent for self-hosters who want to run their own marketplace infrastructure. However, this capability is currently undocumented.
What's Missing
-
Environment Variable Documentation
NEXT_PUBLIC_MARKET_BASE_URLis not listed in the self-hosting environment variables documentation- No guidance on when/why self-hosters might want to configure this
-
Market API Contract Documentation
- No documentation explaining what endpoints a compatible market server must implement
- The
@lobehub/market-sdkpackage is used internally but its expected API contract isn't publicly documented
Requested Documentation
1. Add to Environment Variables docs:
| Variable | Description | Default |
|---|---|---|
NEXT_PUBLIC_MARKET_BASE_URL |
Custom market server URL for self-hosted marketplace | https://market.lobehub.com |
2. Create a "Self-hosting Custom Market" guide covering:
- When to use a custom market server (privacy, enterprise, air-gapped environments)
- Required API endpoints (agents, plugins, MCPs, models, providers)
- Authentication requirements (M2M tokens, OIDC flows)
- Example minimal implementation or reference to
@lobehub/market-sdktypes
Why This Matters
Self-hosting is a key strength of LobeChat. Documenting the market customization capability would:
- Empower privacy-conscious deployments
- Support enterprise/air-gapped environments
- Reduce support burden by enabling community-built solutions
References
- Related feature already exists in code:
src/server/services/discover/index.ts - SDK packages:
@lobehub/market-sdk,@lobehub/market-types - My previous issue: #10752
dosubot
Metadata
Metadata
Assignees
Labels
📝 DocumentationImprovements or additions to documentationImprovements or additions to documentation