head to head · open source

MadelineProto vs Trench

MadelineProto has 3,551 GitHub stars, 931 forks, 75 open issues and last shipped yesterday. Trench has 1,666 stars, 66 forks, 3 open issues and last shipped 7 months ago. MadelineProto leads on adoption by 113% (3,551 vs 1,666 stars). MadelineProto is written in PHP under AGPL-3.0; Trench is written in TypeScript under MIT. MadelineProto has attracted 26% as many forks as stars, Trench 4%. MadelineProto was the more recently maintained of the two, and both are self-hostable with no licence fee.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

MadelineProto ★ 3.6K Trench ★ 1.7K category Infrastructure & Operations

← all 20902 open source comparisons

Side by side

MadelineProto Trench
GitHub stars ★ 3.6K ★ 1.7K
License AGPL-3.0 MIT
Written in PHP TypeScript
Last push 2026-11-02 2026-04-06
Forks ⑂ 931 ⑂ 66
Self-hosting Yes Yes
Data ownership Your server Your server

pick MadelineProto if

  • You weight community size — 3.6K stars and counting
  • You want the AGPL-3.0 license terms
  • Your stack matches PHP
  • You value the larger contributor base for long-term maintenance

full MadelineProto profile →

pick Trench if

  • You want the Trench feature set and don't need the biggest community
  • You prefer the MIT license terms
  • Your stack matches TypeScript
  • You evaluated both and Trench fits your workflow better

full Trench profile →

About MadelineProto

MadelineProto, a PHP MTProto telegram client Created by Daniil Gentili StandWithUkraine 🇺🇦 Do join the official channel, @MadelineProto and the support groups! Approved by Telegram! What's this? This library can be used to easily interact with Telegram without the bot API, just like the official apps. It can login with a phone number (MTProto API), or with a bot token (MTProto API, no bot API involved! ). It is now fully async! Getting started (now fully async!) Try running this code in a browser or in a console! Tip: if you receive an error (or nothing), send us the error message and the MadelineProto.log…

read the full MadelineProto overview →

About Trench

Open Source Analytics Infrastructure Documentation · Website · Slack Community · Demo 🌊 What is Trench? Trench is an event tracking system built on top of Apache Kafka and ClickHouse. It can handle large event volumes and provides real time analytics. Trench is no cookie, GDPR, and PECR compliant. Users have full control to access, rectify, or delete their data. Our team built Trench to scale up the real time event tracking pipeline at Frigade . ⭐ Features 🤝 Compliant with the Segment API (Track, Group, Identify) 🐳 Deploy quickly with a single production ready Docker image 💻 Process thousands of events per…

read the full Trench overview →

More in Infrastructure & Operations

Related comparisons

More Messaging & Event Streaming projects

Compare either of these against the rest of the Messaging & Event Streaming field.

Frequently asked questions

Is MadelineProto or Trench more popular?

MadelineProto has 3,551 GitHub stars and Trench has 1,666. MadelineProto has the larger community by that measure.

Are MadelineProto and Trench free?

Both are open source. MadelineProto is licensed under AGPL-3.0 and Trench under MIT. Neither carries a licence fee.

What is the difference between MadelineProto and Trench?

MadelineProto is written in PHP and Trench in TypeScript. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, MadelineProto or Trench?

Choose MadelineProto if you want the larger community (3,551 stars) or its AGPL-3.0 licence terms. Choose Trench if its feature set, stack or MIT licence fits better. Both are self-hostable.