Quick Start
Get your Ametrine digital garden up and running in just a few minutes.
Prerequisites
You’ll need:
- Node.js 18.14.1 or higher
- npm, pnpm, yarn, or bun package manager
- Git for version control
Installation
1. Clone the Repository
# Clone the templategit clone https://github.com/yourusername/ametrine.git my-gardencd my-garden
# Remove the template's git historyrm -rf .gitgit init2. Install Dependencies
Choose your preferred package manager:
# Using npmnpm install
# Using pnpm (recommended)pnpm install
# Using yarnyarn install
# Using bunbun installThis guide uses bun, but you can use any package manager. Just replace bun run with npm run, pnpm, or yarn.
3. Start the Development Server
bun run devOpen your browser to http://localhost:4321 1The port might be different if 4321 is already in use.
Your First Note
1. Create a New File
Create a new markdown file in src/content/notes/:
touch src/content/notes/my-first-note.md2. Add Frontmatter and Content
Open the file and add:
---title: My First Notedescription: Testing out Ametrine featurestags: [test, personal]date: 2025-10-30---
# My First Note
This is my ==first note== in my digital garden!
I can link to other notes like [[index|the home page]].
> [!success] It Works!> You're now running Ametrine successfully.3. View Your Note
The dev server hot-reloads automatically. Visit:
http://localhost:4321/my-first-note
Understanding the Structure
my-garden/├── src/│ ├── content/│ │ └── notes/ # Your markdown notes go here│ ├── config.ts # Main configuration file│ ├── components/ # UI components│ ├── layouts/ # Page layouts│ └── pages/ # Routes and API endpoints├── public/ # Static assets (images, etc.)├── astro.config.mjs # Astro configuration└── package.jsonYou can create subfolders in src/content/notes/ to organize your content. Ametrine will automatically discover all markdown files.
Key Concepts
Wikilinks
Link between notes using double brackets:
[[Page Name]] # Links to page-name.md[[Page Name|Display Text]] # Custom link text[[Page#Section]] # Link to a specific sectionLearn more in Wikilinks and Graph.
Frontmatter
Every note needs frontmatter with at least a title:
---title: Required Titledescription: Optional description for SEOtags: [topic1, topic2]date: 2025-10-30---See all available fields in Frontmatter Reference.
Graph Visualization
Press Ctrl/Cmd+G to open the global graph and see how your notes connect.
Essential Features to Try
1. Highlights
Use ==double equals== to highlight important text.
2. Marginalia
Add side notes with {{double curly braces}} 2Like this!. See Marginalia Demo for more examples.
3. Callouts
Create visually distinct blocks:
> [!tip] Pro Tip> Callouts support **markdown formatting**!4. Search
Press Cmd/Ctrl+K to open the search dialog.
5. Backlinks
Every note automatically shows which other notes link to it.
Customization
Change Site Title and Description
Edit src/config.ts:
export const siteConfig = { pageTitle: "My Digital Garden", defaultDescription: "My personal knowledge base", // ... more options}See Configuration Guide for all available options.
Change Colors
Modify the theme colors in src/config.ts:
theme: { colors: { lightMode: { light: "#faf8f8", dark: "#141021", // ... more colors } }}Add Your Logo
- Place your logo in
public/ - Update
src/config.ts:
logo: { src: "/my-logo.png", alt: "My Logo"}Next Steps
Now that you’re set up, explore more features:
For Writing Content
- Wikilinks and Graph - Master linking and navigation
- Obsidian Features Demo - Learn content formatting
- Marginalia Demo - Add side notes
- Syntax Reference - Quick reference guide
For Customization
- Configuration Guide - Complete config options
- Deployment Guide - Deploy your site
- Frontmatter Reference - All metadata fields
For Exploration
- Press Ctrl/Cmd+G to open the graph
- Press Ctrl/Cmd+K to search
- Click the theme toggle for dark mode
- Hover over links to preview pages 3If popovers are enabled
Common Issues
Port Already in Use
If port 4321 is taken, Astro will automatically use the next available port. Check the terminal output for the actual URL.
Notes Not Showing Up
Make sure:
- Files are in
src/content/notes/ - Files have
.mdextension - Frontmatter includes at least
title - The dev server is running
Wikilinks Not Working
Check that:
- The target file exists in
src/content/notes/ - You’re using the correct syntax:
[[Page Name]] - The file name matches (case-insensitive)
Getting Help
- Check the documentation
- Review Configuration Guide for setup issues
- Explore Syntax Reference for formatting questions
Happy gardening!
Links & Context9https://github.com/yourusername/ametrine.githttp://localhost:4321
+1 more links
AmetrineWikilinks and Graph
+2 more backlinks
External Links3
Backlinks4
- Ametrine
Digital garden template built with Astro
- Wikilinks and Graph
Master linking and graph visualization in Ametrine
- Frontmatter Reference
Complete guide to frontmatter fields in Ametrine
- Syntax Reference
Quick reference for all Ametrine syntax features