0.6.1 • Published 2 years ago

watersport-catalog v0.6.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

watersport-catalog

This library's goal is to document all available information about water sports gear:

  • windsurfing boards and sails
  • kitesurfing boards and kites
  • wingfoil boards and wings
  • ... more to come

This means turning human-readable websites such as:

Gaastra Patrik

...into machine-readable code like:

{
  "dimensions": ["color", "size"],
  "brandName": "Gaastra",
  "year": 2020,
  "name": "Hybrid",
  "type": "sail",
  "infoUrl": "https://ga-windsurfing.com/sails/2020/freeride/hybrid-20",
  "activities": ["windsurf", "windfoil"],
  "programs": ["freeride"],
  "variants": [
    {
      "variant": {
        "size": 3.7
      },
      "surfaceM2": 3.7,
      "mastLengthsCm": [370],
      "mastIMCS": [17],
      "mastExtensionLengthsCm": [0],
      "luffLengthCm": 365,
      "boomLengthCm": 146,
      "battenCount": 4,
      "topType": "vario"
    },
    {
      "variant": {
        "size": 4.2
      },
      "surfaceM2": 4.2,
      "mastLengthsCm": [370, 400],
      "mastIMCS": [17, 19],
      "mastExtensionLengthsCm": [16],
      "luffLengthCm": 386,
      "boomLengthCm": 156,
      "battenCount": 4,
      "topType": "vario"
    },

TL;DR

  • Find gear description in data directory
  • Read about the data model in product.ts

Description

The library

  • defines a common model to describe gear
  • scrapes information from brands' websites
  • generates JSON files representing gear that has been "scrapped"
  • gear can also be manually defined

This project contains both the code to scrape information (in src) and the latest catalog information in JSON format (in products).

The product definition is described in details in product.ts

Use gear information

Data is in JSON format available in the data directory

The project can be imported in other projects to use both data and data model:

# In your own project
npm install watersport-catalog

Contribute

See CONTRIBUTE.md

0.6.1

2 years ago

0.6.0

2 years ago

0.4.24

2 years ago

0.4.25

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.20

2 years ago

0.4.21

2 years ago

0.4.22

2 years ago

0.4.23

2 years ago

0.4.19

2 years ago

0.4.17

2 years ago

0.4.18

2 years ago

0.4.15

2 years ago

0.4.16

2 years ago

0.4.13

2 years ago

0.4.14

2 years ago

0.4.11

2 years ago

0.4.12

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.10

2 years ago

0.4.5

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.4

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago