Coder Social home page Coder Social logo

trytrench / trench Goto Github PK

View Code? Open in Web Editor NEW
183.0 2.0 13.0 3.73 MB

Open source fraud and abuse prevention tools

Home Page: https://trytrench.com

License: GNU Affero General Public License v3.0

JavaScript 0.81% TypeScript 98.46% CSS 0.19% PLpgSQL 0.23% Dockerfile 0.30%
fraud-prevention rule-engine typescript

trench's Introduction

logo

GitHub Repo stars License: AGPL v3

Discord - Website - Docs

Getting started

🚧 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).

Live demo

Documentation

Check out the full documentation here.

Deploying Trench

  • Install Docker Engine and Docker Compose
  • Clone the repository: git clone https://github.com/trytrench/trench.git && cd trench
  • Run Trench: docker-compose up

Sending data to Trench

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]"
    },
    ...
  }

Design Philosophy

  • 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.

Local development

  1. Clone the repository: git clone https://github.com/trytrench/trench.git && cd trench
  2. Install dependencies: pnpm install
  3. Run the development server: pnpm dev

Join our community

Join the Trench community in Discord if you need support or have anything you'd like to ask. We'd love to chat!

trench's People

Contributors

legitmaxwu avatar micwu562 avatar xboxue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

trench's Issues

getting started locally -- `pnpm bulid` fails, so does `docker-compose up`

Trench sounds interesting. Thanks for your working on it!

In trying to run it locally, I've run into a couple of snags.

Cloned the repo and ran pnpm install at the root. Then tried each of pnpm dev, pnpm build and docker-compose up.

First ran into some type errors in fetchGithubData.ts:
image

I've opened a PR for fixing above type errors. But even after fixing those, pnpm dev kept failing; and I figured this was likely because prisma-related build steps weren't run. So I gave pnpm build a shot; but that too failed. There seem to be complaints about stuff in Sha1.ts:
image

However, the code editor isn't complaining about Sha1.ts at all. I'm looking around, but I'm not entirely sure why the build phase complains about this. Any pointers?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.