Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-lego-data

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-lego-data

Lib retrieving data from popular lego services

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

#node-get-lego-data Build Status

Project idea is to retrieve most basic data about lego sets. It should get data from popular auctions sites and lego data aggregators. There will be more info available as more lego services will be integrated into this project.

##What's to be done

  • Configurable providers based on settings
  • Additional data providers
    • ebay
    • bricklink
    • ??
  • (Nice to have)
    • cache

##What's new:

v 0.1.0

  • Supports different data providers that can be added either via dependency to external module, or programatically
    • Brickset data provider
    • Allegro data provider
    • Rebrickable data provider
    • Get links - provides static list of links for passed setId.
  • Uses node-brickset lib instead of naive implementation as brickset data provider.
  • Added Jest tests with chai assertions.

What will it do

v 1.0.0

Based on lego serie number fetches data like:

  • Bricks count
  • Set pic preview
  • Best price on allegro
  • Best price on ebay
  • Suggested price on relase
  • Release day

It provides links to some aggregates like:

  • Brickset
  • Rebrickable
  • Bricklink

#Using module

  1. You will have to create enviromental variables that are visible via process.env with data:

    ALLEGRO_PRIVATE_CONFIG={ "webapiKey": "qwert" }
    BRICKSET_PRIVATE_CONFIG={ "apiKey": "qazxsw" }
    REBRICKABLE_PRIVATE_CONFIG={ "apiKey": "123ewqdsa" }
    

    Api keys are obtained from sites as follows

  2. You have to install node modules with npm install

  3. You run the test for module with npm test

Project is constantly changing so nothing is set in stone yet.

Keywords

FAQs

Package last updated on 15 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc