Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 71 additions & 41 deletions app/[lang]/(marketing)/plugins/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Metadata } from 'next'
import Link from 'next/link'
import { notFound } from 'next/navigation'
import { ArrowRight, Bot, Boxes, Layers, Radio, Tag } from 'lucide-react'
import { ArrowRight, Bot, Boxes, FileCode2, Layers, Radio, Tag } from 'lucide-react'
import { isAppLocale, type AppLocale } from '@/lib/i18n'
import { getRegistry, REGISTRY_HOST } from '@/lib/registry'
import { pluginsCopy } from '@/lib/plugins-copy'
Expand Down Expand Up @@ -37,16 +37,18 @@ export default async function PluginsPage({ params }: Props) {
const goPlugin = registry.plugins.find((p) => p.id === 'protocolbuffers/go')
const grpcPlugin = registry.plugins.find((p) => p.id === 'grpc/go')
const snippet = [
'generate:',
' inputs:',
' - directory: { path: ., root: proto }',
' plugins:',
` - remote: "${REGISTRY_HOST}/protocolbuffers/go:${goPlugin?.latest ?? 'v1.36.11'}"`,
' out: gen/go',
' opts: { paths: source_relative }',
` - remote: "${REGISTRY_HOST}/grpc/go:${grpcPlugin?.latest ?? 'v1.6.0'}"`,
' out: gen/go',
' opts: { paths: source_relative }',
'version: v1',
'plugins:',
` - remote: ${REGISTRY_HOST}/protocolbuffers/go`,
` version: ${goPlugin?.latest ?? 'v1.36.11'}`,
' out: gen/go',
' opts:',
' paths: source_relative',
` - remote: ${REGISTRY_HOST}/grpc/go`,
` version: ${grpcPlugin?.latest ?? 'v1.6.0'}`,
' out: gen/go',
' opts:',
' paths: source_relative',
].join('\n')

const listedAt = new Intl.DateTimeFormat(lang === 'ru' ? 'ru-RU' : 'en-US', {
Expand Down Expand Up @@ -95,7 +97,7 @@ export default async function PluginsPage({ params }: Props) {
{registry.serverVersion && (
<span className="inline-flex items-center gap-1.5 rounded-full border border-fd-border bg-fd-muted/80 px-3 py-1 font-mono text-xs text-fd-muted-foreground">
<Radio size={12} className="text-fd-primary" />
service {registry.serverVersion}
{t.service} {registry.serverVersion}
{registry.platform && <span className="opacity-60">· {registry.platform}</span>}
</span>
)}
Expand Down Expand Up @@ -136,39 +138,67 @@ export default async function PluginsPage({ params }: Props) {
</div>
</section>

<section className="mx-auto mb-14 grid w-full max-w-7xl grid-cols-1 gap-4 px-6 lg:grid-cols-5">
<div className="glass-panel min-w-0 rounded-2xl p-6 lg:col-span-3">
<h2 className="mb-1.5 text-lg font-semibold">{t.quickstart.title}</h2>
<p className="mb-4 text-sm text-fd-muted-foreground">{t.quickstart.body}</p>
<CopyBlock code={snippet} label="Copy easyp.yaml" copiedLabel={t.browser.copied} />
<Link
href={`${base(lang)}/docs/api-service/client-usage`}
className="mt-4 inline-flex items-center gap-1.5 text-sm font-medium text-fd-primary hover:underline"
>
{t.quickstart.docs}
<ArrowRight size={14} />
</Link>
</div>
<div className="glass-panel flex min-w-0 flex-col rounded-2xl p-6 lg:col-span-2">
<div className="mb-3 flex h-9 w-9 items-center justify-center rounded-xl bg-fd-primary/10 text-fd-primary">
<Bot size={18} />
<section className="mx-auto mb-14 flex w-full max-w-7xl flex-col gap-4 px-6">
<div className="glass-panel grid min-w-0 gap-6 rounded-2xl p-6 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] lg:p-8">
<div className="flex min-w-0 flex-col">
<div className="mb-3 flex h-9 w-9 items-center justify-center rounded-xl bg-fd-primary/10 text-fd-primary">
<FileCode2 size={18} />
</div>
<h2 className="mb-1.5 text-lg font-semibold">{t.quickstart.title}</h2>
<p className="text-sm leading-relaxed text-fd-muted-foreground">{t.quickstart.body}</p>
<Link
href={`${base(lang)}/docs/api-service/client-usage`}
className="mt-4 inline-flex items-center gap-1.5 text-sm font-medium text-fd-primary hover:underline lg:mt-auto"
>
{t.quickstart.docs}
<ArrowRight size={14} />
</Link>
</div>
<h2 className="mb-1.5 text-lg font-semibold">{t.quickstart.agents}</h2>
<p className="mb-4 text-sm text-fd-muted-foreground">{t.quickstart.agentsBody}</p>
<CopyBlock code={`https://${REGISTRY_HOST}/mcp`} label="Copy MCP URL" copiedLabel={t.browser.copied} />
<p className="mt-4 mb-2 text-sm text-fd-muted-foreground">Claude Code:</p>
<CopyBlock
code={`claude mcp add --transport http easyp-plugins https://${REGISTRY_HOST}/mcp`}
label="Copy command"
code={snippet}
label={t.quickstart.copyConfig}
copiedLabel={t.browser.copied}
trackWhat="Copy easyp.gen.yaml"
/>
<Link
href={`${base(lang)}/docs/api-service/mcp`}
className="mt-auto inline-flex items-center gap-1.5 pt-4 text-sm font-medium text-fd-primary hover:underline"
>
MCP
<ArrowRight size={14} />
</Link>
</div>

<div className="glass-panel grid min-w-0 gap-6 rounded-2xl p-6 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] lg:p-8">
<div className="flex min-w-0 flex-col">
<div className="mb-3 flex h-9 w-9 items-center justify-center rounded-xl bg-fd-primary/10 text-fd-primary">
<Bot size={18} />
</div>
<h2 className="mb-1.5 text-lg font-semibold">{t.quickstart.agents}</h2>
<p className="text-sm leading-relaxed text-fd-muted-foreground">{t.quickstart.agentsBody}</p>
<Link
href={`${base(lang)}/docs/api-service/mcp`}
className="mt-4 inline-flex items-center gap-1.5 text-sm font-medium text-fd-primary hover:underline lg:mt-auto"
>
MCP
<ArrowRight size={14} />
</Link>
</div>
<div className="flex min-w-0 flex-col gap-4">
<div>
<p className="mb-2 text-xs font-medium tracking-wide text-fd-muted-foreground uppercase">
{t.quickstart.mcpEndpoint}
</p>
<CopyBlock
code={`https://${REGISTRY_HOST}/mcp`}
label={t.quickstart.copyMcpUrl}
copiedLabel={t.browser.copied}
trackWhat="Copy MCP URL"
/>
</div>
<div>
<p className="mb-2 text-xs font-medium tracking-wide text-fd-muted-foreground uppercase">Claude Code</p>
<CopyBlock
code={`claude mcp add --transport http easyp-plugins https://${REGISTRY_HOST}/mcp`}
label={t.quickstart.copyCommand}
copiedLabel={t.browser.copied}
trackWhat="Copy command"
/>
</div>
</div>
</div>
</section>

Expand Down
4 changes: 2 additions & 2 deletions app/[lang]/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { notFound } from 'next/navigation'
import { getMDXComponents } from '@/components/mdx'
import type { Metadata } from 'next'
import { createRelativeLink } from 'fumadocs-ui/mdx'
import { gitConfig } from '@/lib/shared'
import { docsGitConfig } from '@/lib/shared'
import { isAppLocale, type AppLocale } from '@/lib/i18n'

export default async function Page({
Expand All @@ -37,7 +37,7 @@ export default async function Page({
<MarkdownCopyButton markdownUrl={markdownUrl} />
<ViewOptionsPopover
markdownUrl={markdownUrl}
githubUrl={`https://github.com/${gitConfig.user}/${gitConfig.repo}/blob/${gitConfig.branch}/content/docs/${page.path}`}
githubUrl={`https://github.com/${docsGitConfig.user}/${docsGitConfig.repo}/blob/${docsGitConfig.branch}/content/docs/${page.path}`}
/>
</div>
<DocsBody>
Expand Down
8 changes: 6 additions & 2 deletions app/llms-full.txt/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getLLMText, source } from '@/lib/source'
import { i18n } from '@/lib/i18n'

export const revalidate = false
export const dynamic = 'force-dynamic'

export async function GET(req: Request) {
const url = new URL(req.url)
Expand All @@ -27,5 +27,9 @@ export async function GET(req: Request) {
}),
)

return new Response(sections.join('\n\n---\n\n'))
return new Response(sections.join('\n\n---\n\n'), {
headers: {
'Content-Type': 'text/markdown; charset=utf-8',
},
})
}
2 changes: 1 addition & 1 deletion app/llms.mdx/docs/[[...slug]]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function GET(

return new Response(await getLLMText(page), {
headers: {
'Content-Type': 'text/markdown',
'Content-Type': 'text/markdown; charset=utf-8',
},
})
}
Expand Down
44 changes: 40 additions & 4 deletions app/llms.txt/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
import { source } from '@/lib/source';
import { llms } from 'fumadocs-core/source';
import { source } from '@/lib/source'
import { llms } from 'fumadocs-core/source'

export const revalidate = false;
export const revalidate = false

export function GET() {
return new Response(llms(source).index());
const formatter = llms(source)

const formatTree = (lang: 'en' | 'ru') =>
source
.getPageTree(lang)
.children.map((node) => formatter.indexNode(node, lang))
.join('\n')

const body = [
'# EasyP Documentation',
'',
'> Open-source, Git-native Protobuf toolchain: CLI (linter, generator, breaking-change detector, package manager), pure-Go easyprotoc compiler, and remote plugin service.',
'',
'## Platform',
'',
'- [Plugin Registry (EN)](/plugins): Live catalog of remote plugins on plugins.easyp.tech',
'- [Plugin Registry (RU)](/ru/plugins): Каталог удалённых плагинов на plugins.easyp.tech',
'- [Roadmap (EN)](/roadmap): Shipped milestones and upcoming work across EasyP',
'- [Roadmap (RU)](/ru/roadmap): Вышедшие релизы и ближайшие планы развития EasyP',
'- [Full Documentation (EN)](/llms-full.txt): Complete English documentation in a single Markdown file',
'- [Full Documentation (RU)](/llms-full.txt?locale=ru): Полная русская документация в одном Markdown-файле',
'',
'## Documentation (English — /docs)',
'',
formatTree('en'),
'',
'## Документация (Русский — /ru/docs)',
'',
formatTree('ru'),
'',
].join('\n')

return new Response(body, {
headers: {
'Content-Type': 'text/markdown; charset=utf-8',
},
})
}
4 changes: 2 additions & 2 deletions components/home/architecture-comparison.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export function ArchitectureComparison() {
},
{
icon: Layers,
title: t.hybridRuntime.title,
descriptionHtml: t.hybridRuntime.description,
title: t.flexibleExecution.title,
descriptionHtml: t.flexibleExecution.description,
iconBg: 'bg-purple-500/10',
iconColor: 'text-purple-600 dark:text-purple-400',
hoverBorder: 'hover:border-purple-500/30',
Expand Down
29 changes: 16 additions & 13 deletions components/home/feature-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function FeatureSwitcher() {
<ul className="space-y-4">
{(
[
t.server.dockerNative,
t.server.isolatedRuntime,
t.server.airGap,
t.server.costEffective,
] as const
Expand All @@ -119,29 +119,32 @@ export function FeatureSwitcher() {
aria-hidden
className="pointer-events-none absolute -inset-1 rounded-2xl bg-gradient-to-r from-blue-500 to-violet-500 opacity-20 blur transition duration-1000 group-hover:opacity-40 group-hover:duration-200"
/>
<div className="relative flex h-[400px] flex-col overflow-hidden rounded-xl border border-fd-border bg-fd-card shadow-2xl">
<div className="relative flex min-h-[400px] flex-col overflow-hidden rounded-xl border border-fd-border bg-fd-card shadow-2xl">
<div className="flex items-center gap-2 border-b border-fd-border bg-fd-muted/50 px-4 py-3">
<div className="h-3 w-3 rounded-full bg-fd-border" />
<div className="h-3 w-3 rounded-full bg-fd-border" />
</div>
<div className="flex-grow overflow-hidden p-6 font-mono text-sm">
{activeTab === 'cli' ? (
<div className="animate-fade-in-up space-y-2">
<div className="animate-fade-in-up space-y-1">
<div className="text-fd-muted-foreground"># easyp.yaml configuration</div>
<div className="text-purple-600 dark:text-purple-400">
version: <span className="text-emerald-600 dark:text-green-400">v1</span>
</div>
<div className="text-purple-600 dark:text-purple-400">deps:</div>
<div className="pl-4 text-fd-foreground">
- github.com/googleapis/googleapis@v1.0
<div className="pt-1 text-purple-600 dark:text-purple-400">linters:</div>
<div className="pl-4 text-blue-600 dark:text-blue-400">
default: <span className="text-fd-foreground">STANDARD</span>
</div>
<div className="mt-2 text-purple-600 dark:text-purple-400">lint:</div>
<div className="pl-4 text-blue-600 dark:text-blue-400">use:</div>
<div className="pl-8 text-fd-foreground">- STANDARD</div>
<div className="pl-4 text-blue-600 dark:text-blue-400">enable:</div>
<div className="pl-8 text-fd-foreground">- COMMENTS</div>
<div className="mt-4 text-purple-600 dark:text-purple-400">breaking:</div>
<div className="pt-2 text-purple-600 dark:text-purple-400">breaking:</div>
<div className="pl-4 text-blue-600 dark:text-blue-400">
baseline: <span className="text-fd-foreground">git:main</span>
</div>
<div className="pl-4 text-blue-600 dark:text-blue-400">categories:</div>
<div className="pl-8 text-fd-foreground">- FILE</div>
<div className="pl-4 text-blue-600 dark:text-blue-400">ignore:</div>
<div className="pl-8 text-fd-foreground">- &quot;proto/alfa/v1&quot;</div>
<div className="pl-8 text-fd-foreground">- &quot;proto/alpha/v1&quot;</div>
</div>
) : (
<div className="animate-fade-in-up space-y-2">
Expand All @@ -155,8 +158,8 @@ export function FeatureSwitcher() {
</div>
<div className="mt-3 space-y-3 border-l border-fd-border pl-4">
{[
['Registry:', 'Local Docker'],
['Plugins:', '14 Loaded'],
['Runtime:', 'Isolated Process'],
['Plugins:', '80+ Available'],
['Uptime:', '42d 12h'],
].map(([k, v]) => (
<div key={k} className="flex items-center gap-2">
Expand Down
2 changes: 1 addition & 1 deletion components/home/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function Footer() {
<h4 className="mb-4 font-medium text-fd-foreground">{t.product.title}</h4>
<ul className="space-y-3 text-sm text-fd-muted-foreground">
<li>
<Link href="/docs/cli/linter" className="transition-colors hover:text-fd-primary">
<Link href="/docs/cli" className="transition-colors hover:text-fd-primary">
{t.product.cliTool}
</Link>
</li>
Expand Down
14 changes: 7 additions & 7 deletions components/home/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) {
const dropdownRef = useRef<HTMLDivElement>(null)

const installOptions: InstallOption[] = [
{ id: 'brew', label: 'brew', fullLabel: 'macOS (homebrew)', cmd: 'brew install easyp-tech/tap/easyp' },
{ id: 'brew', label: 'brew', fullLabel: 'macOS / Linux (homebrew)', cmd: 'brew install easyp-tech/tap/easyp' },
{ id: 'go', label: 'go', fullLabel: 'go Install (any OS)', cmd: 'go install github.com/easyp-tech/easyp/cmd/easyp@latest' },
{ id: 'docker', label: 'docker', fullLabel: 'docker', cmd: 'docker pull ghcr.io/easyp-tech/easyp:latest' },
]
Expand Down Expand Up @@ -197,15 +197,15 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) {
<div className="p-6 font-mono text-sm leading-loose sm:p-10 sm:text-base">
<div className="flex items-start gap-2">
<span className="font-bold text-fd-primary">➜</span>
<span className="text-fd-foreground">easyp generate -v</span>
<span className="text-fd-foreground">easyp generate</span>
</div>
<div className="mt-2 border-l-2 border-fd-border pl-4 text-fd-muted-foreground">
<div className="flex items-center gap-2">
<span className="text-emerald-500 dark:text-emerald-400">✔</span>
<span>
Resolving dependencies from{' '}
<span className="text-fd-foreground underline decoration-fd-border">
easyp.lock
protobuf.lock
</span>
...
</span>
Expand All @@ -223,14 +223,14 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) {
<span className="text-blue-600 dark:text-blue-400">[INFO]</span> Dispatching
plugins:
<div className="mt-1 pl-4 text-fd-muted-foreground">
├─ protoc-gen-go (v1.31){' '}
├─ protocolbuffers/go (v1.36){' '}
<span className="rounded border border-fd-border px-1 text-xs text-fd-muted-foreground">
WASM
REMOTE
</span>
<br />
└─ custom-java-gen (v2.0){' '}
└─ python{' '}
<span className="rounded border border-fd-border px-1 text-xs text-fd-muted-foreground">
DOCKER
WASM
</span>
</div>
</div>
Expand Down
Loading
Loading