frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Open-Source Solana Trading Lib with 15 DEX Support and MEV Protection

https://github.com/FlorianMgs/solana-trade
1•madgik•1h ago
Hi HN!

I've been building trading bots on Solana for a while now, and I kept running into the same problem: every DEX has its own SDK, API quirks, and integration complexity. You'd spend days just to support all Raydium pools, then more days for Meteora pools, then even more for the new launchpads like Heaven, Sugar, Boop etc. Each one required different approaches for pool discovery, slippage handling, and transaction building.

Some of you might ask, why not using Jupiter? Well, they decided to close source their binary and make it paid 5-10k/mo, which a lot of solo devs can't handle...

So I built solana-trade - a unified library that handles all of this complexity behind a single, clean API. You can trade on like 15 different DEXs & launchpads (Pump.fun, Pump Swap, Raydium AMM/CLMM/CPMM, Orca Whirlpools, Meteora DLMM/DAMM, and many others) with the same function calls.

The architecture is modular - each DEX gets its own client that implements a common interface. The main SolanaTrade class handles provider selection, transaction building, and routing. It's all built in Typescript.

A key feature is the MEV protection integration. Rather than just supporting standard RPC, it can route transactions through Jito, Nozomi, or Astralane based on tip amounts and availability. The library automatically selects the best provider or lets you specify one explicitly.

The transaction building is fairly sophisticated - it handles compute budget optimization, priority fees, automatic pool discovery with caching, and includes a 0.15% development fee on buys (which can be disabled). Everything is designed to be production-ready rather than just a proof of concept.

I also built a CLI interface that wraps the programmatic API. You can install it globally with npm and start trading from the command line immediately, which has been useful for quick testing and automation scripts.

The technical challenge was mostly around the inconsistencies between DEX SDKs. Some use different slippage formats, others have different ways of specifying pools, and the transaction instruction building varies significantly. I ended up creating adapter patterns for each one while maintaining a consistent external interface.

It's published on NPM as "solana-trade" so you can try it right away. The CLI works out of the box for basic trading, and the programmatic API handles more complex scenarios like getting unsigned transactions for manual processing.

I'm particularly interested in feedback, and curious if there are other DEXs or features that would be valuable to add. The codebase is MIT licensed and I'd welcome contributions, especially from teams running other DEXs who might want to integrate their protocols.

NPM: https://www.npmjs.com/package/solana-trade

GitHub: https://github.com/FlorianMgs/solana-trade

API/ABI changes review for glibc

https://abi-laboratory.pro/index.php?view=timeline&l=glibc
1•fanf2•1m ago•0 comments

`esbuild` plugin for dependency license compliance

https://github.com/carlos-menezes/esbuild-license-compliance-plugin
1•carlos-menezes•4m ago•0 comments

Show HN: VittoriaDB – Zero-config embedded vector DB with HNSW and ACID storage

https://github.com/antonellof/VittoriaDB
1•antonellof•5m ago•0 comments

Improve Site Speed

https://adiantmedical.ro/
1•divialex•5m ago•1 comments

French platform combines carpooling with cross-border price arbitrage in the EU

https://www.karlsnotes.com/new-french-platform-combines-carpooling-with-cross-border-price-arbitr...
1•valkrieco•8m ago•0 comments

Game Boy Competition 2025

https://itch.io/jam/gbcompo25/entries
1•msk-lywenn•16m ago•0 comments

Creating Android apps on Android itself with Python

https://www.anvpy.org
1•ankitg12•22m ago•0 comments

Mozilla Firefox Is Officially Getting MKV Video Support

https://windowsreport.com/mozilla-firefox-is-officially-getting-mkv-video-support/
1•thunderbong•23m ago•0 comments

Show HN: GitHub repo with 180 tools for investing

https://github.com/Jera-Value/awesome-investing-tools-and-software-directory
1•jera_value•28m ago•0 comments

Show HN: Vue-Markdown-render – up to 100× faster streaming Markdown for Vue 3

https://github.com/Simon-He95/vue-markdown-render
2•simon_he•29m ago•0 comments

Simon Peyton Jones: Pursuing a Trick a Long Way, Just to See Where It Goes [video]

https://www.youtube.com/watch?v=Ow55c-m-_Ak
1•matt_d•31m ago•0 comments

Logfire – OpenTelemetry based tracing SaaS

https://pydantic.dev/logfire
1•RebootStr•31m ago•0 comments

POML (Prompt Orchestration Markup Language)

https://microsoft.github.io/poml/0.0.8/
1•pykello•36m ago•0 comments

A web-based SQLite database editor written in Go

https://github.com/ronreiter/sqliter
1•ronreiter•36m ago•0 comments

Zero-Day AI: When Autonomous Agents Turn Vulnerabilities into Ammunition

https://comuniq.xyz/post?t=319
1•01-_-•38m ago•0 comments

Trump's Hyundai Raid Drains U.S. Battery Brains

https://foreignpolicy.com/2025/09/12/hyundai-raid-immigration-us-battery-manufacturing-south-kore...
2•01-_-•40m ago•0 comments

Best times to share to Hacker News according to Claude

https://simonhartcher.com/posts/2025-09-10-best-times-to-post-on-hacker-news-according-to-claude/
1•deevus•42m ago•1 comments

Manage all your email accounts in one app – Free and Hassle-Free

https://freeter.io/blog/manage-all-your-email-accounts-in-one-app-free-and-hassle-free/
1•AlexKaul•46m ago•0 comments

New technology could make oceans transparent and submarines vulnerable

https://www.theguardian.com/australia-news/2025/sep/14/aukus-australian-submarines-vulnerable-new...
1•sandebert•52m ago•0 comments

Why Most LLM Chatbots Never Make It to Production

https://humansignal.com/blog/why-most-llm-chatbots-never-make-it-to-production/
1•ReDeiPirati•52m ago•0 comments

Show HN: Free QR Code Generator – Minimal, Fast, with Batch Support

https://qrcode-generator-gamma-brown.vercel.app/
1•zh7788•1h ago•1 comments

A Man Who Makes Jane Austen Come Alive on Screen

https://www.nytimes.com/2025/09/06/books/andrew-davies-jane-austen-tv.html
1•bryanrasmussen•1h ago•0 comments

Administration to award a no-bid contract on research into vaccines and autism

https://www.independent.co.uk/news/donald-trump-new-york-scientists-troy-cdc-b2825709.html
1•iamflimflam1•1h ago•1 comments

Can Your GrimDark Beat the Germans

https://medium.com/luminasticity/can-your-grimdark-beat-the-germans-429f3e6fc4df
1•bryanrasmussen•1h ago•0 comments

The Many Broken Feeds

https://notes.abhinavsarkar.net/2025/broken-feeds
5•todsacerdoti•1h ago•0 comments

Has Cursor started training models on private user data?

https://cursor.com/en/blog/tab-rl
3•jg2007•1h ago•3 comments

Show HN: Countdown Builder – Create Custom Countdown Timers for Email Campaigns

https://countdownbuilder.com/
1•mehedimi•1h ago•0 comments

TelWeb: Telnet-based Markdown browser written in Rust

https://github.com/classx/telweb
3•classx•1h ago•0 comments

Show HN: Open-Source Solana Trading Lib with 15 DEX Support and MEV Protection

https://github.com/FlorianMgs/solana-trade
1•madgik•1h ago•0 comments

Models of European Metro Stations

http://stations.albertguillaumes.cat/
91•tcumulus•1h ago•11 comments