RepoPilot

slidevjs / slidev

Search slidevjs/slidev

GitHub

Code

How slidevjs/slidev is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Likely public API
  5. Likely start-up file
  6. Likely start-up file
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new slide layout

  • Define layout type in packages/types/src/builtin-layouts.ts with TypeScript interface
  • Export layout from theme's main index and register in type system

Add parser middleware or transformation

  • Create new transformation function in packages/parser/src/utils.ts or separate module
  • Integrate into core.ts parsing pipeline by calling from parse() or related functions
  • Add type definitions for output to packages/types/src/transform.ts if needed
  • Write test in packages/parser/src/utils.test.ts to validate transformation

Add VSCode extension command or view

  • Define command handler in packages/vscode/src/commands.ts
  • Create tree view or panel in packages/vscode/src/views/ directory (e.g., slidesTree.ts)
  • Register command/view in extension activation in packages/vscode/src/index.ts

Add new configuration option

  • Add property to config types in packages/types/src/config.ts
  • Parse and validate in packages/parser/src/config.ts parseConfig() function
  • Pass through to client via packages/client/App.vue or inject into Vue context
  • Document in README.md and packages/types/README.md

Change the public API

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points74 per file on average
  • Code issues0 errors, 46 warnings
  • Largest file1,089 lines
  • Hotspot load1 high-risk file

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions5 workflows
  • Tests67 test filesJest/Vitest · Cypress · 0.25 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: packages/slidev/node/syntax · test/__snapshots__/tsnapi/@slidev/parser · cypress/e2e/examples

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.