npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@romain-geffrault-mcp/pdf-generator

v0.1.0

Published

Serveur MCP qui génère un PDF multi-pages optimisé pour LinkedIn

Downloads

101

Readme

pdf-generator-mcp

Serveur MCP qui genere un PDF multi-pages (1200x1500px) a partir de markdown, optimise pour LinkedIn.

Emplacement

/Users/romaingeffrault/Documents/projects/prive/pdf-generator-mcp

Installation

npm install
npx playwright install

Lancer le serveur

npm start

Configuration MCP (exemple)

{
  "mcpServers": {
    "pdf-generator-mcp": {
      "command": "node",
      "args": [
        "/Users/romaingeffrault/Documents/projects/prive/pdf-generator-mcp/src/index.js"
      ]
    }
  }
}

Outil disponible

  • render_linkedin_pdf
    • markdown (string, requis)
    • outputDir (string, requis)
    • fileName (string, requis)
    • title (string, requis) - Titre affiche sur la premiere page (texte noir sur fond jaune, centre)
    • body (string, optionnel) - Texte markdown affiche sous le titre de la premiere page pour illustrer le contenu
    • assetBaseDir (string, optionnel; par defaut, outputDir)
    • skipEndPage (boolean, optionnel; par defaut, false)

Retourne le chemin du PDF genere avec une premiere page personnalisee incluant le titre et le body fournis.

Fonctionnalites

  • Coloration syntaxique : Les blocs de code markdown sont automatiquement colores avec Shiki (theme github-dark)
  • Premiere page personnalisee : Image de fond avec titre centre et texte descriptif optionnel
  • Images inline : Toutes les images sont converties en data URI pour un PDF autonome
  • Mise en page optimisee : Format 1200x1500px optimise pour LinkedIn

Consignes markdown

  • Separe chaque page avec une ligne --- seule.
  • Chaque page doit contenir exactement 1 image.
  • Utilise # pour le titre principal (fond jaune, texte noir).
  • Utilise ## ou un blocquote > pour le texte secondaire (jaune sur fond noir transparent).
  • Les blocs de code (```language) sont automatiquement colores avec Shiki.
  • Garde des paragraphes courts (1 a 3 lignes) et des listes concises.
  • Les images doivent etre locales (chemins relatifs a assetBaseDir ou chemins absolus).
  • Ordre recommande: titre, texte secondaire, texte court, code/image.

Exemple de markdown

# Titre principal impactant

## Sous-titre ou contexte court

Un texte court pour introduire la page.

![cover](./images/cover.png)

---

# Deuxieme page avec code

> Message secondaire en surbrillance.

```typescript
const counter = state(0, {
  increment: (val) => val + 1,
  decrement: (val) => val - 1,
});
```

diagram


## Exemple d'utilisation avec body

Le parametre `body` permet d'afficher un texte descriptif sous le titre de la premiere page :

```json
{
  "title": "Les 5 primitives ng-craft",
  "body": "5 primitives pour simplifier Angular :\n- `state` : etat synchrone\n- `query` : fetch de donnees\n- `mutation` : actions async",
  "markdown": "# Page 1\n\n...\n\n---\n\n# Page 2\n\n...",
  "outputDir": "/path/to/output",
  "fileName": "result.pdf",
  "assetBaseDir": "/path/to/assets"
}