HUMANin theLOOP

Self-host

Run the Apache-2.0 Hitly server yourself.

This repository is the open-source Hitly server. Self-hosting includes the inbox, projects, plugins, audit log, API keys, and team membership. There are no usage caps.

Run locally

yarn install
cp apps/app/.env.example apps/app/.env.local
yarn db:up
yarn db:migrate
yarn dev:app

The marketing/docs site is optional (yarn dev:web). The Expo reviewer app is yarn dev:mobile — see Mobile.

What is not in this repo

Stripe billing, hosted plan limits, and SSO ship in a private @hitly/cloud overlay used by hitly.net. The @hitly/cloud package here is a stub: billing API routes return 404, and the nav hides Cloud-only items.

Do not set an env var to "enable Cloud." Cloud features exist only when that private package replaces the stub.

Housekeeping

The app process runs due jobs about once a minute:

JobScheduleWhat it does
expire-overdue-approvalshourlyMarks pending items past expiresAt as expired
purge-completed-approvalsdailyDeletes closed items older than the workspace plan retention
purge-expired-audit-eventsweeklyDeletes project events older than auditRetentionDays

Self-hosted workspaces keep completed items forever. Hosted plans: solo 10 days, pro 30, team 365, enterprise 1000.

Set HITLY_HOUSEKEEPING=0 to disable the in-process timer (for example when a process manager or cron should own it). Then POST /api/v1/housekeeping with Authorization: Bearer $HITLY_CRON_SECRET. Optional JSON { "job": "purge-completed-approvals", "force": true } runs one job immediately.

On this page