Skip to main content
Get up and running with Hyrex in minutes.

Prerequisites

  • Node.js 16 or higher
  • PostgreSQL 12+ (for FOSS) or Hyrex Cloud account

1. Install Hyrex

2. Initialize a New Project

Use the interactive hyrex init command to set up a new project:
This will guide you through:
  • Choosing a project name
  • Selecting deployment mode (Cloud or PostgreSQL)
  • Configuring environment variables
  • Creating project files
For manual database initialization (PostgreSQL mode only):

3. Project Structure

After running hyrex init, you’ll have:
Example app.ts:
Example hyrex-app.ts:

4. Send Tasks

Queue tasks for execution:
Then run:

5. Run Workers

Start workers to process tasks:

6. Monitor Tasks

Visit your dashboard at hyrex.io/cloud to monitor tasks in real-time.

Complete Example

NPM Scripts

The generated package.json includes helpful scripts:

Next Steps

Tasks

Learn about task configuration

Workflows

Build complex workflows