🚧 This project is currently under development 🚧
Trench is a tool for monitoring and preventing fraud and abuse. It helps you collect data on users, identify bad actors, and take action on them (e.g. blocking a payment).
Check out the full documentation here.
- Install Docker Engine and Docker Compose
- Clone the repository:
git clone https://github.com/trytrench/trench.git && cd trench
- Run Trench:
docker-compose up
You can send user events to Trench via the REST API or using the Javascript SDK.
curl \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
'YOUR_TRENCH_URL/api/event' \
-d '
{
"type": "payment",
"data": {
"card": {
"fingerprint": "f2xvb823k",
"brand": "visa",
"country": "US",
"last4": "4242",
},
"user": {
"id": "45912",
"name": "John Doe",
"email": "[email protected]"
},
...
}
- Full customization. You know your product and user interactions better than anyone else. To be effective, you should have full control over the data you collect and integrate.
- Full access to your data. You shouldn’t be limited to dashboards and reports. Full access to your data is needed to properly understand your fraud.
- Clone the repository:
git clone https://github.com/trytrench/trench.git && cd trench
- Install dependencies:
pnpm install
- Run the development server:
pnpm dev
Join the Trench community in Discord if you need support or have anything you'd like to ask. We'd love to chat!