Logseq Template Graph

November 8, 2025 ยท View on GitHub

A comprehensive starter template for Logseq Database that brings Tana-style supertag functionality using Schema.org vocabulary. Import this template to instantly get structured classes and properties for organizing your knowledge.

Quick Links: Quick Start | Developer Guide | ๐Ÿ“š Documentation | Contributing


Table of Contents


๐ŸŽฏ What This Project Does

This template provides 47 pre-built classes and 129 properties that you can import into your Logseq DB graph to:

  • โœ… Tag notes with structured types (#Person, #Organization, #Event, etc.)
  • โœ… Get automatic fields/properties on tagged pages
  • โœ… Use industry-standard Schema.org naming conventions
  • โœ… Build a structured knowledge graph like Tana, but in open-source Logseq

๐Ÿš€ Quick Start

For Users: Import Templates

Prerequisites:

3-Step Setup:

  1. Download the latest template from Releases

    • Choose a variant: Full, CRM, or Research preset
  2. Import into Logseq:

    • Open Logseq โ†’ Settings (โš™๏ธ) โ†’ Import โ†’ EDN to DB Graph
    • Select the downloaded .edn file
  3. Start using structured types:

    • #Person โ†’ email, jobTitle, birthDate, etc.
    • #Organization โ†’ legalName, employee, member, etc.
    • #Event โ†’ eventStatus, attendee, organizer, etc.

Detailed guide: QUICK_START.md

Back to top

๐Ÿ“ฆ What's Included

Classes (Types)

  • Thing - Base class for everything
  • Person - People with contact info, relationships, occupations
  • Organization - Companies, teams, institutions
  • Event - Meetings, conferences, occasions
    • EventSeries - Recurring events
    • BusinessMeeting - Work meetings
  • Place - Locations and addresses
  • Occupation - Job roles and skills
  • Schedule - Recurring time patterns
  • Audience - Target groups
  • Resource - Generic resources

Property Types

Properties support multiple types:

  • Text - Free-form content
  • Node - Links to other pages (relationships)
  • Date - Calendar dates
  • URL - Web links
  • Number - Numeric values
  • Choices - Pre-defined options (like event status)

Example: Person Class

When you tag a page with #Person, you automatically get these properties:

  • jobTitle
  • email
  • givenName (first name)
  • familyName (last name)
  • birthDate
  • spouse (links to another Person)
  • children (multiple Person links)
  • worksFor (links to Organization)
  • alumniOf (educational institution)
  • knows (other people)
  • skills

...and 15+ more Schema.org properties!

๐Ÿ› ๏ธ For Template Developers

Want to contribute or customize templates?

Quick Setup

# 1. Clone repository
git clone https://github.com/C0ntr0lledCha0s/logseq-template-graph.git
cd logseq-template-graph

# 2. Install all dependencies (includes @logseq/cli, git hooks)
npm install
# This installs Logseq CLI and checks for Babashka (optional)

# 3. Install Babashka (for modular workflow - recommended)
# Mac:     brew install borkdude/brew/babashka
# Windows: scoop install babashka
# Linux:   bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)

# 4. Set your graph path
export LOGSEQ_GRAPH_PATH="$HOME/Logseq/template-dev"  # Mac/Linux
# Or: $env:LOGSEQ_GRAPH_PATH = "C:\Users\...\template-dev"  # Windows

# 5. Start developing!
npm run export

Development Workflow

# 1. Make changes in Logseq
# ... edit classes, properties ...

# 2. Export and auto-split into modules
npm run export

# 3. Build template variants (optional)
npm run build:full      # Full template
npm run build:crm       # CRM preset
npm run build:research  # Research preset

# 4. Review modular source changes
git diff src/

# 5. Commit using conventional commits
git add .
git commit -m "feat(classes): add Recipe class with cookTime property"

# 6. Push to your fork
git push origin feat/add-recipe-class

Features:

  • โœ… NPM-based workflow - No global installs needed
  • โœ… Modular architecture - Split 15K+ line templates into manageable modules
  • โœ… Auto-split on export - Automatically splits into src/ modules
  • โœ… Template variants - Build full, CRM, research presets from modules
  • โœ… Automated commit validation - Conventional commits format
  • โœ… Auto-generated changelogs - From commit history
  • โœ… CI/CD integration - Automated releases and validation

Complete guides:

Back to top

๐Ÿ“š Documentation

๐Ÿ“ Organized Documentation: Documentation Portal - All guides organized by category in the docs/ folder.

Quick Index: DOCS_INDEX.md - Complete documentation map by task and audience.

Quick Access

GuideForWhat's Inside
QUICK_START.mdUsers & DevelopersInstallation, import instructions, dev setup
CI/CD PipelineDevelopersWorkflows, automation, modular development
Technical ReferenceDevelopers & AIEDN format, classes, best practices
Comprehensive AnalysisEveryoneDeep dive: Logseq DB, Tana, Schema.org
Modular QuickstartDevelopersFor large templates (15K+ lines)

Recommended Reading Order:

  1. Users: README โ†’ QUICK_START
  2. Developers: QUICK_START โ†’ CI/CD Pipeline โ†’ Technical Reference

Back to top

๐ŸŒŸ Why Use This Template?

vs. Starting from Scratch

โŒ Without template:

  • Blank slate, no structure
  • Inconsistent property names
  • Reinvent the wheel for common types
  • Hours of setup work

โœ… With this template:

  • Instant structure for common types
  • Schema.org standard naming
  • Ready to use in seconds
  • Battle-tested vocabulary

vs. Tana

This template brings Tana's supertag experience to Logseq:

FeatureTanaThis Template
Typed objectsโœ… Supertagsโœ… Classes
Auto fieldsโœ…โœ… Properties
Inheritanceโœ…โœ… Class parents
Open sourceโŒ Proprietaryโœ… MIT License
Local-firstโŒ Cloudโœ… Local SQLite
Cost๐Ÿ’ฐ Paid๐Ÿ†“ Free

๐Ÿค Contributing

Contributions welcome! We'd love your help expanding this template library.

How to Contribute

  1. Fork this repository
  2. Set up the development environment (guide)
  3. Make changes in your Logseq graph
  4. Export using ./scripts/export.sh
  5. Submit a pull request

What to Contribute

  • New Schema.org classes (Book, Article, Recipe, Product, etc.)
  • Additional properties for existing classes
  • Domain-specific templates (Research, CRM, Project Management)
  • Documentation improvements
  • Bug fixes and validation improvements

Contribution Guidelines

  • Follow Schema.org naming conventions
  • Include icons and descriptions for new classes/properties
  • Test imports before submitting
  • Update documentation as needed

See: CI/CD Pipeline for detailed development process

Back to top

๐Ÿ“– Learn More

About the Technologies

๐Ÿ—บ๏ธ Roadmap

Phase 1: Core Foundation โœ…

  • Core classes (Person, Organization, Event, Place)
  • Automated export workflow
  • Comprehensive documentation
  • CI/CD pipeline

Phase 2: Expansion ๐Ÿšง

  • Add CreativeWork classes (Book, Article, Recipe)
  • Add Product and Review classes
  • Community sharing and feedback

Phase 3: Ecosystem ๐Ÿ”ฎ

  • Multiple template variants (CRM, Research, Content)
  • Query templates and examples
  • Video tutorials
  • Template marketplace

Back to top

๐Ÿ“„ License

MIT License - see LICENSE

๐Ÿ’ฌ Community & Support

Get Help

Stay Updated

  • Watch this repository for new releases
  • Check the Roadmap for upcoming features
  • Join discussions in issues and pull requests

๐Ÿ™ Acknowledgments

  • Logseq Team - For building an amazing open-source knowledge tool
  • Schema.org - For providing standardized vocabulary
  • Tana - For pioneering the supertag paradigm
  • Community - For feedback and contributions

Back to top


Made with โค๏ธ for the Logseq community

Give Logseq Database the structure it deserves! โšก

Quick Links: Quick Start | Developer Guide | ๐Ÿ“š Documentation | Contributing