
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@evidence-dev/preprocess
Advanced tools
This package is responsible for transforming Evidence Markdown files into Svelte Components / Pages.
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
Markdown preprocessor for evidence.dev projects
The npm package @evidence-dev/preprocess receives a total of 15,812 weekly downloads. As such, @evidence-dev/preprocess popularity was classified as popular.
We found that @evidence-dev/preprocess demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.