Quick Start
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 your vault directory (check config.vaultName in src/config.ts):
# For the demo vault (Ametrine):touch src/content/Ametrine/my-first-note.md
# For template users (vault):# touch src/content/vault/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 [[documentation/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 your vault directory (src/content/<vaultName>/) 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 documentation/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 documentation/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 documentation/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 documentation/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
- documentation/wikilinks-and-graph - Master linking and navigation
- documentation/obsidian-features-demo - Learn content formatting
- documentation/marginalia-demo - Add side notes
- documentation/syntax-reference - Quick reference guide
For Customization
- documentation/configuration-guide - Complete config options
- documentation/deployment-guide - Deploy your site
- documentation/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 your vault directory (
src/content/<vaultName>/, checkconfig.vaultNameinsrc/config.ts) - Files have
.mdextension - Frontmatter includes at least
title - The dev server is running
Wikilinks Not Working
Check that:
- The target file exists in your vault directory
- You’re using the correct syntax:
[[Page Name]] - The file name matches (case-insensitive)
Getting Help
- Check the documentation
- Review documentation/configuration-guide for setup issues
- Explore documentation/syntax-reference for formatting questions
Happy gardening!
Links & Context17https://github.com/yourusername/ametrine.githttp://localhost:4321
+1 more links
Frontmatter ReferenceSyntax Reference
+2 more backlinks
External Links3
Backlinks4
- Frontmatter Reference
Complete guide to frontmatter fields in Ametrine
- Syntax Reference
Quick reference for all Ametrine syntax features
- Wikilinks and Graph
Master linking and graph visualization in Ametrine
- Ametrine
Digital garden template built with Astro