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

slidev-addon-agent

v0.0.2

Published

Slidev addon and wrapper CLI for LangChain-powered slide authoring.

Downloads

20

Readme

slidev-addon-agent

Slidev addon components and a wrapper CLI for agent-powered slide authoring.

Setup

Prerequisites

  • Slidev: @slidev/cli and vue (peer dependencies).
  • LangGraph: @langchain/langgraph for the deep agent runtime.
  • Chat model: install one of @langchain/openai, @langchain/anthropic, or @langchain/google, and set the matching API key in the environment your LangGraph server uses.
  • Optional screenshot verification: install playwright-chromium in the Slidev project so the agent can export PNGs and visually review rendered slides.

Install

In your Slidev project (or LangGraph app that bundles the agent):

# base setup
pnpm add slidev-addon-agent @slidev/cli vue @langchain/langgraph
# LLM provider
pnpm add @langchain/openai   # or @langchain/anthropic / @langchain/google
# optional: PNG screenshot verification during slide review
pnpm add -D playwright-chromium

Replace your usual slidev CLI scripts with the wrapper CLI from this package so deck commands run through slidev-agent instead:

{
  "scripts": {
    "dev": "slidev-agent dev --open",
    "build": "slidev-agent build",
    "export": "slidev-agent export"
  }
}

This wrapper still runs the Slidev CLI, but it also resolves the correct deck entry and starts langgraph dev automatically during slidev-agent dev. See example/package.json for a working setup.

Also register the addon in your Slidev project's package.json:

{
  "slidev": {
    "addons": [
      "slidev-addon-agent"
    ]
  }
}

Add the addon to your Slidev project and render the components from root layer files:

<!-- global-top.vue -->
<template>
  <SlidevAgentSidebar v-if="!$nav.isPresenter" />
</template>
<!-- custom-nav-controls.vue -->
<template>
  <SlidevAgentNavButton v-if="!$nav.isPresenter" />
</template>

Agent environment variables

The deep agent uses your project directory as the filesystem root (virtualMode) and bundled Slidev skills when those paths are reachable. Set these in .env (or your LangGraph deployment) for the server that runs the graph:

| Variable | Purpose | | ---------- | --------- | | SLIDEV_AGENT_MODEL | Model id, e.g. openai:gpt-5.4, anthropic:claude-sonnet-4-6. | | SLIDEV_AGENT_REVIEW_MODEL | Optional override for screenshot review; defaults to SLIDEV_AGENT_MODEL and should be a vision-capable model. | | SLIDEV_AGENT_SYSTEM_PROMPT | Replaces the default system prompt when set. | | SLIDEV_AGENT_ROOT_DIR | Filesystem root for deck files (defaults to process.cwd()). | | SLIDEV_AGENT_SKILLS_PATH | Comma-separated extra skill directories (POSIX paths relative to the backend root). | | SLIDEV_AGENT_DISABLE_LANGGRAPH | Set to 1 to skip spawning langgraph dev alongside Slidev when using slidev-agent dev. |