Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@evidence-dev/preprocess

Package Overview
Dependencies
Maintainers
4
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evidence-dev/preprocess

Markdown preprocessor for evidence.dev projects

latest
npmnpm
Version
6.0.7
Version published
Weekly downloads
19K
-14.5%
Maintainers
4
Weekly downloads
 
Created
Source

Evidence Preprocess

This package is responsible for transforming Evidence Markdown files into Svelte Components / Pages.

Overview

The basic pipeline looks something like this:

---
title: Evidence Preprocess Steps
---
flowchart TD
    A(["At Runtime *1"])
    B["At Preprocess"]

    Content[Markdown File]
    ExtractQueries([Discover Queries for Page])
    ExecuteQueries([Execute Queries for Page *2 *3])
    MarkdownToSvelte["Convert Markdown to Svelte"]
    AddScriptTags["Ensure script tags exist"]
    InjectFrontmatter[Inject Frontmatter Tags]

    Content --> A
    A --> ExtractQueries
    ExtractQueries --> ExecuteQueries

    Content --> B
    B --> MarkdownToSvelte
    MarkdownToSvelte --> AddScriptTags
    AddScriptTags --> InjectFrontmatter

*1 Evidence will render with the static adapter by default; which means that "runtime" becomes "buildtime".

*2 This is handled by the db-orchestrator package, not preprocess - but it is an important step.

*3 This occurs in /pages/api/[route].json. The Svelte Static Adapter pre-renders the result JSON files.

FAQs

Package last updated on 06 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts