{"library":"speedcurve","title":"SpeedCurve CLI","type":"library","description":"Official SpeedCurve CLI and Node.js API for interacting with the SpeedCurve synthetic monitoring service. Version 2.0.10, released regularly via npm. Supports triggering deploys, monitoring deploy status, fetching synthetic test results, listing sites, and checking performance budgets. Unlike other API wrappers, this is the official package maintained by SpeedCurve, includes TypeScript definitions, and offers both CLI and programmatic API. Requires Node.js 8+ and a SpeedCurve API key.","language":"javascript","status":"active","last_verified":"Sat May 09","install":{"commands":["npm install speedcurve"],"cli":{"name":"speedcurve","version":null}},"imports":["import SpeedCurve from 'speedcurve'","const speedcurve = require('speedcurve')","import type { SpeedCurveOptions, DeployOptions } from 'speedcurve'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://speedcurve.com","github":"https://github.com/SpeedCurve-Metrics/speedcurve-cli","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/speedcurve","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import SpeedCurve from 'speedcurve';\n\nconst api = new SpeedCurve(process.env.SPEEDCURVE_API_KEY ?? '');\n\nasync function triggerDeploy() {\n  try {\n    const result = await api.deploy({\n      note: 'v2.0.0',\n      detail: 'Performance improvements',\n      siteId: [1043801],\n      wait: true,\n      checkBudgets: true,\n    });\n    console.log('Deploy ID:', result.deployId);\n    console.log('Tests:', result.tests);\n  } catch (err) {\n    console.error('Deploy failed:', err.message);\n  }\n}\n\ntriggerDeploy();","lang":"typescript","description":"Creates a SpeedCurve API client, triggers a deploy with note and detail, waits for completion, and checks budgets.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}