Skip to main content

Quick Start

Published October 30, 2025
Reading time 4 minutes
Word count 799 words
Image [[Polished Ametrine.png]]

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

Terminal window
# Clone the template
git clone https://github.com/yourusername/ametrine.git my-garden
cd my-garden
# Remove the template's git history
rm -rf .git
git init

2. Install Dependencies

Choose your preferred package manager:

Terminal window
# Using npm
npm install
# Using pnpm (recommended)
pnpm install
# Using yarn
yarn install
# Using bun
bun install
Package Manager Choice

This 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

Terminal window
bun run dev

Open 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/:

Terminal window
touch src/content/notes/my-first-note.md

2. Add Frontmatter and Content

Open the file and add:

---
title: My First Note
description: Testing out Ametrine features
tags: [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.json
Content Organization

You can create subfolders in src/content/notes/ to organize your content. Ametrine will automatically discover all markdown files.

Key Concepts

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 section

Learn more in Wikilinks and Graph.

Frontmatter

Every note needs frontmatter with at least a title:

---
title: Required Title
description: Optional description for SEO
tags: [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**!

Press Cmd/Ctrl+K to open the search dialog.

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
}
}
}
  1. Place your logo in public/
  2. 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

For Customization

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:

  1. Files are in src/content/notes/
  2. Files have .md extension
  3. Frontmatter includes at least title
  4. The dev server is running

Check that:

  1. The target file exists in src/content/notes/
  2. You’re using the correct syntax: [[Page Name]]
  3. The file name matches (case-insensitive)

Getting Help

Happy gardening!

Notes

  1. 1. The port might be different if 4321 is already in use
  2. 2. Like this!
  3. 3. If popovers are enabled