No description
Find a file
2025-04-06 19:20:13 +02:00
.github/workflows Remove redundant GitHub Pages workflow 2025-03-28 02:21:02 +01:00
docs Update README.md 2025-04-06 18:31:01 +02:00
src fixed-loggin 2025-04-06 15:20:15 +02:00
.editorconfig Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
.eslintignore Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
.eslintrc Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
.gitattributes Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
.gitignore docs-updated 2025-03-29 04:06:39 +01:00
.npmrc Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
esbuild.config.mjs Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
LICENSE Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
main.js fixed-loggin 2025-04-06 15:20:15 +02:00
manifest.json Update manifest.json 2025-04-06 19:20:13 +02:00
package-lock.json 1.0.0-beta.3 2025-03-28 00:14:35 +01:00
package.json version-update 2025-04-06 19:03:04 +02:00
README.md Update README.md 2025-04-06 18:24:04 +02:00
styles.css fixed-toggle-refresh 2025-03-27 23:21:51 +01:00
tsconfig.json Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
version-bump.mjs Initial commit - Complete working codebase (1.0.0-beta.1) 2025-03-01 13:20:06 +01:00
versions.json 1.0.0-beta.3 2025-03-28 00:14:35 +01:00

DataCards for Obsidian

Transform Dataview query results into visually appealing, customizable card layouts.

Documentation

Quick Start

  1. Install: Download main.js , manifest.json and style.css from releases page
  2. Go to .obsidian/plugins/ create the folder data-cards and copy over the downloaded files
  3. (Or install using the BRAT plugin)
  4. Enable: Activate the plugin in Obsidian's Community Plugins settings
  5. Use: Create a code block with the datacards language and write a Dataview query:
```datacards
TABLE author, rating, cover FROM #books
SORT rating DESC

// Settings
preset: portrait
imageProperty: cover
```

That's it! Your Dataview results will now display as beautiful cards.

Features

  • Custom Code Block: Use datacards code blocks with Dataview query syntax
  • Flexible Presets: Multiple card preset options (grid, portrait, square, compact, dense) optimized for different use cases
  • Highly Customizable: Adjust nearly all settings per code block, mixing and matching preset characteristics, including property display and font size options.
  • Image Support: Display images from frontmatter properties with customizable dimensions
  • Global Settings: Default configuration with per-block overrides
  • Mobile Optimization: Dedicated mobile settings for better display on small screens
  • Performance Enhancements: Lazy loading for images to improve loading times

Documentation

Visit the documentation site for complete guides, examples, and reference materials:

Requirements

Installation

Option 1: Community Plugins

Note

: DataCards is not yet available in the Community Plugins store. Please use BRAT or manual installation until then.

  1. Open Obsidian Settings
  2. Go to Community Plugins
  3. Click "Browse" and search for "Data Cards"
  4. Click "Install", then "Enable"

Option 2: BRAT Plugin

  1. Install the BRAT plugin through Community Plugins
  2. Open BRAT settings in Obsidian
  3. Click "Add Beta Plugin"
  4. Enter the DataCards repository URL: https://github.com/Sophokles187/data-cards
  5. Click "Add Plugin"
  6. Enable DataCards in Community Plugins settings

Option 3: Manual Installation

  1. Download the latest release from the releases page
  2. Download these files:
    • main.js
    • manifest.json
    • style.css
  3. Navigate to your Obsidian vault's .obsidian/plugins/ directory
  4. Create a new folder named data-cards
  5. Copy the downloaded files into the data-cards folder
  6. Enable the plugin in Obsidian's Community Plugins settings

Note

: After installation, you may need to restart Obsidian for the changes to take effect.

Example Usage

Create a datacards code block with a Dataview query and optional settings:

```datacards
TABLE author, rating, genre, cover FROM #books
SORT rating DESC
WHERE rating >= 4

// Settings
preset: portrait
columns: 3
imageProperty: cover
properties: [author, rating, genre]
```

Important: You must explicitly include all properties you want to display in your Dataview query (including the image property).

See the documentation for more detailed examples.

Support Development

If you find DataCards useful and would like to support its development, consider buying me a coffee:

Support on Ko-fi

License

GNU General Public License v3.0 (GPL-3.0)

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgments