Initialize public data and docs repository

This commit is contained in:
AltStack Bot
2026-02-25 22:36:27 +05:30
commit 2a0ac1b107
357 changed files with 50685 additions and 0 deletions

34
data/seo.ts Normal file
View File

@@ -0,0 +1,34 @@
import { Tool } from '../app/types';
import toolsData from './tools.json';
const tools = toolsData as Tool[];
export interface VsPair {
slug: string; // "slack-vs-mattermost"
proprietaryTool: Tool;
opensourceTool: Tool;
}
export function generateVsPairs(): VsPair[] {
const pairs: VsPair[] = [];
// Find all proprietary tools
const proprietaryTools = tools.filter(t => !t.is_open_source);
proprietaryTools.forEach(propTool => {
if (!propTool.alternatives) return;
propTool.alternatives.forEach(altSlug => {
const altTool = tools.find(t => t.slug === altSlug);
if (altTool) {
pairs.push({
slug: `${propTool.slug}-vs-${altTool.slug}`,
proprietaryTool: propTool,
opensourceTool: altTool
});
}
});
});
return pairs;
}