Quickstart
Get Evidence up and running in under 5 minutes. This guide will walk you through creating a new Evidence project, starting the development server, and creating your first interactive page.Create a new Evidence project
The fastest way to start is using the VSCode extension, but you can also use the command line:This creates a new Evidence project with:
- Demo data (a DuckDB database called
needful_things) - Example pages in the
pagesdirectory - Pre-configured data sources
Run your data sources
Evidence transforms your SQL queries into a unified data cache. Run the sources command to build this cache:
This step executes all your source queries and creates
.parquet files that Evidence uses to power your pages.Start the development server
Launch the Evidence development server:Your browser should automatically open to
http://localhost:3000. You’ll see the Evidence welcome page with the template app.Create your first page
Navigate to the Save the file and navigate to
pages directory and create a new file called my-first-page.md:http://localhost:3000/my-first-page to see your new page.Understanding Evidence syntax
Evidence uses Evidence-flavored Markdown which extends standard markdown with:SQL code fences
Queries are written in code fences with a unique name:{query_name}.
Components
Components use angle brackets like HTML:Inline values
Display query results inline:Loops and conditionals
Use Svelte-style syntax for control flow:Next steps
Connect your data
Replace the demo data with your own database or data warehouse
Explore components
Browse the full library of charts, tables, and UI components
Deploy your app
Learn how to deploy your Evidence app to production
View examples
Explore the Needful Things demo app on GitHub
CLI commands reference
Here are the most common Evidence CLI commands:| Command | Description |
|---|---|
npm run dev | Start the development server on port 3000 |
npm run sources | Build source queries and create data cache |
npm run build | Create a production build in the build directory |
npm run preview | Preview the production build locally |
npx evidence sources --changed | Only rebuild changed source queries |
npx evidence sources --strict | Fail if any source query fails |
Troubleshooting
Source manifest not found
Source manifest not found
If you see a warning about missing source manifest, run
npm run sources to generate the data cache.Port 3000 already in use
Port 3000 already in use
The Evidence dev server runs on port 3000 by default. If this port is already in use, you can specify a different port:
Changes not appearing
Changes not appearing
Make sure you’ve saved your file (Ctrl+S or Cmd+S). If changes still don’t appear, try refreshing your browser or restarting the dev server.
Query not found
Query not found
Ensure your query name in the code fence matches the name you’re using in components. Query names are case-sensitive.
Need help? Join the Evidence Slack community where the team and community members are ready to help.