← Public packages
@kentcdodds/photo-portfolio
A fast, photo-first portfolio site you update by chatting with your agent: galleries, about, contact, and one-step rollback.
Files
import type { Photo, SiteContent } from '../src/domain/types.ts'
import { defaultContent } from '../src/domain/defaults.ts'
export function storedPhoto(id: string, alt = `Photo ${id}`): Photo {
return {
id,
source: 'stored',
width: 1600,
height: 1067,
alt,
blurhash: 'LEHV6nWB2yk8pyo0adR*.7kCMdnj',
lqip: 'data:image/jpeg;base64,AA==',
variants: [{ width: 1600, height: 1067, format: 'jpeg', bytes: 3 }],
addedAt: '2026-10-10T00:00:00.000Z',
}
}
/** Sample content without the bundled galleries, for tests that build their own manifest. */
export const emptyContent: SiteContent = { ...defaultContent, galleries: [] }