mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #66] [MERGED] feat: extension hooks for bot browser providers and generic proxy route #4435
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4435
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/66
Author: @LukaTheHero
Created: 4/5/2026
Status: ✅ Merged
Merged: 4/5/2026
Merged by: @LukaTheHero
Base:
main← Head:feature/extension-bot-browser-hooks📝 Commits (1)
459210afeat: extension hooks for bot browser providers and generic proxy route📊 Changes
4 files changed (+244 additions, -3 deletions)
View changed files
📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+39 -3)📝
packages/client/src/components/layout/CustomThemeInjector.tsx(+13 -0)➕
packages/server/src/routes/ext-proxy.routes.ts(+188 -0)📝
packages/server/src/routes/index.ts(+4 -0)📄 Description
What's new
1. Generic Extension Proxy Route (
POST /api/ext/proxy){ url, method, headers, body, timeout, responseType }POST /api/ext/proxy/binaryfor image/avatar proxying2. Bot Browser Provider Registry
marinara.registerBotBrowserProvider(config)3. Extension API Addition
registerBotBrowserProvider(config)to themarinaraAPI object passed to JS extensionsUse case
Third-party extensions can now add new character sources to the bot browser (e.g. additional websites) without modifying Marinara Engine's core code. The proxy route handles CORS, and the provider registry handles UI integration.
Files changed
packages/server/src/routes/ext-proxy.routes.ts— NEW: generic proxy routepackages/server/src/routes/index.ts— registered proxy routepackages/client/src/components/bot-browser/BotBrowserView.tsx— dynamic provider registrypackages/client/src/components/layout/CustomThemeInjector.tsx— new extension API method🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.