Open Source

Building the Future of Legal Tech, Together

At LexMata, we believe in the power of open source software. We're committed to contributing back to the developer community by sharing tools and libraries that we've built to solve real-world challenges in legal document processing.

Decorative wave pattern

Our Open Source Projects

Explore the tools we've open-sourced to help developers build better legal technology applications.

nestjs-multi-tenancy

TypeScript MIT License 2 npm
View on GitHub

A flexible, production-ready NestJS module for building multi-tenant SaaS applications. Supports multiple tenant identification strategies including headers, subdomains, JWT claims, and custom extractors with seamless AsyncLocalStorage-based context management. Perfect for building scalable legal tech platforms that serve multiple law firms.

# Install via npm or pnpm
$ pnpm add @lexmata/nestjs-multi-tenant

Key Features

Multiple extraction strategies (header, subdomain, JWT, cookie, path)
AsyncLocalStorage-based tenant context
Built-in tenant resolver caching
Lifecycle event hooks for monitoring
Tenant validation support
Route exclusion patterns
Full TypeScript support
Comprehensive test coverage with Vitest

github-projects-mcp

TypeScript MIT License
View on GitHub

A Model Context Protocol (MCP) server that enables AI assistants to interact with GitHub Projects V2. Seamlessly integrate GitHub project management into AI workflows for automated issue tracking, project board management, and sprint planning in legal technology development.

Key Features

Full GitHub Projects V2 API integration
Create and manage project items
Update project fields and status
Query and filter project data
MCP-compliant server implementation
Works with Claude, Cursor, and other MCP clients

bitbucket-mcp

TypeScript MIT License
View on GitHub

A Model Context Protocol (MCP) server for Bitbucket Cloud integration. Enables AI assistants to interact with Bitbucket repositories, pull requests, and pipelines. Essential for teams using Bitbucket for version control in their legal tech development workflows.

Key Features

Repository management and browsing
Pull request creation and review
Pipeline status and management
Code search and file operations
MCP-compliant server implementation
OAuth 2.0 authentication support

micropdf

Rust MIT License
View on Bitbucket

A high-performance, lightweight PDF processing library written in Rust with bindings for Go, Node.js, Deno, Bun, and Python. MicroPDF provides essential PDF manipulation capabilities with minimal dependencies, optimized for server-side document processing workflows common in legal technology applications.

Key Features

High-performance Rust core
Go, Node.js, Deno, Bun & Python bindings
Lightweight and fast PDF parsing
Page extraction and manipulation
Text extraction from PDF documents
PDF merging and splitting
Minimal external dependencies
Cross-platform support

Why We Open Source

Community First

We believe the best software is built collaboratively. By sharing our tools, we invite developers worldwide to improve and extend them.

Transparency

Open source means you can see exactly how our tools work. No black boxes, just well-documented, auditable code.

Giving Back

LexMata is built on open source technologies. Contributing our own tools is our way of giving back to the community that makes our work possible.

# Install nestjs-multi-tenancy
$ pnpm add @lexmata/nestjs-multi-tenant
# Build micropdf Rust core
$ cd micropdf/micropdf-rs && cargo build --release
# Use Go bindings
$ go get bitbucket.org/lexmata/micropdf/go-micropdf

Want to contribute?

We welcome contributions from the community. Check out our repositories, submit issues, or create pull requests.

Decorative wave pattern