frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

LynxEye – A fast code complexity analyzer built with Rust and Tree-sitter

https://github.com/yzzting/LynxEye
1•yzzTing•1h ago

Comments

yzzTing•1h ago
I built a command-line tool for analyzing code complexity, similar to Lizard but written in Rust for better performance.

GitHub: https://github.com/yzzting/LynxEye Crates.io: https://crates.io/crates/lynx_eye

What it does LynxEye performs function-level static analysis on JavaScript and TypeScript codebases. It extracts metrics that help identify functions that might need refactoring:

NLOC – Non-commenting lines of code CCN – Cyclomatic complexity (number of independent paths) Token count – Syntactic unit count Parameter count Complexity score – A weighted composite score (0-100) Quick example bash $ lynx_eye src/

+------+-----+-------+-------+-------+------------------+------+-------------+ | NLOC | CCN | Token | Param | Score | Function | Line | File | +======+====================================================================+ | 45 | 12 | 320 | 4 | 72.3 | processUserData | 89 | handler.ts | | 28 | 8 | 195 | 3 | 54.1 | validateInput | 156 | validator.ts| | 7 | 2 | 30 | 1 | 24.4 | calculateTotal | 1 | utils.js | +------+-----+-------+-------+-------+------------------+------+-------------+

Why I built this I was using Lizard (Python) at work but found it slow on large TypeScript monorepos. Rust + tree-sitter seemed like a natural fit for parsing code quickly.

The complexity score formula weights CCN highest (50%), since high cyclomatic complexity is usually the strongest signal that a function needs attention:

Score = 0.5·CCN_norm + 0.3·NLOC_norm + 0.2·Density_norm

Features Fast – Parses thousands of files in seconds Multiple output formats – Table (default), JSON, CSV Filtering – --min-score 50, --min-ccn 10, etc. Recursive directory scanning – -r flag File output – --output results.json Installation bash cargo install lynx_eye

What's next Add support for more languages (Python, Go, Rust) IDE integration (VS Code extension) Trend tracking over git history Would love feedback on the metrics, scoring formula, or any features you'd find useful. PRs welcome!

Archive.org Is Down

https://www.archive.org
1•RcouF1uZ4gsC•16s ago•0 comments

Don't Cheer the End of America's Obesity Crisis Just Yet

https://www.economist.com/graphic-detail/2025/11/17/dont-cheer-the-end-of-americas-obesity-crisis...
1•sarimkx•1m ago•1 comments

Lua 5.5.0 Released

https://lua.org/versions.html#5.5
2•km•2m ago•0 comments

UX systems now optimize faster than users can make meaning

https://www.slideshare.net/slideshow/two-ux-patterns-we-don-t-talk-about-enough/284775816
1•realitydrift•2m ago•0 comments

The internet just made a 300TB copy of Spotify!

https://www.androidauthority.com/spotify-annas-archive-3627023/
1•voxadam•4m ago•0 comments

Ask HN: Favourite Blog Posts of 2025

1•sarimkx•4m ago•0 comments

10 years of personal finances in plain text files

https://sgoel.dev/posts/10-years-of-personal-finances-in-plain-text-files/
1•siddhant•4m ago•0 comments

Why Do A.I. Chatbots Use 'I'

https://www.nytimes.com/2025/12/19/technology/why-do-ai-chatbots-use-i.html
1•elsewhen•5m ago•0 comments

Ask HN: Favourite Books of 2025

1•sarimkx•5m ago•0 comments

Anti-AI Hate? A Defense of AI-Assisted Development

https://meysam.io/blog/whats-with-the-purist-anti-ai-hate/
1•meysamazad•5m ago•0 comments

Ask HN: What are some home office essentials?

1•quantumwoke•6m ago•0 comments

How to migrate your user data from Google Firebase

https://fusionauth.io/blog/how-to-migrate-from-firebase
1•mooreds•10m ago•0 comments

How $24M in new technology is helping beef giant Cargill up its game

https://coloradosun.com/2025/12/22/cargill-meat-processing-is-using-techology-to-up-its-game/
1•mooreds•10m ago•0 comments

Ask HN: What are your Favorite Things? (2025)

1•i5heu•10m ago•0 comments

Japan's H3 suffers second-stage anomaly, QZS-5 satellite lost

https://spacenews.com/japans-h3-suffers-second-stage-anomaly-qzs-5-satellite-lost/
3•1970-01-01•13m ago•0 comments

FTC's Take on Data Clean Rooms: The Hidden Risks and the Path Forward

https://www.integrate.ai/blog/ftc-data-clean-rooms
1•mooreds•13m ago•0 comments

Show HN: Solved the missing native speaker problem

https://www.langtrak.com
1•bijucyborg•14m ago•0 comments

Housing crisis is forcing Americans to choose between affordability and safety

https://theconversation.com/the-housing-crisis-is-forcing-americans-to-choose-between-affordabili...
1•PaulHoule•18m ago•0 comments

Privacy-Preserving Vaccination Checks: A Proof of Concept MPC Deployment with T

https://sine.foundation/library/mpc-vaccination-check
1•todsacerdoti•20m ago•0 comments

Are we framing the AI debate around the wrong problems?

https://www.phoenicianwave.com/bits/imad-atalla-ai-debate-is-missing-the-point.php
2•imadatalla•21m ago•2 comments

Show HN: Skyler – AI email organizer, shut down due to OAuth compliance

https://skylerinbox.com/
2•sanjaykumar584•23m ago•0 comments

One million (small web) screenshots

https://nry.me/posts/2025-10-09/small-web-screenshots/
1•squidhunter•24m ago•0 comments

Context Engineering with Claude Code: Building Smarter AI Workflows

https://tbtki.com/2025/12/21/context-engineering-with-claude-code/
1•nicbvs•24m ago•0 comments

We asked four AI coding agents to rebuild Minesweeper

https://arstechnica.com/ai/2025/12/the-ars-technica-ai-coding-agent-test-minesweeper-edition/
1•mdemare•25m ago•0 comments

A collective fuck-you letter from humanity to 2025

https://worstregards.com/
2•tom8opot8o•25m ago•1 comments

Memory crisis reaches customers: First gaming PCs are sold without DDR5 RAM

https://www.igorslab.de/en/memory-crisis-reaches-the-consumer-market-first-gaming-pcs-sold-withou...
1•speckx•26m ago•0 comments

Land Grab: Israel's Escalating Campaign for Control of the West Bank

https://www.nytimes.com/interactive/2025/12/20/world/middleeast/west-bank-settlements.html
1•linehedonist•29m ago•0 comments

Show HN: WindCtrl – Advanced Variant API for Tailwind CSS

https://github.com/morishxt/windctrl
1•morishxt•29m ago•0 comments

A German Engineer Has Become the First Wheelchair User in Space

https://www.sciencealert.com/a-german-engineer-has-become-the-first-wheelchair-user-in-space
1•ashishgupta2209•29m ago•0 comments

Show HN: I'm 18, I built an AI tool for traders from scratch

https://new-frontend-4ake.vercel.app/
1•RobertManegabe•34m ago•1 comments