Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
gatsby-source-strava
Advanced tools
Gatsby plugin to use Strava as a data source
You can download gatsby-source-strava
from the NPM registry via the
npm
or yarn
commands
yarn add gatsby-source-strava
npm install gatsby-source-strava --save
Add the plugin in your gatsby-config.js
file:
const STRAVA_TOKEN = "your-token"
module.exports = {
plugins: [
{
resolve: "gatsby-source-strava",
options: {
//
// Mandatory
// --------
//
token: STRAVA_TOKEN,
//
// Optional
// --------
//
debug: true,
activitiesOptions: {
// Options for filtering activities
// --------------------------------
//
// Timestamp for filtering activities that have taken place BEFORE a certain time
before: "1539500400",
// Timestamp for filtering activities that have taken place AFTER a certain time
after: "1539500400",
//
// Options for enhance activities
// --------------------------------
//
// Add comments to every activity
withComments: true,
// Add kudos to every activity
withKudos: true,
// Add laps to every activity
withLaps: true,
// Add photos to every activity
withPhotos: true,
// Add related activities to every activity
withRelated: true,
// Add streams to every activity (see streamTypes)
withStreams: true,
// Add zones to every activity (need Strava Summit Analysis Pack)
withZones: true,
//
// Add analyzed data to every activity
// withStreams option must be true
// See https://developers.strava.com/docs/reference/#api-models-StreamSet
streamsTypes: [
"time",
"cadence",
"distance",
"latlng",
"heartrate",
"temp",
"moving",
"grade_smooth",
"watts",
"velocity_smooth",
"altitude",
],
//
// Option to cache activities
// ------
cacheDir: `${__dirname}/.strava`,
},
athleteOptions: {
// Options computed by gatsby-source-strava
// ----------------------------------------
//
// Add `heartrateMax` data to `athlete`
computeHeartrateMax: true,
//
// Options for enhance athlete data
// --------------------------------
//
// Add athlete koms
withKoms: true,
// Add athlete routes
withRoutes: true,
// Add athlete stats
withStats: true,
// Add athlete zones
withZones: true,
},
},
},
],
}
See CONTRIBUTING guidelines
See CHANGELOG
This project is licensed under the MIT License - see the LICENCE file for details
FAQs
Gatsby plugin to use Strava as a data source
The npm package gatsby-source-strava receives a total of 3 weekly downloads. As such, gatsby-source-strava popularity was classified as not popular.
We found that gatsby-source-strava demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.