# Research Article Template > Open-source tools to write and publish web-native, interactive research articles with co-authors and AI agents: a real-time collaborative editor (Hugging Face Docker Space, with an MCP server for external agents) and an Astro + MDX template (KaTeX math, BibTeX citations, D3.js embeds, dark mode, PDF export). Every published article ships a Markdown twin at /llms.txt. License: CC BY 4.0. Since July 21, 2026, duplicating a Docker Space needs a Hugging Face PRO account (personal copy, only you can edit) or a Team/Enterprise organization (co-authors with org write roles, which are free). A static article can be hosted for free on a static Space. The public editor Space is read-only for visitors: only its owner, or members of the owning organization with a write role, can edit. ## Quickstart - [Try it live](https://tfrere-research-article-editor-demo.static.hf.space/): Live demo, no account, nothing saved. The editor running in the browser with simulated co-authors (Alice, Bob) and Alice's agent; AI and publishing are disabled, "Download .mdx" exports your draft. No backend, so no MCP server. - [Open the editor Space](https://huggingface.co/spaces/tfrere/research-article-template-editor): the real collaborative editor on Hugging Face Spaces (read-only for visitors). - [Host your own editor](https://tfrere-research-article-template-site.hf.space/docs#editor-quickstart): duplicate the editor Space into a Team organization (co-authors) or a PRO account (solo). CLI, huggingface_hub 1.6+: `hf repos duplicate tfrere/research-article-template-editor your-org/paper-editor --type space` - [Write locally from the template](https://tfrere-research-article-template-site.hf.space/docs#template-install): free; `git clone https://github.com/tfrere/research-article-template.git`, then `cd app && npm install && npm run dev`. - [Host an article for free](https://tfrere-research-article-template-site.hf.space/docs#template-deploy): build the template and upload `app/dist` to a static Space. ## Docs - [Documentation](https://tfrere-research-article-template-site.hf.space/docs): editor and template, plans, writing, components, figures, theming, publishing. Markdown: https://tfrere-research-article-template-site.hf.space/docs.md - [For AI agents](https://tfrere-research-article-template-site.hf.space/docs/agents): copy-pasteable agent quickstart (MCP, new article, embeds, deploy, what not to do). Markdown: https://tfrere-research-article-template-site.hf.space/docs/agents.md - [Editor MCP server](https://huggingface.co/spaces/tfrere/research-article-template-editor/blob/main/docs/MCP.md): connect Claude Code, Cursor or Codex to a live article at https://.hf.space/mcp with an HF token; tools, errors and examples. - [Embed authoring skill](https://github.com/tfrere/research-article-template/tree/main/.ai/skills/create-html-embed): write a self-contained embed: one root div, a scoped style, a script calling `Embed.mount('d3-name', setup)`; verify with `cd app && npm run check:embed -- d3-name.html`. - [Embed runtime and contract](https://github.com/tfrere/research-article-template/blob/main/.ai/skills/create-html-embed/runtime.md): the `ctx` API (data, config, colors, describe, animate), theming variables and lifecycle. - [Article frontmatter](https://github.com/tfrere/research-article-template/blob/main/.ai/skills/article-frontmatter/SKILL.md): title, authors, template variant, `banner` (or `false`), `tocExpanded`, `links`, PDF, DOI. - [Layout tokens](https://github.com/tfrere/research-article-template/blob/main/app/src/styles/_grid.css): the article grid (`--layout-*` variables); add `?grid` to any article URL to see it. - [Deploy skill](https://github.com/tfrere/research-article-template/blob/main/.ai/skills/deploy-to-hf-spaces/SKILL.md): deploy or update an article on a Hugging Face Space; keep the research-article-template tag. - [AGENTS.md](https://github.com/tfrere/research-article-template/blob/main/AGENTS.md): template layout, conventions and task skills for coding agents. - [Template demo article](https://tfrere-research-article-template.hf.space): the full reference, written with the template. Markdown twin: https://tfrere-research-article-template.hf.space/llms.txt ## Examples - [The Ultimate MoE Training Handbook](https://huggingface.co/spaces/huggingface/moe-blogpost): Hugging Face, how to train a Mixture-of-Experts model at scale. - [The Smol Training Playbook](https://huggingface.co/spaces/HuggingFaceTB/smol-training-playbook): Hugging Face, the secrets to building world-class LLMs. - [Research Article Gallery](https://huggingface.co/spaces/tfrere/research-article-gallery): every Space tagged research-article-template. - [Figures](https://tfrere-research-article-template-site.hf.space/figures): live interactive figures and animated banners built on the embed kit. ## Repositories - [Template on GitHub](https://github.com/tfrere/research-article-template): Astro + MDX template source, issues and discussions. - [Template Space](https://huggingface.co/spaces/tfrere/research-article-template): the template deployed as a Docker Space. - [Editor Space source](https://huggingface.co/spaces/tfrere/research-article-template-editor/tree/main): the collaborative editor (frontend, backend, MCP server). ## Optional - [Full documentation as Markdown](https://tfrere-research-article-template-site.hf.space/llms-full.txt): every docs page in one file. - [Sitemap](https://tfrere-research-article-template-site.hf.space/sitemap.xml)