graph-vl
Identity document verification using Machine Learning and GraphQL.
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:
- Create a user and fill in their personal information
- Upload a selfie of that user
- Photograph the front of the ID card or passport and upload it
- 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 inrequirements.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
Discover more
DOCAT
Host your docs. Simple. Versioned. Fancy.
Infisical Community Edition
Infisical is the open-source platform for secrets, certificates, and privileged access management.
LubeLogger
Web-based vehicle maintenance and fuel mileage tracker.
Mirumoji
An open-source, self-hosted Japanese Immersion Toolkit
Speedtest Tracker
Monitor the performance and uptime of your internet connection.
Wishlist
Wishlist is a self-hosted wishlist application that you can share with your friends and family. You no longer have to wonder what to get your family for the holidays, simply check their wishlist and claim any available item!