frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I built a Python obfuscator that keeps production traces debuggable

https://github.com/zhurong2020/pyobfus
2•znhskzj•5h ago

Comments

znhskzj•4h ago
There’s one often-overlooked issue with code obfuscation: once class and function names are changed to `I0`, `I1`, and so on, it becomes difficult for outsiders to read the code directly. But even the production error messages that developers themselves receive may lose their meaning, and tools like Claude Code and Cursor have no way of knowing what these names originally represented.

This is precisely what motivated me to create https://github.com/zhurong2020/pyobfus.

It is a Python AST-based code obfuscator. The Community Edition is licensed under Apache -2.0 and supports framework presets for FastAPI, Django, Flask, Pydantic, Click, and SQLAlchemy, as well as a stable JSON CLI and MCP server.

Pyobfus does not compromise obfuscation; instead, it keeps “readability” on the developer’s local machine. During the build, use `--save-mapping mapping.json`, which saves the mapping between the original identifiers and the obfuscated names; in production, only the obfuscated code runs, and external observers still see names like I0 and I1. When error logs come back from production, developers can use `--unmap` and this `mapping.json` file to restore the traceback locally: `pyobfus --unmap --trace error.log --mapping mapping.json`. The resulting stack trace will display the original class and function names, which developers can understand, and AI coding tools like Claude Code and Cursor can also make sense of it with the source code semantics. The key point is that `mapping.json` is not distributed with the code; it is kept only by the developer. Production builds remain obfuscated, while the debugging entry point remains on the local machine.

Show HN: I worked on a new browser for 2 years, today it passed Acid 3

https://code.intellios.ai/cwbrowser/
109•coolwulf•9h ago•34 comments

Show HN: What should the GUI for AI agents look like?

https://marbleos.com/demo
111•akbabu•1d ago•65 comments

Show HN: BitBang – Reach machines behind NAT from a browser, no account

https://github.com/richlegrand/bitbang-cli
77•narragansett•16h ago•25 comments

Show HN: Gander, an Android file viewer that asks for no permissions

https://github.com/mokshablr/gander
200•mokshablr•1d ago•69 comments

Show HN: How to build and self-host a code review agent

https://www.trytilde.ai/blog/how-to-build-code-review-agent
25•solsol94•10h ago•4 comments

Show HN: Distilling DeepSeek into GPT-OSS doesn't transfer censorship. Try it

https://www.ctgt.ai/research/distillation-censorship-transfer
165•cgorlla•1d ago•72 comments

Show HN: SmokeVPN – All-in-One WireGuard VPN Hub – Switch Exits in Realtime

https://smokevpn.com
5•lobito25•6h ago•2 comments

Show HN: Open source React Native debugging studio

https://www.nativescope.dev
3•guigg•4h ago•1 comments

Show HN: Kedge – Full-stack cloud with forkable VM snapshots and global SQLite

https://kedge.dev/
132•wgjordan•2d ago•25 comments

Show HN: Slope remade in HTML5 to load instantly on any browser, any device

https://hurtle.site/
33•novlrdotcom•13h ago•19 comments

Show HN: Random OS I made using C

https://github.com/NoTheIdiot/WindogeOS
4•notheidiot•4h ago•1 comments

Show HN: I built a Python obfuscator that keeps production traces debuggable

https://github.com/zhurong2020/pyobfus
2•znhskzj•5h ago•1 comments

Show HN: Sanitizer – Strip sensitive data from documents locally before an LLM

https://provexar.ai/sanitizer
2•MVKozyrev•5h ago•0 comments

Show HN: WhisperKeys - Offline macOS dictation, key-by-key

https://github.com/j-sofia/WhisperKeys
2•j-sofia•5h ago•1 comments

Show HN: I built a cross-browser extension that controls fingerprinting surfaces

https://privacything.com/en/
19•tomaszjanusz•16h ago•10 comments

Show HN: Chronos, 2 terminal games through 50 years of hacking history

https://www.chronos-game.com/
12•xav77•13h ago•4 comments

Show HN: The Goal is simple, there should be an actual free editor

https://sylixide.com
16•Sai-09•13h ago•7 comments

Show HN: Open-source engine running Gemma 4 26B in 2 GB RAM on any M-series Mac

https://github.com/drumih/turbo-fieldfare
901•gitpusher42•2d ago•336 comments

Show HN: I made a game where you build a CPU from logic gates

https://select.supply/game/chipbuilder
93•laurentiurad•1d ago•67 comments

Show HN: GAI – A Go runtime for typed, tool-using LLM agents

https://github.com/lace-ai/gai
3•samuel_kx0•8h ago•0 comments

Show HN: A little physical breakout clone

https://brontosaurusrex.github.io/physical/v7/
8•brontosaurusrex•16h ago•2 comments

Show HN: Claude-account – switch Claude Code accounts without logging in again

https://github.com/hamzarehmandeveloper/claude-account
54•hamza_rehman•1d ago•29 comments

Show HN: Offline Flock Navigation

https://trames.karazajac.io
2•arkwin•10h ago•0 comments

Show HN: CheapFoodMap – A map of good meals under $10

https://cheapfoodmap.com/
280•jaep1•2d ago•250 comments

Show HN: Qwen Scribe – local transcription and dictation for Apple Silicon

https://github.com/VladUZH/qwen-scribe
94•sidclaw•2d ago•21 comments

Show HN: Noisegate – a differential-privacy gateway for untrusted AI agents

https://github.com/yashmahajan10/llm-differential-privacy-gateway
19•yashmahajan10•1d ago•0 comments

Show HN: A Handwritten Blogging Platform

https://handwritten.blog/
9•emilesilvis•1d ago•5 comments

Show HN: An Unexpected Computer – Universal computing: echo, ed, test and exec [pdf]

https://seriot.ch/resources/unexpected_computer_pagedout_009.pdf
3•beefburger•12h ago•0 comments

Show HN: Usbatlas – simple CLI utility to see what USBIP devices are attached

https://github.com/comalice/usbatlas
2•all2•12h ago•0 comments

Show HN: A Back End You Can Call Directly from React – No API Required

https://linkedrecords.com/getting-started/
3•WolfOliver•12h ago•0 comments