| .github/workflows | ||
| docs | ||
| images | ||
| src | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.js | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
DataCards for Obsidian
Transform Dataview query results into visually appealing, customizable card layouts.
Quick Start
- Install: Download
main.js,manifest.jsonandstyle.cssfrom releases page - Go to
.obsidian/plugins/create the folderdata-cardsand copy over the downloaded files - (Or install using the BRAT plugin)
- Enable: Activate the plugin in Obsidian's Community Plugins settings
- Use: Create a code block with the
datacardslanguage 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
datacardscode blocks with Dataview query syntax - Flexible Presets: Multiple card preset options (grid, portrait, square, compact, dense) optimized for different use cases
- Property Customization: Select which properties to display and how they appear
- Font Size Options: Customize text size independently from presets to mix and match features
- 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
- Obsidian v0.15.0+
- Dataview Plugin
Installation
Option 1: Community Plugins
Note
: DataCards is not yet available in the Community Plugins store. Please use BRAT or manual installation until then.
- Open Obsidian Settings
- Go to Community Plugins
- Click "Browse" and search for "Data Cards"
- Click "Install", then "Enable"
Option 2: BRAT Plugin
- Install the BRAT plugin through Community Plugins
- Open BRAT settings in Obsidian
- Click "Add Beta Plugin"
- Enter the DataCards repository URL:
https://github.com/Sophokles187/data-cards - Click "Add Plugin"
- Enable DataCards in Community Plugins settings
Option 3: Manual Installation
- Download the latest release from the releases page
- Download these files:
main.jsmanifest.jsonstyle.css
- Navigate to your Obsidian vault's
.obsidian/plugins/directory - Create a new folder named
data-cards - Copy the downloaded files into the
data-cardsfolder - 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.
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
- Dataview Plugin (MIT License) - This plugin uses the Dataview API
