This project provides an interface to host and manage contact form forwarders. It is based on Nextjs and uses Payload CMS as the application framework. The main features are:
- Team creation and role based user management
- Double opt-in forwarding-address verification
- OpenAI or Anthropic (Claude) integration for spam filtering of form submissions
- Agent-friendly: the whole flow (sign up, create forms, send submissions) is documented for AI agents on the home page and as a machine-readable
/llms.txt
Use Node.js 22.12+ (22.x) or Node.js 24+, then clone the repository and install the locked dependencies:
npm ciNote: To run the project you will need a MongoDB instance, credentials for OpenAI, as well as SMTP credentials for sending emails.
Create an .env file in the project root with the following keys:
NEXT_PUBLIC_HOST_URLThe base URL where the site will be availableDATABASE_URIConnection string for MongoDBOPENAI_API_KEYOpenAI API keyPAYLOAD_SECRETChoose a random string that will be used to encrypt user tokensSMTP_HOSTSMTP endpointSMTP_USERSMTP usernameSMTP_PASSSMTP password
Docker Compose runs only MongoDB for local development and testing:
docker compose -f docker/compose.yaml up -d --waitUse the DATABASE_URI from .env.example. MongoDB listens on 127.0.0.1:27018
and initializes a single-node replica set so Payload transactions work. This
local-only database has no authentication and stores data in a named volume.
docker compose -f docker/compose.yaml downAdd --volumes to the shutdown command to delete the test database. Run the
application locally using npm; the Compose setup does not deploy the app.
Run the tests with:
npm test
npm run test:integrationIntegration tests require the Compose database. They create a uniquely named
test database on port 27018, stub email delivery, and delete only that database
after running. They do not use the application's DATABASE_URI.
This project is under active development. Features and APIs will change frequently.
To start the development server run:
npm run dev