Back to services

graph-vl

Identity document verification using Machine Learning and GraphQL.

View alternatives to graph-vl
Suggest edit
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

graph-vl is the identity verification layer of VerifID, built with GraphQL. Alongside VL, it is another core VerifID project, and it is responsible for verifying ID cards and passports. At its heart it is a self-hostable API, and the README says it has 3 main endpoints. The service runs as containers on Docker or Kubernetes, and every endpoint is documented and made interactive through GraphiQL. The project depends on VerifID and other open-source Python modules.

Verification flow

Verifying a person's identity takes just four steps:

  1. Create a user and fill in their personal information
  2. Upload a selfie of that user
  3. Photograph the front of the ID card or passport and upload it
  4. Call the verification endpoint to get the result

Technical architecture

  • API layer: GraphQL, with a GraphiQL browser interface for viewing Queries and Mutations
  • Data storage: PostgreSQL database, with SQLAlchemy as the ORM
  • Database schema: only two tables, with a simple structure
  • Deployment: Docker containers or a Kubernetes cluster
  • License: MIT

Target users

  • Developers and teams who want to add real-name or identity verification (KYC-style workflows) to their own business while keeping the data on their own infrastructure
  • Applications that need to integrate ID document verification through a GraphQL API
  • People researching or experimenting with open-source identity verification solutions

Requirements

  • Python 3.6+
  • PostgreSQL
  • Runtime dependencies are listed in requirements.txt, and test dependencies in requirements.testing.txt

Deployment

Docker

First, start a PostgreSQL container:

docker pull postgres:11.5
docker run --name postgres -e POSTGRES_SERVER=localhost \
    -e POSTGRES_USER=postgres \
    -e POSTGRES_PASSWORD=postgres \
    -e POSTGRES_DB=postgres \
    -d -p 5432:5432 postgres:11.5

Use docker inspect to find the IP of the database container, then build and run graph-vl from the project root:

docker build --build-arg PG_SERVER=${POSTGRES_IP_ADDRESS} \
    --build-arg PG_USER=postgres \
    --build-arg PG_PASSWORD=postgres \
    --build-arg PG_DB=postgres \
    -t graphvl .
docker run --rm -it -d -p 8000:8000 --name graph-vl graphvl:latest

Kubernetes

The repository ships with Deployment and Service configuration files for both PostgreSQL and graph-vl. Using minikube as an example:

eval $(minikube docker-env)
kubectl create -f deployment-postgres.yml
kubectl create -f deployment-graphvl.yml
kubectl create -f service-postgres.yml
kubectl create -f service-graphvl.yml
minikube service graphvl --url

Running locally

After cloning the project, run uvicorn graphvl.main:app. All endpoints are then available at http://127.0.0.1:8000.

Notable features

  • Fully self-hosted, so sensitive data such as ID documents and photos stays under your control
  • Only four steps in the flow, which makes integration easy
  • Provides Docker, docker-compose and Kubernetes configurations
  • Has a CI pipeline and test coverage reporting
  • The project is small (about 68 stars) and is part of the VerifID open-source ecosystem. Before using it in production, it's advisable to evaluate its maintenance status and recognition accuracy