# Content Packs

Liso v2 separates core vault cryptography from community-extensible **Content Packs** (`packs/`,
Apache-2.0). Packs are declarative JSON/YAML bundles validated against schemas in
`packages/pack-formats/`.

## Pack Types

| Type | Purpose |
| --- | --- |
| **Templates** | Custom item schemas (e.g., API Keys, Database Credentials, Software Licenses, Medical Cards, Crypto Wallets). |
| **Generators** | Deterministic or wordlist-based password and passphrase recipes (EFF wordlists, pronounceable passphrases, PIN rules). |
| **Importers** | Declarative CSV/JSON field-mapping rules for third-party password managers and authenticators. |
| **Domains** | Equivalent domain groups and autofill matching rules so `example.com` and `auth.example.net` share credentials cleanly. |
| **Blueprints** | Pre-built vault folder and template starter kits (e.g., Startup Engineering, Personal Finance, Homelab). |

## Validating Packs with `pack-check`

Every pack in `packs/` and every pull request is validated using `@liso/pack-check`
(`packages/pack-check/`) to guarantee schema compliance, unique IDs, safe regexes, and clean
localization keys:

```sh
# Validate all packs in the repository
pnpm packs:check

# Validate a single pack directory
pnpm --filter @liso/pack-check exec pack-check packs/<pack-id>
```

You can also use the public GitHub Action in `.github/actions/pack-check/` to validate third-party
pack repositories in CI.

## Authoring a New Pack

1. Pick the matching format schema from `packages/pack-formats/`.
2. Create your pack manifest at `packs/<pack-id>/plugin.json` and place pack assets under
   `packs/<pack-id>/dev.liso/`.
3. Run `pnpm packs:check` (or `pack-check packs/<pack-id>`) locally to verify schema and lint rules.
4. Submit a pull request—no client code changes are needed for users to adopt your pack.

---
Source: https://docs.lisovault.com/guide/content-packs · Canonical site: https://lisovault.com/
