Quick Start
Get your first screenshot generated in under 5 minutes.
Prerequisites
Section titled “Prerequisites”- A Spectra.fm account (sign up here)
- Node.js 18+ (for CLI usage)
Installation
Section titled “Installation”Install the Spectra CLI globally:
npm install -g @spectra.fm/cliAuthentication
Section titled “Authentication”Login to your Spectra account:
spectra loginGenerate Your First Screenshot
Section titled “Generate Your First Screenshot”Create a simple App Store screenshot:
spectra render \ --template app-store-hero \ --device iphone-15-pro \ --output ./screenshotsUsing the SDK
Section titled “Using the SDK”For programmatic usage, install the SDK:
npm install @spectra.fm/sdkThen in your code:
import { Spectra } from '@spectra.fm/sdk';
const spectra = new Spectra({ apiKey: process.env.SPECTRA_API_KEY });
const result = await spectra.render({ template: 'app-store-hero', feature: 'dark-mode', locales: ['en', 'de', 'ja'], devices: ['iphone-15-pro', 'ipad-pro'],});
console.log(result.urls);// → cdn.spectra.fm/myapp/v2.1/en/iphone-15-pro.pngNext Steps
Section titled “Next Steps”- Learn about creating custom templates
- Explore the API documentation
- Set up CI/CD integration