This repository has been archived on 2026-02-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2024-11-24 21:31:59 +01:00
2024-11-24 21:31:59 +01:00
2024-11-24 21:31:59 +01:00
2024-11-24 11:16:42 +01:00
2024-11-23 23:48:25 +01:00
2024-11-24 11:16:42 +01:00
2024-11-23 23:48:25 +01:00
2024-11-23 23:48:25 +01:00
2024-11-23 23:48:25 +01:00
2024-11-23 23:48:25 +01:00
2024-11-23 21:27:23 +01:00
2024-11-24 21:31:59 +01:00
2024-11-24 21:31:59 +01:00
2024-11-23 23:48:25 +01:00
2024-11-23 23:48:25 +01:00

Purchases Personas Generator

A TypeScript application that leverages the Anthropic Claude API to generate realistic fictional personas and their weekly purchase behaviors. For creating synthetic datasets for retail/e-commerce applications with believable user behaviors and spending patterns.

🌟 Features

  • Generate detailed fictional personas including:
    • Personal demographics and household details
    • Daily routines and activities
    • Shopping preferences and brand loyalties
    • Financial patterns and spending habits
    • Contextual behaviors and upcoming events
  • Create realistic weekly purchase histories that match persona profiles
  • Store generated data in:
    • PostgreSQL database for structured querying
    • JSON files for easy data portability

🚀 Getting Started

  1. Install dependencies:
yarn install
  1. Set up your environment variables:
cp .env.example .env
  1. Initialize the database:
yarn migrate
  1. Build and start the application:
yarn build
yarn start

For development:

yarn dev

🛠️ Available Scripts

  • yarn start - Start the production server
  • yarn dev - Start development server with hot reload
  • yarn build - Build the TypeScript project
  • yarn lint - Run ESLint with automatic fixes
  • yarn format - Format code using Prettier
  • yarn typecheck - Check TypeScript types
  • yarn generate - Generate Prisma client
  • yarn migrate - Run database migrations

⚠️ Disclaimer

The personas and purchase histories generated by this tool are fictional and should not be used as real user data. They are intended for testing and development purposes only.

Description
Generate synthetic consumers and their weekly purchase history using AI. Create synthetic data with detailed profiles, shopping habits, and consistent spending patterns.
Readme MIT 946 KiB
Languages
TypeScript 95.7%
Dockerfile 2.5%
CSS 1.4%
Shell 0.3%
JavaScript 0.1%