|
| 1 | +import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; |
| 2 | +import Link from "next/link"; |
| 3 | +import type {IconDefinition} from "@fortawesome/fontawesome-svg-core"; |
| 4 | +import { |
| 5 | + faCubes, |
| 6 | + faPlug, |
| 7 | + faDesktop, |
| 8 | + faTerminal, |
| 9 | + faNetworkWired, |
| 10 | + faDatabase, |
| 11 | + faHouse, |
| 12 | + faCalculator, |
| 13 | + faKeyboard, |
| 14 | + faRobot, |
| 15 | +} from "@fortawesome/free-solid-svg-icons"; |
| 16 | +import {ETHERPAD_ORG} from "../Constants.ts"; |
| 17 | + |
| 18 | +type EcosystemProject = { |
| 19 | + name: string, |
| 20 | + url: string, |
| 21 | + icon: IconDefinition, |
| 22 | + description: string, |
| 23 | + // Internal routes (e.g. /plugins) use next/link for client-side |
| 24 | + // navigation; everything else opens the external project in a new tab. |
| 25 | + internal?: boolean, |
| 26 | +} |
| 27 | + |
| 28 | +// Curated, user-facing companion projects and resources from the Etherpad |
| 29 | +// Foundation, surfaced alongside the core editor on the homepage. |
| 30 | +const PROJECTS: EcosystemProject[] = [ |
| 31 | + { |
| 32 | + name: "Plugins", |
| 33 | + url: "/plugins", |
| 34 | + icon: faPlug, |
| 35 | + description: "Hundreds of community plugins add features, themes and integrations. Browse the directory and extend your Etherpad however you like.", |
| 36 | + internal: true, |
| 37 | + }, |
| 38 | + { |
| 39 | + name: "Desktop & Mobile App", |
| 40 | + url: `${ETHERPAD_ORG}/etherpad-desktop`, |
| 41 | + icon: faDesktop, |
| 42 | + description: "Run Etherpad as a native app on Windows, macOS, Linux, Android and iOS — collaborate without opening a browser.", |
| 43 | + }, |
| 44 | + { |
| 45 | + name: "Command-line Client", |
| 46 | + url: `${ETHERPAD_ORG}/etherpad-cli`, |
| 47 | + icon: faTerminal, |
| 48 | + description: "Create, read and edit pads straight from your terminal. Great for scripting and automating your Etherpad instance.", |
| 49 | + }, |
| 50 | + { |
| 51 | + name: "pad — Terminal Editor", |
| 52 | + url: `${ETHERPAD_ORG}/pad`, |
| 53 | + icon: faKeyboard, |
| 54 | + description: "A nano-class terminal text editor. Edit files locally, or join any pad to collaborate in real time — your edits and everyone else's sync live, right in your terminal.", |
| 55 | + }, |
| 56 | + { |
| 57 | + name: "Printing Press", |
| 58 | + url: "https://printingpress.dev", |
| 59 | + icon: faRobot, |
| 60 | + description: "Agent-native Etherpad tooling — a Go CLI, a Claude Code skill and an MCP server, generated from a spec so AI agents can drive Etherpad.", |
| 61 | + }, |
| 62 | + { |
| 63 | + name: "Socket.IO Proxy", |
| 64 | + url: `${ETHERPAD_ORG}/etherpad-proxy`, |
| 65 | + icon: faNetworkWired, |
| 66 | + description: "A reference proxy for Etherpad's real-time Socket.IO traffic — a starting point for inspecting or routing pad messages.", |
| 67 | + }, |
| 68 | + { |
| 69 | + name: "Scale Calculator", |
| 70 | + url: "https://scale.etherpad.org", |
| 71 | + icon: faCalculator, |
| 72 | + description: "Estimate the CPU, memory and number of instances your deployment needs for a target number of concurrent users.", |
| 73 | + }, |
| 74 | + { |
| 75 | + name: "ueberDB", |
| 76 | + url: `${ETHERPAD_ORG}/ueberDB`, |
| 77 | + icon: faDatabase, |
| 78 | + description: "The database abstraction layer that powers Etherpad — one API over MySQL, PostgreSQL, Redis, MongoDB, SQLite and more.", |
| 79 | + }, |
| 80 | + { |
| 81 | + name: "Home Assistant Add-on", |
| 82 | + url: `${ETHERPAD_ORG}/home-assistant-addon-etherpad`, |
| 83 | + icon: faHouse, |
| 84 | + description: "Self-host Etherpad on your Home Assistant box in a couple of clicks — collaborative notes for your smart home.", |
| 85 | + }, |
| 86 | +] |
| 87 | + |
| 88 | +const CARD_CLASS = "group flex flex-col h-full p-5 rounded-lg border border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-700 transition-shadow hover:shadow-md focus:shadow-md no-underline" |
| 89 | + |
| 90 | +const CardBody = ({project}: {project: EcosystemProject}) => <> |
| 91 | + <div className="flex items-center mb-2"> |
| 92 | + <FontAwesomeIcon icon={project.icon} className="text-2xl text-primary mr-3"/> |
| 93 | + <span className="text-lg font-bold text-gray-800 dark:text-white group-hover:text-primary"> |
| 94 | + {project.name} |
| 95 | + </span> |
| 96 | + </div> |
| 97 | + <span className="text-sm text-gray-600 dark:text-gray-300 leading-relaxed"> |
| 98 | + {project.description} |
| 99 | + </span> |
| 100 | +</> |
| 101 | + |
| 102 | +export const EtherpadEcosystem = () => { |
| 103 | + return <div className="content wrap"> |
| 104 | + <h2 className="text-3xl text-primary font-bold mb-4 mt-16 flex items-center"> |
| 105 | + <FontAwesomeIcon icon={faCubes} className="mr-4"/> |
| 106 | + More from Etherpad |
| 107 | + </h2> |
| 108 | + <p className="dark:text-gray-400"> |
| 109 | + Etherpad is more than the editor. The Foundation maintains a family of official |
| 110 | + apps, clients and tools — plus a large plugin ecosystem — to help you extend, run, |
| 111 | + embed and scale Etherpad. |
| 112 | + </p> |
| 113 | + <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mt-6"> |
| 114 | + {PROJECTS.map((project) => ( |
| 115 | + project.internal ? ( |
| 116 | + <Link key={project.url} href={project.url} className={CARD_CLASS}> |
| 117 | + <CardBody project={project}/> |
| 118 | + </Link> |
| 119 | + ) : ( |
| 120 | + <a |
| 121 | + key={project.url} |
| 122 | + href={project.url} |
| 123 | + target="_blank" |
| 124 | + rel="noopener noreferrer" |
| 125 | + className={CARD_CLASS} |
| 126 | + > |
| 127 | + <CardBody project={project}/> |
| 128 | + </a> |
| 129 | + ) |
| 130 | + ))} |
| 131 | + </div> |
| 132 | + </div> |
| 133 | +} |
0 commit comments