# Pechi Activation

Static activation and deactivation pages for Pechi Audio plugins.

## Routes

Host these folders as static routes:

- `/activate?plugin=pechi_eq&machine=a3f9b2c1d4e5f6a7`
- `/deactivate?plugin=pechi_eq&machine=a3f9b2c1d4e5f6a7`

Both routes broadcast a Hive `custom_json` operation with id `pechi_license`.

## Snapie integration constants

The Snapie values live at the top of `assets/app.js`:

- `https://auth.snapie.io/api/user/me`
- `hive_username`
- `snapieauth_csrf`
- `https://auth.snapie.io/api/hive/broadcast`

These are provisional until Snapie confirms the current endpoint, response field,
CSRF cookie name, broadcast path, and allowed origins for `pechi.audio`.

## Hash tests

The pages do not use the account hash at runtime. The helper is included so its
output can be compared with `LicenseManager::computeAccountHash`.

```sh
npm test
```
