{"id":13998415,"url":"https://github.com/trytrench/trench","last_synced_at":"2025-07-23T06:31:36.704Z","repository":{"id":174809235,"uuid":"650713989","full_name":"trytrench/trench","owner":"trytrench","description":"Open source fraud and abuse prevention tools","archived":false,"fork":false,"pushed_at":"2024-04-26T20:23:25.000Z","size":3817,"stargazers_count":202,"open_issues_count":4,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-30T00:33:43.871Z","etag":null,"topics":["fraud-prevention","rule-engine","typescript"],"latest_commit_sha":null,"homepage":"https://trytrench.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trytrench.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-07T16:42:24.000Z","updated_at":"2024-11-26T01:41:24.000Z","dependencies_parsed_at":"2024-01-04T02:31:10.707Z","dependency_job_id":"84f22e05-5d77-42e7-9254-d2f7bf887609","html_url":"https://github.com/trytrench/trench","commit_stats":null,"previous_names":["trytrench/trench"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trytrench/trench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trytrench%2Ftrench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trytrench%2Ftrench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trytrench%2Ftrench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trytrench%2Ftrench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trytrench","download_url":"https://codeload.github.com/trytrench/trench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trytrench%2Ftrench/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266631348,"owners_count":23959419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fraud-prevention","rule-engine","typescript"],"created_at":"2024-08-09T19:01:39.107Z","updated_at":"2025-07-23T06:31:36.288Z","avatar_url":"https://github.com/trytrench.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"![logo](https://github.com/trytrench/trench/assets/9043913/14508389-2126-488a-8b22-303d43e9d923)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"GitHub Repo stars\" src=\"https://img.shields.io/github/stars/trytrench/trench?style=social\"\u003e\n    \u003ca href=\"https://github.com/trytrench/trench/blob/main/LICENSE\"\u003e\n        \u003cimg alt=\"License: AGPL v3\" src=\"https://img.shields.io/github/license/trytrench/trench\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://discord.gg/cSYC47MXTR\" target=\"_blank\"\u003eDiscord\u003c/a\u003e\n    -\n    \u003ca href=\"https://www.trytrench.com\" target=\"_blank\"\u003eWebsite\u003c/a\u003e\n    -\n    \u003ca href=\"https://trench.mintlify.app\" target=\"_blank\"\u003eDocs\u003c/a\u003e\n\u003c/p\u003e\n\n## Getting started\n\n🚧 This project is currently under development 🚧\n\nTrench 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).\n\n[Live demo](https://play.trytrench.com)\n\n## Documentation\nCheck out the full documentation [here](https://trench.mintlify.app).\n\n## Deploying Trench\n\n- Install Docker Engine and Docker Compose\n- Clone the repository: `git clone https://github.com/trytrench/trench.git \u0026\u0026 cd trench`\n- Run Trench: `docker-compose up`\n\n## Sending data to Trench\n\nYou can send user events to Trench via the REST API or using the Javascript SDK.\n\n```\ncurl \\\n  -H 'Content-Type: application/json' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  'YOUR_TRENCH_URL/api/event' \\\n  -d '\n{\n  \"type\": \"payment\",\n  \"data\": {\n    \"card\": {\n        \"fingerprint\": \"f2xvb823k\",\n        \"brand\": \"visa\",\n        \"country\": \"US\",\n        \"last4\": \"4242\",\n    },\n    \"user\": {\n      \"id\": \"45912\",\n      \"name\": \"John Doe\",\n      \"email\": \"john@email.com\"\n    },\n    ...\n  }\n```\n\n## Design Philosophy\n\n- **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.\n- **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.\n\n## Local development\n\n1. Clone the repository: `git clone https://github.com/trytrench/trench.git \u0026\u0026 cd trench`\n2. Install dependencies: `pnpm install`\n3. Run the development server: `pnpm dev`\n\n## Join our community\n\nJoin the Trench community in [Discord](https://discord.gg/cSYC47MXTR) if you need support or have anything you'd like to ask. We'd love to chat!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrytrench%2Ftrench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrytrench%2Ftrench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrytrench%2Ftrench/lists"}