mirkostanic35 downloadsFetches LEGO set information from Brickset API and creates formatted notes with set details and images.
An Obsidian plugin that integrates with the Brickset API to fetch LEGO set information and formatted notes with set details and images.
.obsidian/plugins/brickset-lego/ folderCmd/Ctrl + P)The plugin will:
75192 - Millennium Falcon (UCS)10497 - Galaxy Explorer42143 - Ferrari Daytona SP310316 - RivendellEach LEGO set note includes:
---
tags: lego, set
setNumber: 75192
theme: Star Wars
year: 2017
pieces: 7541
---
# 75192: Millennium Falcon

## Details
- **Set Number:** 75192
- **Name:** Millennium Falcon
- **Theme:** Star Wars
- **Subtheme:** Ultimate Collector Series
- **Year Released:** 2017
- **Pieces:** 7541
- **Minifigs:** 8
- **RRP:** $799.99
- **Rating:** 4.8/5
## Description
The full set description fetched from Brickset appears here.
## Additional Images


## Links
- [Brickset Page](https://brickset.com/sets/75192-1)
## Notes
<!-- Add your personal notes here -->
This plugin does not send periodic telemetry or background beacons. A short internal timer runs while the plugin is enabled only to save a local JSON cache file inside the plugin folder (state-cache.json) so bidirectional sync can detect your edits. That timer performs vault disk I/O only and does not open network connections.
Data is sent to Brickset’s API over HTTPS only when you choose actions that require it, for example:
Enabling the plugin alone does not start collection-wide or bidirectional API traffic; those depend on the commands and toggles above.
# Clone the repository
git clone https://github.com/mirkostanic/obsidian-lego.git
cd obsidian-lego
# Install dependencies
npm install
# Build the plugin
npm run build
# Development mode (auto-rebuild on changes)
npm run dev
# Run tests
npm run test
# Run tests and show coverage
npm run test:coverage
# Run lint
npm run lint
# Run lint and attempt fix
npm run lint:fix
# Bump version
npm version X.Y.Z
npm run version
obsidian-lego/
├── src/
│ ├── main.ts # Main plugin class
│ ├── settings.ts # Settings tab + persistence
│ ├── stateCache.ts # On-disk cache of previously synced frontmatter
│ ├── syncBackService.ts # Obsidian → Brickset bidirectional sync
│ ├── syncService.ts # Brickset → Obsidian collection sync
│ ├── bricksetApi.ts # Brickset HTTP API service
│ ├── types.ts # Type definitions
│ ├── noteCreator.ts # Note generation
│ └── modal.ts # User input modal
├── manifest.json # Plugin manifest
├── package.json # Dependencies
├── styles.css # Styling
└── README.md # This file
Contributions are welcome. Please feel free to submit a Pull Request.
npm test # Run all tests once
npm run test:watch # Watch mode for development
npm run test:coverage # Generate coverage report
MIT License - see LICENSE file for details
This plugin is not affiliated with, endorsed by, or sponsored by the LEGO Group or Brickset. LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this plugin. See DISCLAIMER.md for full text.