Mock Data Generator
When to use this skill
- Use early in development to simulate arXiv papers, users, and endorsement relations for UI and store integration.
- Triggered by requests to create JSON or TypeScript fixtures under
src/data/mockData.ts.
Instructions
First Step: Produce realistic paper fixtures (title, authors, categories, abstract, submittedAt) and user fixtures (id, name, affiliation, expertiseAreas).
Second Step: Optionally seed persisted store on first load if no data exists, using the mock dataset to populate
usePaperStoreor similar.Third Step: Provide utility functions to filter and paginate mock data to emulate real API behavior.
Examples
src/data/mockData.tsexports{ papers, users, endorsements }and helperseedMockData().
Notes
- Keep the dataset representative (vary categories, dates) so components (sorting, filtering) can be tested effectively.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.