search-rotation 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/dist/abort.js +14 -0
- package/dist/config.js +109 -0
- package/dist/engines/base.js +72 -0
- package/dist/engines/duckduckgo.js +98 -0
- package/dist/engines/exa.js +113 -0
- package/dist/engines/firecrawl.js +78 -0
- package/dist/engines/googlecse.js +41 -0
- package/dist/engines/hosted-mcp.js +24 -0
- package/dist/engines/index.js +13 -0
- package/dist/engines/jina.js +28 -0
- package/dist/engines/parallel.js +74 -0
- package/dist/engines/tavily.js +74 -0
- package/dist/history.js +59 -0
- package/dist/index.js +182 -0
- package/dist/mcp/engine-status.js +58 -0
- package/dist/mcp/http.js +35 -0
- package/dist/mcp/server.js +105 -0
- package/dist/persistence.js +80 -0
- package/dist/quota.js +37 -0
- package/dist/router.js +183 -0
- package/dist/search-time.js +31 -0
- package/dist/status.js +141 -0
- package/dist/types.js +1 -0
- package/dist/usage.js +95 -0
- package/dist/version.js +5 -0
- package/dist/web/app.js +155 -0
- package/dist/web/security.js +116 -0
- package/docs/assets/brand/FONT-LICENSE.txt +93 -0
- package/docs/assets/brand/README.md +18 -0
- package/docs/assets/brand/icon-128.png +0 -0
- package/docs/assets/brand/icon-32.png +0 -0
- package/docs/assets/brand/icon-512.png +0 -0
- package/docs/assets/brand/icon-dark-128.png +0 -0
- package/docs/assets/brand/icon-dark-512.png +0 -0
- package/docs/assets/brand/icon-dark.svg +1 -0
- package/docs/assets/brand/icon-light-128.png +0 -0
- package/docs/assets/brand/icon-light-512.png +0 -0
- package/docs/assets/brand/icon-light.svg +1 -0
- package/docs/assets/brand/icon-mono.svg +1 -0
- package/docs/assets/brand/icon.svg +1 -0
- package/docs/assets/brand/preview.png +0 -0
- package/docs/assets/brand/preview.svg +1 -0
- package/docs/assets/brand/wordmark-dark.svg +1 -0
- package/docs/assets/brand/wordmark-light.svg +1 -0
- package/docs/assets/dashboard-dark.png +0 -0
- package/docs/assets/dashboard-light.png +0 -0
- package/docs/assets/dashboard.png +0 -0
- package/docs/assets/mcp-tools-dark.png +0 -0
- package/docs/assets/mcp-tools-light.png +0 -0
- package/docs/assets/mcp-tools.png +0 -0
- package/docs/assets/search-rotation.svg +52 -0
- package/docs/clients.md +93 -0
- package/docs/operations.md +66 -0
- package/docs/provider-access.md +38 -0
- package/docs/release-notes.md +52 -0
- package/package.json +65 -0
- package/static/app.js +1126 -0
- package/static/engine-logos/README.md +11 -0
- package/static/engine-logos/duckduckgo.png +0 -0
- package/static/engine-logos/exa.png +0 -0
- package/static/engine-logos/firecrawl.png +0 -0
- package/static/engine-logos/google-cse.png +0 -0
- package/static/engine-logos/jina.png +0 -0
- package/static/engine-logos/parallel.png +0 -0
- package/static/engine-logos/tavily.png +0 -0
- package/static/i18n.js +709 -0
- package/static/index.html +95 -0
- package/static/style.css +1258 -0
package/dist/web/app.js
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Hono } from "hono";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { maskKey } from "../status.js";
|
|
6
|
+
import { VERSION } from "../version.js";
|
|
7
|
+
const staticDir = fileURLToPath(new URL("../../static/", import.meta.url));
|
|
8
|
+
function publicConfig(cfg, adapters) {
|
|
9
|
+
return {
|
|
10
|
+
version: 1,
|
|
11
|
+
engines: cfg.engines.map((e) => {
|
|
12
|
+
const meta = adapters.find((a) => a.meta.id === e.id)?.meta;
|
|
13
|
+
return {
|
|
14
|
+
id: e.id,
|
|
15
|
+
enabled: e.enabled,
|
|
16
|
+
hasKey: Boolean(e.apiKey),
|
|
17
|
+
keyMasked: maskKey(e.apiKey),
|
|
18
|
+
extrasSet: Object.fromEntries((meta?.extraFields ?? []).map((f) => [f.key, Boolean(e.extra?.[f.key])])),
|
|
19
|
+
};
|
|
20
|
+
}),
|
|
21
|
+
fetchOrder: cfg.fetchOrder,
|
|
22
|
+
settings: { port: cfg.settings.port, tokenSet: Boolean(cfg.settings.token),
|
|
23
|
+
defaultNumResults: cfg.settings.defaultNumResults === undefined ? 8 : cfg.settings.defaultNumResults,
|
|
24
|
+
strictFreeMode: cfg.settings.strictFreeMode ?? false, requestTimeoutMs: cfg.settings.requestTimeoutMs ?? 60_000,
|
|
25
|
+
monthlyLimits: cfg.settings.monthlyLimits, dailyLimits: cfg.settings.dailyLimits ?? {} },
|
|
26
|
+
enginesMeta: adapters.map((a) => a.meta),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function buildWebApp(deps) {
|
|
30
|
+
const app = new Hono();
|
|
31
|
+
const serve = (file, type) => (c) => c.body(readFileSync(path.join(staticDir, file), "utf8"), 200, {
|
|
32
|
+
"content-type": type,
|
|
33
|
+
// Lokales Dashboard: Statics immer frisch validieren — sonst sieht
|
|
34
|
+
// man nach Updates hartnäckig die alte Version aus dem Browser-Cache.
|
|
35
|
+
"cache-control": "no-cache",
|
|
36
|
+
});
|
|
37
|
+
app.get("/", serve("index.html", "text/html; charset=utf-8"));
|
|
38
|
+
app.get("/app.js", serve("app.js", "text/javascript; charset=utf-8"));
|
|
39
|
+
app.get("/i18n.js", serve("i18n.js", "text/javascript; charset=utf-8"));
|
|
40
|
+
app.get("/style.css", serve("style.css", "text/css; charset=utf-8"));
|
|
41
|
+
// Exact routes only: never use a request path to read arbitrary static files.
|
|
42
|
+
for (const id of ["tavily", "firecrawl", "parallel", "exa", "google-cse", "jina", "duckduckgo"]) {
|
|
43
|
+
app.get(`/engine-logos/${id}.png`, c => c.body(readFileSync(path.join(staticDir, "engine-logos", `${id}.png`)), 200, { "content-type": "image/png", "cache-control": "no-cache" }));
|
|
44
|
+
}
|
|
45
|
+
app.get("/api/meta", (c) => c.json({ version: VERSION, configPath: deps.configPath, month: deps.month() }));
|
|
46
|
+
app.get("/api/config", (c) => c.json(publicConfig(deps.getConfig(), deps.adapters)));
|
|
47
|
+
app.put("/api/config", async (c) => {
|
|
48
|
+
const body = await c.req.json().catch(() => null);
|
|
49
|
+
if (!body || !Array.isArray(body.engines))
|
|
50
|
+
return c.json({ error: "engines[] erwartet" }, 400);
|
|
51
|
+
const cfg = deps.getConfig();
|
|
52
|
+
const known = new Map(deps.adapters.map((a) => [a.meta.id, a]));
|
|
53
|
+
// Engines zusammenführen. apiKey: undefined/"" = unverändert, null = löschen, string = setzen.
|
|
54
|
+
const merged = body.engines
|
|
55
|
+
.filter((e) => known.has(e?.id))
|
|
56
|
+
.map((e) => {
|
|
57
|
+
const prev = cfg.engines.find((x) => x.id === e.id);
|
|
58
|
+
const next = {
|
|
59
|
+
id: e.id,
|
|
60
|
+
enabled: typeof e.enabled === "boolean" ? e.enabled : prev?.enabled ?? true,
|
|
61
|
+
apiKey: e.apiKey === null
|
|
62
|
+
? undefined
|
|
63
|
+
: typeof e.apiKey === "string" && e.apiKey.trim()
|
|
64
|
+
? e.apiKey.trim()
|
|
65
|
+
: prev?.apiKey,
|
|
66
|
+
};
|
|
67
|
+
const meta = known.get(e.id).meta;
|
|
68
|
+
if (meta.keyless === "no" && !next.apiKey)
|
|
69
|
+
next.enabled = false;
|
|
70
|
+
if (meta.extraFields?.length) {
|
|
71
|
+
const extra = { ...(prev?.extra ?? {}) };
|
|
72
|
+
for (const f of meta.extraFields) {
|
|
73
|
+
const v = e.extra?.[f.key];
|
|
74
|
+
if (v === null)
|
|
75
|
+
delete extra[f.key];
|
|
76
|
+
else if (typeof v === "string" && v.trim())
|
|
77
|
+
extra[f.key] = v.trim();
|
|
78
|
+
}
|
|
79
|
+
if (Object.keys(extra).length > 0)
|
|
80
|
+
next.extra = extra;
|
|
81
|
+
}
|
|
82
|
+
return next;
|
|
83
|
+
});
|
|
84
|
+
for (const a of deps.adapters) {
|
|
85
|
+
if (!merged.some((m) => m.id === a.meta.id)) {
|
|
86
|
+
const prev = cfg.engines.find((x) => x.id === a.meta.id);
|
|
87
|
+
merged.push(prev ?? { id: a.meta.id, enabled: a.meta.defaultEnabled ?? a.meta.keyless === "ip" });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const fetchCapable = new Set(deps.adapters.filter((a) => a.meta.capabilities.includes("fetch")).map((a) => a.meta.id));
|
|
91
|
+
const fo = Array.isArray(body.fetchOrder)
|
|
92
|
+
? body.fetchOrder.filter((id) => typeof id === "string" && fetchCapable.has(id))
|
|
93
|
+
: [];
|
|
94
|
+
for (const id of cfg.fetchOrder) {
|
|
95
|
+
if (!fo.includes(id))
|
|
96
|
+
fo.push(id);
|
|
97
|
+
}
|
|
98
|
+
const settings = { ...cfg.settings };
|
|
99
|
+
if (typeof body.settings?.port === "number" &&
|
|
100
|
+
body.settings.port >= 1024 &&
|
|
101
|
+
body.settings.port <= 65535) {
|
|
102
|
+
settings.port = body.settings.port;
|
|
103
|
+
}
|
|
104
|
+
if (typeof body.settings?.strictFreeMode === "boolean")
|
|
105
|
+
settings.strictFreeMode = body.settings.strictFreeMode;
|
|
106
|
+
if (body.settings && Object.hasOwn(body.settings, "defaultNumResults")) {
|
|
107
|
+
const value = body.settings.defaultNumResults;
|
|
108
|
+
if (value !== null && !(Number.isInteger(value) && value >= 1 && value <= 20))
|
|
109
|
+
return c.json({ error: "defaultNumResults must be null (provider default) or an integer from 1 to 20" }, 400);
|
|
110
|
+
settings.defaultNumResults = value;
|
|
111
|
+
}
|
|
112
|
+
if (Number.isInteger(body.settings?.requestTimeoutMs) && body.settings.requestTimeoutMs >= 1000 && body.settings.requestTimeoutMs <= 300_000)
|
|
113
|
+
settings.requestTimeoutMs = body.settings.requestTimeoutMs;
|
|
114
|
+
for (const field of ["dailyLimits", "monthlyLimits"]) {
|
|
115
|
+
const limits = body.settings?.[field];
|
|
116
|
+
if (limits && typeof limits === "object" && !Array.isArray(limits)) {
|
|
117
|
+
settings[field] = Object.fromEntries(Object.entries(limits).filter(([, v]) => typeof v === "number" && Number.isFinite(v) && v >= 0));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (body.settings?.token === null)
|
|
121
|
+
settings.token = "";
|
|
122
|
+
else if (typeof body.settings?.token === "string")
|
|
123
|
+
settings.token = body.settings.token.trim();
|
|
124
|
+
const requiresRestart = settings.token !== cfg.settings.token || settings.port !== cfg.settings.port;
|
|
125
|
+
deps.saveConfig({ version: 1, engines: merged, fetchOrder: [...new Set(fo)], settings });
|
|
126
|
+
return c.json({ ok: true, requiresRestart, config: publicConfig(deps.getConfig(), deps.adapters) });
|
|
127
|
+
});
|
|
128
|
+
app.get("/api/status", async (c) => c.json({
|
|
129
|
+
version: VERSION,
|
|
130
|
+
month: deps.month(),
|
|
131
|
+
configPath: deps.configPath,
|
|
132
|
+
engines: await deps.status(),
|
|
133
|
+
}));
|
|
134
|
+
app.get("/api/history", (c) => {
|
|
135
|
+
// Number("") wäre 0 — deshalb explizit > 0 prüfen
|
|
136
|
+
const n = Number(c.req.query("limit") ?? 50);
|
|
137
|
+
const limit = Number.isFinite(n) && n > 0 ? n : 50;
|
|
138
|
+
return c.json({ entries: deps.historyList(limit) });
|
|
139
|
+
});
|
|
140
|
+
app.delete("/api/history", (c) => {
|
|
141
|
+
deps.historyClear();
|
|
142
|
+
return c.json({ ok: true });
|
|
143
|
+
});
|
|
144
|
+
app.post("/api/test", async (c) => {
|
|
145
|
+
const body = await c.req.json().catch(() => null);
|
|
146
|
+
const id = body?.id;
|
|
147
|
+
const kind = body?.kind === "fetch" ? "fetch" : "search";
|
|
148
|
+
if (typeof id !== "string" || !deps.adapters.some((a) => a.meta.id === id)) {
|
|
149
|
+
return c.json({ error: "unbekannte Engine" }, 400);
|
|
150
|
+
}
|
|
151
|
+
const arg = String(body?.arg ?? (kind === "search" ? "model context protocol" : "https://example.com"));
|
|
152
|
+
return c.json(await deps.testEngine(id, kind, arg, c.req.raw.signal));
|
|
153
|
+
});
|
|
154
|
+
return app;
|
|
155
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { randomBytes, timingSafeEqual } from 'node:crypto';
|
|
2
|
+
import { bodyLimit } from 'hono/body-limit';
|
|
3
|
+
import { getCookie, setCookie } from 'hono/cookie';
|
|
4
|
+
const COOKIE = 'sr_session';
|
|
5
|
+
const SESSION_MS = 8 * 60 * 60 * 1000;
|
|
6
|
+
const publicFiles = new Set(['/app.js', '/i18n.js', '/style.css']);
|
|
7
|
+
function equal(a, b) {
|
|
8
|
+
const left = Buffer.from(a), right = Buffer.from(b);
|
|
9
|
+
return left.length === right.length && timingSafeEqual(left, right);
|
|
10
|
+
}
|
|
11
|
+
export function mountSecurity(app, options) {
|
|
12
|
+
const origins = [...new Set([options.origin, ...(options.additionalOrigins ?? [])].map(o => new URL(o).origin))];
|
|
13
|
+
const allowedHosts = origins.map(o => new URL(o).host);
|
|
14
|
+
const tickets = new Map();
|
|
15
|
+
const sessions = new Map();
|
|
16
|
+
const failures = [];
|
|
17
|
+
const prune = (map) => {
|
|
18
|
+
for (const [key, expiry] of map)
|
|
19
|
+
if (expiry <= Date.now())
|
|
20
|
+
map.delete(key);
|
|
21
|
+
};
|
|
22
|
+
const session = (c) => {
|
|
23
|
+
prune(sessions);
|
|
24
|
+
if (sessions.size >= 100)
|
|
25
|
+
sessions.delete(sessions.keys().next().value);
|
|
26
|
+
const id = randomBytes(32).toString('base64url');
|
|
27
|
+
sessions.set(id, Date.now() + SESSION_MS);
|
|
28
|
+
setCookie(c, COOKIE, id, { httpOnly: true, sameSite: 'Strict', secure: new URL(options.origin).protocol === 'https:', path: '/', maxAge: SESSION_MS / 1000 });
|
|
29
|
+
return c.redirect('/', 303);
|
|
30
|
+
};
|
|
31
|
+
app.use('*', async (c, next) => {
|
|
32
|
+
c.header('Referrer-Policy', 'no-referrer');
|
|
33
|
+
c.header('X-Content-Type-Options', 'nosniff');
|
|
34
|
+
c.header('X-Frame-Options', 'DENY');
|
|
35
|
+
c.header('Cache-Control', 'no-store');
|
|
36
|
+
const url = new URL(c.req.url);
|
|
37
|
+
const host = c.req.header('host') ?? url.host;
|
|
38
|
+
if (!allowedHosts.includes(host) || !allowedHosts.includes(url.host))
|
|
39
|
+
return c.text('Host nicht erlaubt', 403);
|
|
40
|
+
const origin = c.req.header('origin');
|
|
41
|
+
if (origin && !origins.includes(origin))
|
|
42
|
+
return c.text('Origin nicht erlaubt', 403);
|
|
43
|
+
if (c.req.header('sec-fetch-site') === 'cross-site')
|
|
44
|
+
return c.text('Cross-site request nicht erlaubt', 403);
|
|
45
|
+
await next();
|
|
46
|
+
});
|
|
47
|
+
app.use('*', bodyLimit({ maxSize: 64 * 1024, onError: c => c.json({ error: 'Request zu groß (max. 64 KiB)' }, 413) }));
|
|
48
|
+
app.use('*', async (c, next) => {
|
|
49
|
+
const pathname = c.req.path;
|
|
50
|
+
if (options.dashboardEnabled === false && pathname !== '/mcp')
|
|
51
|
+
return c.notFound();
|
|
52
|
+
if (pathname === '/login' || publicFiles.has(pathname))
|
|
53
|
+
return next();
|
|
54
|
+
if (options.token) {
|
|
55
|
+
const bearer = c.req.header('authorization')?.match(/^Bearer\s+(.+)$/i)?.[1] ?? '';
|
|
56
|
+
prune(sessions);
|
|
57
|
+
// MCP remains bearer-only; browser sessions authorize dashboard APIs.
|
|
58
|
+
const validSession = pathname !== '/mcp' && sessions.has(getCookie(c, COOKIE) ?? '');
|
|
59
|
+
if (!equal(bearer, options.token) && !validSession) {
|
|
60
|
+
if (pathname === '/')
|
|
61
|
+
return c.redirect('/login', 303);
|
|
62
|
+
return c.json({ error: 'Anmeldung erforderlich', login: '/login' }, 401);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (['POST', 'PUT', 'PATCH', 'DELETE'].includes(c.req.method) && (pathname.startsWith('/api/') || pathname === '/mcp')) {
|
|
66
|
+
const type = c.req.header('content-type')?.split(';')[0].trim().toLowerCase();
|
|
67
|
+
// DELETE without a body does not need a media type.
|
|
68
|
+
if (c.req.method !== 'DELETE' && type !== 'application/json')
|
|
69
|
+
return c.json({ error: 'application/json erforderlich' }, 415);
|
|
70
|
+
}
|
|
71
|
+
await next();
|
|
72
|
+
});
|
|
73
|
+
app.get('/login', c => {
|
|
74
|
+
if (!options.token)
|
|
75
|
+
return c.redirect('/', 303);
|
|
76
|
+
const ticket = c.req.query('ticket');
|
|
77
|
+
if (ticket) {
|
|
78
|
+
prune(tickets);
|
|
79
|
+
if (!tickets.delete(ticket))
|
|
80
|
+
return c.text('Anmeldelink abgelaufen oder bereits verwendet', 401);
|
|
81
|
+
return session(c);
|
|
82
|
+
}
|
|
83
|
+
return c.html('<!doctype html><html lang="de"><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>search-rotation Anmeldung</title><body><main><h1>search-rotation</h1><p>Mit dem konfigurierten Server-Token anmelden.</p><form method="post" action="/login"><label>Token <input type="password" name="token" required autocomplete="current-password" maxlength="4096"></label> <button>Anmelden</button></form></main></body></html>');
|
|
84
|
+
});
|
|
85
|
+
app.post('/login', async (c) => {
|
|
86
|
+
if (!options.token)
|
|
87
|
+
return c.redirect('/', 303);
|
|
88
|
+
if (!c.req.header('origin') || !origins.includes(c.req.header('origin')))
|
|
89
|
+
return c.text('Origin erforderlich', 403);
|
|
90
|
+
if (c.req.header('content-type')?.split(';')[0].trim() !== 'application/x-www-form-urlencoded')
|
|
91
|
+
return c.text('Formular erwartet', 415);
|
|
92
|
+
while (failures.length && failures[0] < Date.now() - 60000)
|
|
93
|
+
failures.shift();
|
|
94
|
+
if (failures.length >= 10)
|
|
95
|
+
return c.text('Zu viele Anmeldeversuche. In einer Minute erneut versuchen.', 429);
|
|
96
|
+
const body = await c.req.parseBody();
|
|
97
|
+
if (typeof body.token !== 'string' || !equal(body.token, options.token)) {
|
|
98
|
+
failures.push(Date.now());
|
|
99
|
+
return c.text('Token falsch', 401);
|
|
100
|
+
}
|
|
101
|
+
return session(c);
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
allowedHosts, allowedOrigins: origins,
|
|
105
|
+
browserUrl: () => {
|
|
106
|
+
if (!options.token)
|
|
107
|
+
return options.origin + '/';
|
|
108
|
+
prune(tickets);
|
|
109
|
+
if (tickets.size >= 20)
|
|
110
|
+
tickets.delete(tickets.keys().next().value);
|
|
111
|
+
const ticket = randomBytes(32).toString('base64url');
|
|
112
|
+
tickets.set(ticket, Date.now() + 60000);
|
|
113
|
+
return options.origin + '/login?ticket=' + ticket;
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2018 The Manrope Project Authors (https://github.com/sharanda/manrope)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Search Rotation identity
|
|
2
|
+
|
|
3
|
+
The existing dashboard logo: an open orbit with a central dot. Geometry matches `#i-logo` in `static/index.html`; colors match the theme accents in `static/style.css`.
|
|
4
|
+
|
|
5
|
+
- `icon.svg`: transparent primary symbol, using the light-background palette.
|
|
6
|
+
- `icon-dark.svg` / `icon-light.svg`: solid tiles for avatars.
|
|
7
|
+
- `icon-mono.svg`: single-color symbol; inherits `currentColor` when inlined.
|
|
8
|
+
- `wordmark-dark.svg` / `wordmark-light.svg`: outlined lettering for dark / light backgrounds.
|
|
9
|
+
- `icon-dark-128.png` / `icon-light-128.png`: transparent, theme-specific MCP server icons, embedded as data URIs during initialization.
|
|
10
|
+
- Other PNG exports: 32, 128, and 512 px primary icons; 512 px tiles.
|
|
11
|
+
- `preview.png`: overview with small-size samples.
|
|
12
|
+
|
|
13
|
+
Dark-theme gradient: `#8b7cf7` → `#4dd8e6`.
|
|
14
|
+
Light-theme gradient: `#6d5ae8` → `#0e95b3`.
|
|
15
|
+
|
|
16
|
+
Preserve the open ring, central dot, orientation, and proportions. Keep clear space around the symbol. MCP clients decide whether and where server icons are displayed; providing metadata does not guarantee a visible icon in every client.
|
|
17
|
+
|
|
18
|
+
The original symbol is covered by the repository's MIT license. The wordmark uses outlined Manrope lettering (SIL Open Font License; see `FONT-LICENSE.txt`); no font installation is required to display it.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" role="img" aria-label="Search Rotation"><rect width="256" height="256" rx="58" fill="#0a0c12"/><g transform="scale(8)"><defs><linearGradient id="logo-grad" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#8b7cf7"/><stop offset="1" stop-color="#4dd8e6"/></linearGradient></defs><circle cx="16" cy="16" r="12.5" fill="none" stroke="url(#logo-grad)" stroke-width="3.2" stroke-dasharray="58 21" stroke-linecap="round"/><circle cx="16" cy="16" r="4" fill="url(#logo-grad)"/></g></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" role="img" aria-label="Search Rotation"><rect width="256" height="256" rx="58" fill="#f4f5fa"/><g transform="scale(8)"><defs><linearGradient id="logo-grad" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#6d5ae8"/><stop offset="1" stop-color="#0e95b3"/></linearGradient></defs><circle cx="16" cy="16" r="12.5" fill="none" stroke="url(#logo-grad)" stroke-width="3.2" stroke-dasharray="58 21" stroke-linecap="round"/><circle cx="16" cy="16" r="4" fill="url(#logo-grad)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" role="img" aria-label="Search Rotation"><g transform="scale(8)"><defs><linearGradient id="logo-grad" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#8b7cf7"/><stop offset="1" stop-color="#4dd8e6"/></linearGradient></defs><circle cx="16" cy="16" r="12.5" fill="none" stroke="currentColor" stroke-width="3.2" stroke-dasharray="58 21" stroke-linecap="round"/><circle cx="16" cy="16" r="4" fill="currentColor"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" role="img" aria-label="Search Rotation"><g transform="scale(8)"><defs><linearGradient id="logo-grad" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#6d5ae8"/><stop offset="1" stop-color="#0e95b3"/></linearGradient></defs><circle cx="16" cy="16" r="12.5" fill="none" stroke="url(#logo-grad)" stroke-width="3.2" stroke-dasharray="58 21" stroke-linecap="round"/><circle cx="16" cy="16" r="4" fill="url(#logo-grad)"/></g></svg>
|
|
Binary file
|