formfeed
Official# Formfeed packages
Client libraries, command line tools and integrations for [Formfeed](https://formfeed.dev/?utm_source=github), the API
for generating PDFs and images from templates. Documentation lives at
[docs.formfeed.dev](https://docs.formfeed.dev).
| Package | Registry | What it is |
| --------------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`@formfeed/sdk`](packages/sdk-ts) | [npm](https://www.npmjs.com/package/@formfeed/sdk) | TypeScript client: renders, batches, templates, webhooks. No dependencies, Web APIs only |
| [`formfeed`](packages/sdk-python) | [PyPI](https://pypi.org/project/formfeed/) | Python client, sync and async |
| [`formfeed/sdk`](packages/sdk-php) | [Packagist](https://packagist.org/packages/formfeed/sdk) | PHP client over any PSR-18 HTTP client |
| [`formfeed/laravel`](packages/sdk-laravel) | [Packagist](https://packagist.org/packages/formfeed/laravel) | Laravel package: settings from `.env`, the `Formfeed` facade, a webhook middleware and `Formfeed::fake()` for tests |
| [`formfeed`](packages/cli) | [npm](https://www.npmjs.com/package/formfeed) | CLI: templates as files, offline preview and validation, renders through the API |
| [`@formfeed/engine`](packages/engine) | [npm](https://www.npmjs.com/package/@formfeed/engine) | The template engine (Jinja2, Liquid, Handlebars) the API and the editor use |
| [`@formfeed/devkit`](packages/devkit) | [npm](https://www.npmjs.com/package/@formfeed/devkit) | Template folders, project config and local rendering |
| [`@formfeed/testing`](packages/testing) | [npm](https://www.npmjs.com/package/@formfeed/testing) | Vitest and Jest matchers for templates |
| [`@formfeed/mcp`](packages/mcp) | [npm](https://www.npmjs.com/package/@formfeed/mcp) | Model Context Protocol server for AI agents [](https://glama.ai/mcp/servers/formfeed-dev/formfeed) |
| [`n8n-nodes-formfeed`](packages/n8n-nodes-formfeed) | [npm](https://www.npmjs.com/package/n8n-nodes-formfeed) | n8n community node |
Every npm package is built and published from this repository by
[GitHub Actions](.github/workflows/release.yml) with
[provenance](https://docs.npmjs.com/generating-provenance-statements), and the Python package with
[trusted publishing](https://docs.pypi.org/trusted-publishers/), so each release can be traced to
the commit and workflow run it came from. Packagist reads the PHP packages from repositories of their
own, [formfeed-php](https://github.com/formfeed-dev/formfeed-php) and
[formfeed-laravel](https://github.com/formfeed-dev/formfeed-laravel), which are tagged with every
release.
## Development
Node 22 or newer and pnpm (the version in `package.json`, `corepack enable` picks it up):
```bash
pnpm install
pnpm nx run-many -t lint test --exclude sdk-python,sdk-php,sdk-laravel # TypeScript packages
pnpm nx run-many -t bundle smoke # build, pack and try every npm package
pnpm nx run-many -t lint test -p sdk-php sdk-laravel # PHP packages, in Docker
cd packages/sdk-python && pip install pytest httpx pydantic && python -m pytest -q
```
This repository is generated from Formfeed's main repository, where the packages are developed
together with the API they talk to. See [CONTRIBUTING.md](CONTRIBUTING.md) for how issues and pull
requests are handled.
## Licence
MIT, see [LICENSE](LICENSE). Bundled third-party code keeps its own licence; the CLI and MCP packages
list it in `THIRD_PARTY_LICENSES.md`.
TDQS
Scored across 18 tools
Most tools target clearly different resources and actions: template discovery/editing, rendering, conversion, PDF operations, and e-invoice checks are cleanly separated. A few adjacent pairs—validate_einvoice vs. check_invoice, and render vs. markdown_to_pdf vs. convert_to_pdf—require reading the descriptions, but they are not truly overlapping.
The set is overwhelmingly consistent snake_case with recognizable verb_noun names such as list_templates, validate_template, and fill_pdf_form. Minor deviations like markdown_to_pdf and pdf_to_image use source_to_target naming instead, and render is a bare verb, but the convention remains readable.
Eighteen tools is slightly above the typical well-scoped range, but the server covers several genuine subdomains: templates, rendering, PDF manipulation, and e-invoice validation. Each tool appears to earn its place, though the surface is on the heavy side.
Core workflows are covered: template discovery, schema/source reading, validation, drafting, rendering, conversion, and common PDF operations, plus e-invoice preflight and validation. Minor gaps remain, such as no PDF merge operation and no template delete/publish tool, though publishing is intentionally routed through a human review URL.