huggingface/open-source-agent-contributions
<div align="center">
Research Article Template
A modern, interactive template for scientific writing that brings papers to life.
Interactive diagrams, math, citations, dark mode, PDF export - all with minimal setup.
[Live demo & docs](https://huggingface.co/spaces/tfrere/research-article-template) |  
</div>
Quick start
npx create-research-article my-paperThe CLI walks you through setup interactively:
- Project name and basic metadata (title, authors, affiliations)
- Template choice:
article(full layout with banner, TOC, citations, figure numbering, PDF export) orpaper(lighter centered single-column layout) - Hugging Face deployment (optional, auto-creates a Space if
huggingface-cliis installed)
Then start writing:
cd my-paper/app
npm run dev # dev server at localhost:4321Deploy to Hugging Face
If you skipped the auto-deploy during setup, push manually:
# create a Docker Space at huggingface.co/new-space, then:
git remote add space git@hf.co:spaces/<your-username>/<your-space>
git push space mainThe project ships with Dockerfile, nginx config, and HF Space metadata ready to go.
Template variants
Set template in app/src/content/article.mdx frontmatter:
External links (paper template)
The paper template supports external link buttons below the authors:
links:
- label: "Paper"
url: "https://arxiv.org/abs/..."
- label: "Code"
url: "https://github.com/..."
- label: "Demo"
url: "https://huggingface.co/spaces/..."Title line breaks
Long titles are automatically balanced across lines. You can also force a line break with \n:
title: "Why Open-Source LLMs\nAre Reshaping the AI Landscape"Titles longer than 60 characters are automatically downsized for readability.
Edit your content
Commands
Alternative setup
<details> <summary>Duplicate on Hugging Face</summary>
- Visit [Research Article Template](https://huggingface.co/spaces/tfrere/research-article-template), click "Duplicate this Space"
- Clone:
git clone git@hf.co:spaces/<your-username>/<your-space> cd <your-space>/app && git lfs pull && npm install && npm run dev</details>
<details> <summary>Clone directly</summary>
git clone https://github.com/tfrere/research-article-template.git
cd research-article-template/app
git lfs install && git lfs pull
npm install && npm run dev</details>
License
CC-BY-4.0 - Distill-inspired, built with Astro + MDX + D3.js.
[Discussions](https://huggingface.co/spaces/tfrere/research-article-template/discussions) | [@tfrere](https://huggingface.co/tfrere)
