跳到正文
FunCoding

Farm.js Docs

官方 MCP Registry 已收录

Search and read the Farm.js docs: pages, sections, code examples and config options.

Star
747
版本
v0.1.28
许可证
MIT
最近提交
2026年12月1日

Farm.js Docs (farmjs-docs)

Official documentation site for Farm.js, built with Farm.js.

Run locally

From the repo root:

pnpm install
pnpm run --filter farmjs-docs dev

Or from this directory (after pnpm install from root):

pnpm dev

Open http://localhost:3000.

Agent waitlist database

The AgentWaitlist form posts to /api/waitlist. No page renders it since /agents switched to Get started and an agent prompt; the route and table keep existing signups. WaitlistEntry in prisma/schema.prisma stores the normalized email (unique), signup description, and creation/update timestamps. Repeat submissions update that record instead of creating duplicates.

Set a server-only WAITLIST_DATABASE_URL in docs/.env.local for a dedicated Postgres database. Never prefix it with VITE_ or commit the credential. When omitted, the route continues to use DATABASE_URL; telemetry always keeps using DATABASE_URL.

From docs, prepare a new dedicated database once:

pnpm db:waitlist

This requires WAITLIST_DATABASE_URL explicitly and only creates the WaitlistEntry table when it is absent. It never resets a database or modifies telemetry tables. Keep prisma/waitlist.sql aligned with the Prisma model for future schema changes; the bootstrap does not upgrade an existing table.

For production, set WAITLIST_DATABASE_URL on the Vercel project serving farmjs.dev, scoped to Production, then deploy the updated app. Do not replace the existing telemetry DATABASE_URL or give PR previews access to the production waitlist. Apply the bootstrap against that same database before the deployment accepts signups; schema changes are not run automatically during builds.

Farm development loads .env.local. To run a locally built Node output from the repo root:

node --env-file=docs/.env.local docs/.farm/.output/server/index.mjs

Build

From the repo root:

pnpm run --filter farmjs-docs build

The production Vercel artifact is written to .vercel/output.

Runtime-only core build

The documentation-site build opts into @farm.js/core's runtime-only package build:

pnpm --filter @farm.js/core build:runtime

This builds the same ESM, CJS, and source-map artifacts as the default core build, but skips TypeScript declaration generation because the deployed website does not consume .d.ts files. The optimization applies to the complete farmjs.dev application, including the landing page and documentation routes.

The regular package and release build remains the default and continues to generate declarations:

pnpm --filter @farm.js/core build

Use build:runtime only for application deployments that need executable runtime artifacts. Do not use it for package publishing, release validation, or any workflow that consumes generated types.

Structure

  • Landing (/) – Hero, features, and CTAs
  • Docs (/docs) – Documentation index
  • Getting Started (/docs/getting-started) – Installation and first steps
  • Routing (/docs/routing) – File-based routing
  • Layouts (/docs/layouts) – Root and nested layouts

Docs versions

/docs documents the release line of the workspace's @farm.js/core. Each older line keeps its docs at /docs/<line>, frozen from its last release tag and served as a second docs root (roots in docs.config.ts), with the same navigation and its own search. llms.txt, the sitemap and the docs MCP describe only the current line. The version picker at the top of the sidebar switches lines and keeps the page when the other line has it.

When a new minor line takes over /docs, freeze the previous one from its last tag:

node docs/scripts/snapshot-docs-version.mjs v0.1.87 0.1

The script copies the tag's docs/src/app/docs into docs/versions/<line>, points the pages' Markdown links at /docs/<line>, and writes the page list the picker reads. Then add the line to src/lib/docs-versions.ts and a root for it in docs.config.ts. A frozen page can still take a small fix by hand, but running the script again for that line replaces the whole snapshot. src/lib/docs-versions.test.ts checks that every frozen page still has a page or a redirect in the current docs.

同类 MCP Server

Scrapling MCP Server

Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.

D4D4Vinci/Scrapling107k近 7 天新增 1,730 个 star

官方

Fetch

Fetches web content and converts it to Markdown for an LLM to read

MOmodelcontextprotocol/servers92k近 7 天新增 166 个 star

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

EVevery-app/open-seo29k近 7 天新增 533 个 star

Agent Skills Search Server

Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.

AGagentskills/agentskills28k近 7 天新增 175 个 star

XERJ

The search engine for AI agents: cited answers from your local code, docs, specs and logs.

XExerj-org/xerj23k近 7 天新增 1,626 个 star

精选

Apify

调用 Apify Store 上的现成爬虫,抓取社交媒体、地图和电商数据。

APapify/apify-mcp-server19k近 7 天新增 873 个 star