Top stories from https://news.ycombinator.com (with 100+ score) Contribute to the development here: https://github.com/phil-r/hackernewsbot Also check https://t.me/designer_news Contacts: @philr
Launch HN: CodeViz (YC S24) – Visual maps of your codebase in VS Code (Score: 151+ in 18 hours)
Link: https://readhacker.news/c/6dHsU
Hey HN — we’re Liam and Will from CodeViz (https://codeviz.ai). We're building a VS Code extension that generates interactive diagrams of codebases, from system architecture down to function call graphs. Here’s a demo where we analyze OpenHands, uv, and webviz: https://www.youtube.com/watch?v=fgfDXUtWzRk.
The extension is public if you want to try it on your own repos: https://marketplace.visualstudio.com/items?itemName=CodeViz....
Will and I started CodeViz because we wanted more intuitive representations of software. During our time at Tesla, we encountered a common problem: software engineers spend very little time actually typing code. Most development time was spent navigating convoluted files and building a mental map for each task. At the same time, whiteboard sessions were proof that code could be expressed intuitively.
We started with autogenerated technical documentation. Of course, long markdown docs are not a good solution for long files of code. We realized we needed diagrams that (a) help grasp large quantities of code and (b) can be filtered according to the developer’s task. So, we built a graph-based VS Code extension. It generates diagrams directly within VS Code, illustrating connections between functions and providing overviews of system architecture. These visualizations update as code changes.
CodeViz appears as a side panel in VS Code with two views:
(1) Call graph: as you click on functions, we show a chain of upstream and downstream references. You can navigate your codebase using the call stack and see, in one view, everywhere your functions are called. We generate this call graph using the language servers developers have already installed in VS Code
(2) Architecture diagram: we create a C4 diagram of your system, so you can see a top-level view of your codebase and click into the component layer. We were surprised to find that a small fraction of code can generate a very accurate representation of the system. We detect these important files, then use LLMs to build nested architecture diagrams at the container and component level
Developers are mainly using our extension to navigate spaghetti code, onboard new devs, and interpret open source repos. We're still figuring out our pricing. Currently, we offer basic features for free, with a paid tier for more resource-intensive tools like detailed architecture diagrams. Open to suggestions on this approach.
CodeViz is in active development and our main focus over the next couple of days is to make the call graph much easier to view and navigate. We're continuously working to make it better, so your honest feedback, suggestions, and wishes would be very helpful. Looking forward to hearing any and all thoughts, whether about the current extension, general problem space, or something else!
SDL3 new GPU API merged (Score: 153+ in 9 hours)
Link: https://readhacker.news/s/6dJkW
Comments: https://readhacker.news/c/6dJkW
Anthropic's Prompt Engineering Interactive Tutorial (Score: 151+ in 5 hours)
Link: https://readhacker.news/s/6dJeT
Comments: https://readhacker.news/c/6dJeT
Rescuing songs that record labels forgot existed (❄️ Score: 150+ in 4 days)
Link: https://readhacker.news/s/6dtky
Comments: https://readhacker.news/c/6dtky
The secret inside One Million Checkboxes (🔥 Score: 160+ in 1 hour)
Link: https://readhacker.news/s/6dJ5P
Comments: https://readhacker.news/c/6dJ5P
Raspberry Pi Pico does line rate 100M Ethernet (Score: 152+ in 6 hours)
Link: https://readhacker.news/s/6dGVG
Comments: https://readhacker.news/c/6dGVG
Dawn of a new era in Search: Balancing innovation, competition, and public good (🔥 Score: 150+ in 3 hours)
Link: https://readhacker.news/s/6dHtd
Comments: https://readhacker.news/c/6dHtd
Can solar costs keep shrinking? (Score: 150+ in 6 hours)
Link: https://readhacker.news/s/6dGCW
Comments: https://readhacker.news/c/6dGCW
Computer scientists prove that heat destroys quantum entanglement (Score: 150+ in 12 hours)
Link: https://readhacker.news/s/6dFPg
Comments: https://readhacker.news/c/6dFPg
GNU Screen 5.0 Released (Score: 153+ in 5 hours)
Link: https://readhacker.news/s/6dGEZ
Comments: https://readhacker.news/c/6dGEZ
Docusaurus – Build optimized websites quickly, focus on your content (Score: 150+ in 11 hours)
Link: https://readhacker.news/s/6dFG4
Comments: https://readhacker.news/c/6dFG4
Farewell Pandas, and thanks for all the fish (Score: 150+ in 6 hours)
Link: https://readhacker.news/s/6dGhG
Comments: https://readhacker.news/c/6dGhG
Threads Enables Fediverse Replies (Score: 150+ in 4 hours)
Link: https://readhacker.news/s/6dGr5
Comments: https://readhacker.news/c/6dGr5
Show HN: Low Cost Mini PCs (🔥 Score: 151+ in 1 hour)
Link: https://readhacker.news/s/6dGjV
Comments: https://readhacker.news/c/6dGjV
While searching for mini PCs for my home server, I figured I'd use the eBay API to find the cheapest ones. Inspired by diskprices.com, I built a static site using Eleventy and a python script that uses regex to parse the data. I tried to include as many filters as possible like OS, Wifi, HDMI etc.
I would like to add power usage, noise levels, PCIe slots but that data is hard to find.
Please let me know if you have any feedback / suggestions.
Thanks!
UK rail minister got engineer sacked for raising safety concerns (🔥 Score: 153+ in 2 hours)
Link: https://readhacker.news/s/6dFZi
Comments: https://readhacker.news/c/6dFZi
Show HN: A discovery-focused search engine for Hacker News (Score: 150+ in 16 hours)
Link: https://readhacker.news/s/6dHiP
Comments: https://readhacker.news/c/6dHiP
We (Nick, Dens, Denzell, Fede, Drew, Aaryan, and Daniel) have been building HN Discovery, a discovery-focused search engine for Hacker News, in our spare time for the past 6 months and are excited to show it! It adds the following features relative to the existing keyword search interface and preserves the existing ones:
- no-JS version (hnnojs.trieve.ai)
- site:{required_site} and site:{negated-site} filters
- public analytics
- LLM generated query suggestions based on random stories
- recommendations
- dense vector semantic search
- SPLADE fulltext search
- RAG AI chat
- order by descendant count
client code (FOSS self-hostable) - https://github.com/devflowinc/trieve-hn-discovery
engine code (BSL source-available) - https://github.com/devflowinc/trieve
There is an extended about page with detailed information on features, how much it costs to run, etc. here - https://hn.trieve.ai/about.
How I learned to stop worrying and love userspace networking (Score: 150+ in 17 hours)
Link: https://readhacker.news/s/6dGuw
Comments: https://readhacker.news/c/6dGuw
Update on Llama adoption (Score: 150+ in 11 hours)
Link: https://readhacker.news/s/6dGKM
Comments: https://readhacker.news/c/6dGKM
Web Design Museum (Score: 151+ in 11 hours)
Link: https://readhacker.news/s/6dGeL
Comments: https://readhacker.news/c/6dGeL
Show HN: An open-source, local-first Webflow for your own app (Score: 153+ in 9 hours)
Link: https://readhacker.news/s/6dGvb
Comments: https://readhacker.news/c/6dGvb
Hey HN, I’m Kiet, and I’m one of the co-founders of Onlook – an open-sourced desktop app that lets you visually edit your locally running React app, then write your changes back to code in real time.
I posted the repo a few months ago [1] when it was just 2 weeks old. Since then, we’ve made some big changes/improvements. I wanted to share some of the updates we’ve made and add more technical details. Here are the three big ones:
• Inserting new elements - Draw elements in the live page like a design tool and write them back to code.
• Component detection - Detect when an element is a re-used component and find its usages.
• DOM tree representation - A layers panel similar to the Chrome devtool or Figma.
Technical details [2]:
Visual editing - Onlook is technically a browser that points to your localhost running the app. It can manipulate the DOM like a Chrome Devtool, and all these changes are injected into the page through a CSS stylesheet or DOM manipulation. The changes are non-persistent until written to code.
Write to code - To translate the changes to code, we inject an attribute into the DOM elements at build-time that points back to the code like a source map. The attribute gives us the location of the code block, and the component scope [3]. We then find the code, parse it into an AST, inject the styles, and write it back.
Framework support - This technique is framework agnostic as we can swap in a different compiler for another framework [4]. It can work for any codebase as we’re just using open standards that don’t require any custom code. The code generated is written directly into your codebase, locally, so you can always take the output without being locked-in to the tool.
Actions - All the changes made are stored as actions. This allows them to be serialized, stored, and reproduced. We did it this way so eventually, we can introduce online collaboration or let an agent generate actions. To do this, we’d just need to serve the locally running page and resolve incoming actions.
What’s next?
It’s still a bit bare-bones but the support and suggestions from the HN and open-source communities have helped us a lot with our direction. Now that we’ve built the core engine, we can start doing some cooler visual builder features, fulfilling the “Webflow” part of our mission such as [5]:
• Detecting CSS variables in the page and letting you use them as “design tokens” in the UI.
• Duplicating a page and A/B testing designs before committing to code.
• Creating new components directly in the canvas.
• Creating a front-end project from scratch using Onlook.
Some things we’re considering, but aren’t sure about yet:
• Offer hosting directly from the app.
• Collaboration such as real-time edits, comments, and share page as a prototype.
I’d love to hear your thoughts/feedback. This project continues to be a blast to work on and the community response has been awesome. Thank you to everyone who has tried out and contributed to the repo :)
_________
[1] https://news.ycombinator.com/item?id=40904862
[2] https://github.com/onlook-dev/onlook/wiki/Architecture
[3] The attribute looks something like this:
data-onlook-id="eJxNjUEKwzAMBP+ic6gOKT3k2i+kDzC2aEwcKVgyDQT/vU5pS067sMvMDl6WVZjYYIC7y2GMlgg6IA6je8LAJaUOVmdTO+BDKSvOkWwSfEme1+Q8oXASmVGthCgYaBFFps3wT1csEX3jX0y3hldz2T6C/VAd4SWVhWG4dpAiUyt9/R7Pc/+b+1ut9Q33rUM5"
{"component":"Dashboard","endTag":{"end":{"column":10,"line":620},"start":{"column":5,"line":620}},"path":"/Users/kietho/workplace/onlook/studio/demos/next/components/dashboard.tsx","startTag":{"end":{"column":67,"line":69},"start":{"column":5,"line":69}}}
Elasticsearch is open source, again (🔥 Score: 159+ in 1 hour)
Link: https://readhacker.news/s/6dHSP
Comments: https://readhacker.news/c/6dHSP
Deterministic Replay of QEMU Emulation (Score: 150+ in 1 day)
Link: https://readhacker.news/s/6dCCx
Comments: https://readhacker.news/c/6dCCx
Judge rules $400M algorithmic system illegally denied Medicaid benefits (🔥 Score: 153+ in 2 hours)
Link: https://readhacker.news/s/6dHmN
Comments: https://readhacker.news/c/6dHmN
Chrome is entrenching third-party cookies that will mislead users (Score: 156+ in 5 hours)
Link: https://readhacker.news/s/6dGNn
Comments: https://readhacker.news/c/6dGNn
Judges rule Big Tech's free ride on Section 230 is over (🔥 Score: 151+ in 3 hours)
Link: https://readhacker.news/s/6dGWw
Comments: https://readhacker.news/c/6dGWw
New 2GB Raspberry Pi 5 has 33% smaller die, 30% idle power savings (🔥 Score: 151+ in 2 hours)
Link: https://readhacker.news/s/6dH3q
Comments: https://readhacker.news/c/6dH3q
Bypassing airport security via SQL injection (🔥 Score: 165+ in 1 hour)
Link: https://readhacker.news/s/6dH3a
Comments: https://readhacker.news/c/6dH3a
Show HN: Homemade Automated Solar Concentrator (Score: 153+ in 6 hours)
Link: https://readhacker.news/s/6dG6s
Comments: https://readhacker.news/c/6dG6s
Hi HN!
I quit my job two years ago to have more time to work on my side projects.
The main one is an automated solar concentrator.
I've just open-sourced it, it's not perfect nor finished, and I still have a lot of ideas for further development, but I'm interested in knowing what you think of it.
There are many applications where concentrated solar power could be a viable environmental and economic solution, I hope this technology will one day be more widely used.
Feel free to give any feedback and ask questions.
OpenAI is shockingly good at unminifying code (🔥 Score: 150+ in 2 hours)
Link: https://readhacker.news/s/6dG6B
Comments: https://readhacker.news/c/6dG6B
Nuclear reactors a mile underground promise safe, cheap power (Score: 150+ in 1 day)
Link: https://readhacker.news/s/6dyQn
Comments: https://readhacker.news/c/6dyQn