Launch HN: Haystack (YC S24) – Visualize and edit code on an infinite canvas

github.com

328 points by akshaysg 9 months ago

Hi HN, we’re Akshay and Jake from Haystack (https://haystackeditor.com/). Haystack re-imagines the IDE by putting it on a 2D digital whiteboard that automatically draws connections between code as you navigate and edit files. We designed it to match our mental model of how code works – as a graph of connected components. Here’s a demo of what it looks like: https://www.youtube.com/watch?v=5XADctpWNNs. You can download Haystack from https://haystackeditor.com/.

We used to work as software engineers at big companies, and when the explosion in AI code-generation tools started we were really excited about them. They gave us a huge speed boost in our day-to-day work. But something was missing: writing code had become easier, but navigating codebases remained painful. We found that we were spending more time on the latter than the former!

Our vision of Haystack is an IDE that helps you navigate your codebase at speed. You should be able to type a vague description of the code you’re looking for (“Show me the code flow that triggers after we click the submit button”) and immediately see the right result. But we don’t think the traditional split-panel interface is the best fit for this type of rapid navigation. Inspired by the fluidity of design tools like Figma (Akshay used to work there!) and Miro, we realized that the canvas layout is a perfect way to represent and operate on code flows, and a great base for all the AI and collaborative tooling we want to build! This is how Haystack was born.

You might have seen our original Show HN (https://news.ycombinator.com/item?id=41068719) about two months ago. Since then, a ton of our users have told us that they’d love to contribute. We’ve made the decision to make the editor source-available so that folks can make contributions and so that they can examine the code to make sure they can trust it. Our repo is at https://github.com/haystackeditor/haystack-editor.

If you’re wondering why we’re going source-available rather than proper open-source: as a startup, we're going to eventually monetize and it’s too early for us to make the decision on whether going fully open-source is the right move. We want to own the distribution of Haystack until we can better understand the ramifications that open-sourcing would have, and whether it’s sustainable business-wise. We’d love to find a way to make proper open-source work, but it’s a one-way door, so we want to take our time to make sure we’re making an informed decision.

We would love to hear about what you think about having a canvas in your IDE and the role visualizations have to play in software development!

tracyhenry 9 months ago

This has been a great idea for decades. I want Haystack to be successful just like many other attempts. The early execution seems promising. And I suspect there will be many challenges (e.g. when it's hard to figure out caller/callee,, inconsistent UX preferences across developers, etc). Kudos for taking this on!

Btw I've always thought that this is even more powerful when the screen estate is more infinite than a 2D screen (like in a VR headset).

  • akshaysg 9 months ago

    I love the idea of a Haystack VR world! It's a shame that VR software is in a tenuous state due to the biological factors, but I believe it's the future "one day".

    • dangerlibrary 9 months ago

      "In a tenuous state due to the biological factors" is easily the funniest SV euphemism for "can't be used by humans."

      • IgorPartola 9 months ago

        It’s ok after they deliver the MVP there will be a wetware update.

      • akshaysg 9 months ago

        Who knows, one day it may be possible (hopefully without any dystopian updates to human biology)!

        • groby_b 9 months ago

          At this point, that seems dubious - your inner ear is going to go all inner ear on you, no matter what. Unless you get to turn that off, VR is not it.

          • cdchn 9 months ago

            I hope our code-editor-in-VR wouldn't involve flying around like hilarious depictions of "The Gibson" in bad sci-fi movies.

            • groby_b 9 months ago

              Doesn't matter. As long as you use VR to display a virtual 3D environment and you move within it, your inner ear will fight with your vision system if you're moving or not. If the visual system and the accelerometer don't agree, the positioning system throws an exception.

              And, for whatever reason, the human exception handler for that problem is firmly linked to the barf() subroutine ;)

              • cdchn 9 months ago

                Like I said, as long as you're not flying around- moving within it, then your inner ear doesn't care. Turning your head doesn't count. I don't see a need in a code-in-VR system to move like that. And most VR games solve this my having your teleport instead of translate.

                I think the barf routine is because when your brain senses your vestibular system not working it thinks "oops I must be poisoned" and tries to make you throw up.

      • cdchn 9 months ago

        "Fixing our eyeballs is just an engineering problem."

faramarz 9 months ago

Very cool. I imagined my organizations entire codebase being mapped like this and across different frameworks and languages.

I don’t know if I missed this in the video or if it’s not yet possible, but that’s a lot of manual work, so instead of connecting the nodes, give a simple bot to run in the repo folder to automate the visualization.

It’s super cool and I’m adding to my watch list.

If I were you, i’d target enterprise organizations or local municipalities IT groups who are going through or planning their digital transformations. They have a need for way-finding and sense making across legacy and new work.

If you play your cards right, Salesforce will come knocking in under a year. I see a lot of compatibility with their vision and product offerings.

  • matsemann 9 months ago

    I like the concept so far in the video. I just want more, even bigger, more panes, all connected! If it's usable in such a state I don't know, but would be fun to try. Like a UML diagrams of the whole code base with thousands of arrows.

    Ane I can then tell my coworker that the file needing change is in the upper right corners somewhere.

    And git diffs being visual, can just zoom in on the changes here and there.

  • akshaysg 9 months ago

    It automatically adds connections as you traverse through files/symbols. Not super sure if this is what you mean, but we intend to serve the users "flows" based on queries in the natural language e.g. "what happens when you click the subscribe button from the mouse down all the way to the backend".

    • faramarz 9 months ago

      That’s awesome! Generally when I find tools that can improve our work culture and output velocity and quality, I try and get it on front of teams ahead of a an internal hackathon where the cost of on-boarding and prototyping is already factored in. This feels like a good candidate.

  • hansonkd 9 months ago

    that would be interesting if you could "link" across API calls to different services.

    • akshaysg 9 months ago

      Most likely we would either have to get the user to do this (we plan to add this as a feature) or use AI to understand when disconnected code (from the LSP standpoint) is indeed connected.

      This is a top user request though!

hyggetrold 9 months ago

Does this project take any inspiration from Light Table?

Potential feature request - take the visualization beyond 2D. Really complex systems are usually an intricate graph (polite way of saying ball of yarn) and just visualizing in the 2D plane doesn't seem to cut it in my experience.

I would love to have something like concentric spheres of visualization - boundary services on the outer layer, core/domain services in the inner layer.

  • akshaysg 9 months ago

    A lot of people mentioned Light Table, but I didn't know about it until post-launch!

    It's interesting that you mention a more 3D view. We were ideating on this, but it's really hard to get right in a way that the user can understand. This is definitely part of our vision for the future though!

    EDIT: Deleted the bit about my speculation regarding Light Table since it's false.

    • eep_social 9 months ago

      For 3D I’d run a clustering algo across the graph and use the Z axis to background “far” clusters.

      I’m imagining a typical graph might end up looking a bit like this: https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/07... in which case I’d want to have whatever cluster/file/method/object I’m focused on front and center with some visual cues like low-contrast and z-axis perspective that preserves edges to show the “far” clusters that interact with the focal point.

      edit to add: as per usual, naming the clusters automatically might be hard.

      • hyggetrold 9 months ago

        Interesting idea and curious - because when I look at that visualization, the first thing it reminds me of is gource.

        • eep_social 9 months ago

          I had not heard of Gource, and it looks like it’s building its graph based on directory layout rather than code semantics but yep that’s about where I would start!

    • hyggetrold 9 months ago

      Light Table was getting lift and traction but didn't make it. There was a ton of conversation on it back in the day on HN, including great presentations by the creator (who had been a PM on Visual Studio as MSFT!). Definitely check it out.

      There's definitely demand for this tool but it looks like it's hard to get it off the ground. Wishing you the best of luck!

      • throwaway4aday 9 months ago

        someone should revive it as a GUI debugger. doing so would narrow the scope which should cut down on complexity. let people use their own editors and IDEs for making code changes. the focus should be on inspecting state, seeing live updates, allowing you to smoothly change inputs and immediately see the output, plus the usual debugger features like stepping through the program.

  • nine_k 9 months ago

    Not just Light Table from 2010s, but also I would expect that the authors know about Oberon from late 1980s. It also features code on a boundless canvas.

closetkantian 9 months ago

So this is a major side question, but is there a go-to open source infinite canvas? I'm building a card game and I need a multiplayer infinite canvas for it. I'd appreciate any recommendations.

  • akshaysg 9 months ago

    Does tldraw work for you? We use Pixi JS, which comes with graphics as well.

    • closetkantian 9 months ago

      I think the biggest pain point for me is that nothing I've found supports cards that can be "flipped" so that they are face up or face down. I'm not an advanced coder but maybe I'll try to whip something up.

      • closetkantian 9 months ago

        tldraw does look amazing though, thanks.

    • zharknado 9 months ago

      Ooh I see PixiJs can make content available to the screenreader for a11y. That’s always a big question mark for me when people start cramming a content tree into a canvas.

      • akshaysg 9 months ago

        Yes a11y is very important! I do think this creates an HTML element per sprite/graphic, but the slowdown should not be terrible.

    • kevsim 9 months ago

      Last I checked Miro also uses Pixi so that's another quality infinite canvas app.

nicktikhonov 9 months ago

I would try it if it was a VSCode extension. I'd like to use it, but I live inside cursor these days.

  • tmikaeld 9 months ago

    This seems to be a growing issue..

    • pranav7 9 months ago

      cursor + this would be massive!

belowm 9 months ago

Why can't this be an extension? I love the idea and can perfectly imagine this inside a tab of the editor area. This would allow for multiple haystack tabs as well, so switching contexts would be seven easier. Having to install another IDE (even if it is based on vscode) is a bit of a bummer for me. None the less, keep it up!

  • btown 9 months ago

    VS Code extensions are pretty limited - you can override the renderer for an editor tab, but if you want multiple things within a custom interface to be treated as first-class editor tabs by the larger environment (and by the larger extension ecosystem), that's not really possible. Forks are a reasonable step as long as they don't fall behind!

    • slightwinder 9 months ago

      Do you really need a first-class-editor for working directly from the canvas? Wouldn't it be enough to use the canvas just for navigation and show a rendered picture of the code, but open a separate editor (maybe side by side?) for the real work?

      • btown 9 months ago

        My understanding is that Haystack's mission is to explore this design space more fully than others have before, so I think they're making the right decision to be audacious here!

  • akshaysg 9 months ago

    I understand the frustration here! As the other commenter noted, it's quite bit tougher to make Haystack as good in the form of an extension, but we do plan to eventually explore this path!

  • gruelsummer 9 months ago

    Since extensions are limited, a nice workaround imo would be to be able to turn canvas view on/off. I'm going to want to go between the canvas and the standard VSCode view, and so if I can do that within Haystack I don't need to have both installed.

jecel 9 months ago

This reminds me of the "Kansas" environment in the Self programming language. Here is a video about it from Sun in 1995:

https://www.youtube.com/watch?v=Ox5P7QyL774

More interesting search features were added after this video was made.

theideaofcoffee 9 months ago

Oh, this is great. And pretty much the process of what I do when I look at larger codebases, except not as clean and organized. I would normally have a half dozen terminals open into various source files at once trying to build the map in my head. Though it eventually clicks and happens, it's laborious, but it seems like something like this would help immensely. Now, the only thing left is to combine it with an ultrawide monitor.

ocean_moist 9 months ago

This feels helpful as I have to hold less stuff in my mind, but the UI is way too mouse dependent right now. You guys should make some shortcuts and somehow make it “tiling” like a window manager (dwm), so you don’t have to manually resize windows.

  • akshaysg 9 months ago

    We actually do try to make the canvas as keyboard navigable as possible. There are a list of keyboard bindings in the "Keybindings and Help" button on the bottom right.

    In terms of manually resizing, we actually do try to tile in the viewport. May I know what's causing you to resize it so I can fix it?

    • graerg 9 months ago

      In this vein, do you know what the experience has been like for users that use the vim vscode plugin? I see that it's trivial to carry over extensions and whatnot, but is the experience still "good" trying to use both?

      • akshaysg 9 months ago

        I use the Vim VS Code plugin! It mostly works, but I'm not going to lie: there are a couple of bugs e.g. when you go to definition the Vim selection gets confused because in most cases you get placed into a symbol editor.

        I am happy to fix any bugs here. I am the only person I know who uses the Vim plugin in Haystack, so I haven't prioritized fixing the bugs I encounter.

    • ocean_moist 9 months ago

      Sorry, I was just going off the demo. Maybe demo the keybinds briefly.

      If you get a demo of someone editing stuff super quickly using only keybinds I think it would look pretty cool.

      Right now I don’t know if the value prop is strong enough for me to switch editors and remodel/relearn all my keybinds. This is like a 10-15% improvement not a 1.5x or 2x improvement.

      An extension would probably help onboard users.

simonmysun 9 months ago

In my mind this a convenient approach for developers to map the code into a two dimensional space in a spread-out way. It is similar to method of loci[1] that the develpoper spacially elaborately encode the code snippets and their connections to strengthen the memory thus strengthen the comprehension. I boldly suggest considering ading an option for a background pattern which is not distracting but a little bit informative. I don't have a specific one in mind but consider if the background is a world map, users will remember the location they want to find faster and also locate themselves faster.

Following this line of thought, I think allowing user to define tab border color or even to add different noise for each tab worth considering (noise fades with zoom level and distance to the view port center).

https://en.wikipedia.org/wiki/Method_of_loci

  • akshaysg 9 months ago

    We plan to add a minimap to help users orient themselves.

    Also the idea of using subtle color differences or sounds is interesting to me. Will think about this!

WuxiFingerHold 9 months ago

I have nothing intelligent to say, just that I somehow love this idea very much. Somehow visualizing complexity of any kind, helping understanding and refactoring it, is what I constantly have in the back of my mind. Probably a dream of my subconsciousness that is looking for a solution for the complexity (mainly) at my work life.

  • akshaysg 9 months ago

    Ironically this is what prompted me to leave my job and start Haystack! Whenever I looked at code in my IDE my brain was always shouting at me to re-imagine it in a way that made more sense and would involve less mechanical refactoring.

    Whenever you have this feeling of looking for a solution in your daily life, you may just have a startup idea on your hands!

azhenley 9 months ago

Beware, canvas-based code editors (like Code Bubbles) have problems. A 1d carousel/ribbon performed better in some initial user studies:

https://austinhenley.com/pubs/Henley2014CHI_Patchworks.pdf

  • akshaysg 9 months ago

    Thank you for the flag! Our intention is to try to "tile" the viewport so that it resembles this grid format (i.e. the carousel/ribbon), but we've found the canvas is still useful folks who want to go that extra mile to organize their editors.

  • etwigg 9 months ago

    I was always surprised that Code Bubbles got so little airtime...

threecheese 9 months ago

This is great and I can’t wait to try it. I’ve been coding for a few decades, and have always been good at “keeping the program in my head”. However, in life I am very bad at this and have failed at just about everything that’s not programming, and based on a recent diagnosis I’ve learned a lot about ADHD, autism, and “visual learners” for whom abstract mental models are difficult to internalize without some visual anchor. Anyway, this has led me to use more visual tools - like Miro and Heptabase - and the lessened cognitive load is nothing less than stunning. I hope this model of human/machine interface is beneficial to everyone, and not just those who are broken, but coming from one of the latter I appreciate what you are doing here.

  • jahewson 9 months ago

    Diagrams can certainly be helpful but do be aware that “visual learners” is a myth that has been debunked for 15 years now:

    https://www.theatlantic.com/science/archive/2018/04/the-myth...

    • threecheese 9 months ago

      Interesting, thanks for the reference. The chance that my doctor’s info is out of date is definitely nonzero. I am however interested in why this nugget of info has been so life-changing, and so off I go to figure out if this is placebo or something else. Appreciate you not being a dick, but then again this isn’t reddit.

g19fanatic 9 months ago

I've needed something this from the first days of learning to program. I've been able to recreate this (kinda) with vim panes and tabs in addition to tmux panes and sessions.

I'll keep my code in a left pane in vim, <C-w v> to duplicate the buffer in a new pane and then use tags to goto a definition and if needed to go deeper, do it again. I don't usually kill this unless no longer needed and If i need to go down some other branch, will just <C-w v> then <C-w T> to start that pane in a new tab and do it again. Easily keeping the different contexts in different panes and tabs inside of vim. all managed by <C-w |> and <C-w => to make it easier to read... Tmux panes and sessions for entire project contexts so on and so forth.

Having it graphical looks really really nice and I'd love to have something like this for presentations/debugging over zoom sessions.

xixixao 9 months ago

Congrats on the launch. It is an “obvious” idea, in a good way. Agree that minimizing the effort in constructing the workspace will be key. I’d also love to try a sort-of 3D stack for caller/callee relationship, zooming in and out. The code really is a graph (not acyclic though), and I think visualizing it that way can be helpful.

  • akshaysg 9 months ago

    I'd love to learn more about what you're envisioning for the caller/callee relationship here! Do you mean recursively show callers/callees as you zoom out?

atomicnature 9 months ago

Reminds me a bit of the old smalltalk GUI. It had this sort of "object editing" capability IIRC. Actually, smalltalk could connect different data types, such as code, images, videos, presentations, docs, etc into a cohesive whole. Not as polished as your demo of course , but that was the core idea.

welder 9 months ago

This is very cool and building for a future of 100% AI generated coding, but for some reason I don't feel the urge to use it right now. I think it's because using the mouse turns me off. I use Vim or Vscode with Vim keybindings so any workflow depending on a mouse won't work for me.

  • akshaysg 9 months ago

    You don't have to use a mouse! We try to make it as keyboard accessible as possible and do have a lot of keybindings (see the button on the bottom right for keybindings).

Blaec 9 months ago

Folks following this discussion might be interested in knowing about CoCalc's Whiteboard implementation. https://cocalc.com/features/whiteboard

You can access cocalc.com via your web browser to use the Whiteboard. It's an infinite canvas where you can write using a pen and tablet (like an iPad), make sticky notes using LaTeX/Markdown (or Rich Text), and run Jupyter cells.

The platform supports many kernels without the hassle of installation, including Python, R, Julia, Octave, SageMath, and more. You can also use custom kernel environments...

jacobsenscott 9 months ago

Interesting - though it probably just soft of devolves to using hot keys (hopefully those exist) to jump between files after a few editors are open. Panning around with even half a dozen files open would get tedious.

  • akshaysg 9 months ago

    What I do personally is I try to keep all relevant code in my viewport and jump around using shortcuts (are hotkeys a gaming term? I used to say hotkeys all the time!). The visualization is still really helpful for me so that I can quickly orient myself with which functions/classes relate to each other.

  • cellularmitosis 9 months ago

    When working with infinite canvases, using a combination of zoom and pan makes jumping from one spot to another spot basically instant.

cdchn 9 months ago

It looks like a cool feature to an existing IDE but trying to sell it and forking VSCode as your own editor to try to sell seems like an uphill battle. Best of luck to you though.

pcarbonn 9 months ago

Thanks! I'll certainly give it a try. Not sure what the business model should be, though.

You may want to take some inspiration from prezi.com. One could write prezi-like HS workspaces to document some particular workflows. You would want the possibility to add text to the canvas (outside of the code editors), and allow zooming in/out from editors. This could be a premium feature that large companies want to pay for.

  • pcarbonn 9 months ago

    In fact, one approach could be to sell a premium version with collaborative tools (such as sharing workspaces with colleagues).

    • akshaysg 9 months ago

      Yup this is our plan! Collaborative features + Gen AI features as part of premium version.

arvindrajnaidu 9 months ago

Reminds me of a hackathon submission I did for a Neo4j Hackathon. I remember winning some money :)

https://www.youtube.com/watch?v=RTsnSxyO6MY

It will be great if you are able to run tests on the codebase and watch the entire graph light-up in different colors. This is much cooler way to depict test coverage and also identify the most heavily used part of the codebase.

williamstein 9 months ago

Is most development of Haystack done using Haystack?

  • yatvij 9 months ago

    Yes! Both of us prefer Haystack to other IDEs; for me it feels a lot less "restricting" than VSCode. Developing in Haystack also helps us find issues early.

Scribbd 9 months ago

I often use `code` command in the cli for a bunch of tasks. Mostly to just open an instance of vscode in a dir I am at. Is there a plan for such a command like that for haystack-ide?

Meanwhile, an alias is easily created for macOS: `alias needle="/Applications/Haystack\ Editor.app/Contents/MacOS/Electron"`

  • akshaysg 9 months ago

    Yeah I think we added this for Windows but neglected to do so for Mac. Will add a `haystack-editor` command!

    • Scribbd 9 months ago

      Thank you very kindly.

valianter 9 months ago

I get that this is a completely new idea so adoption is going to be slow but I'm curious to see how your user interviews and user research is going. I'm a young dev but I'm not even sure if I would use this because the way I've learned to code is already so ingrained into the traditional IDE. Nevertheless, congrats on the launch!

  • yatvij 9 months ago

    Jake from Haystack here! Thanks for the interest. We've been doing a lot of user interviews with folks on our discord (and folks we know in real life) to understand issues in the onboarding process, find problems that make people churn off, etc with the long-term goal of increasing retention. A lot of our time lately has been spent on fixing these bugs and improving the new-user experience. As a result of this we found that retention on later launches got much better!

    • verdverm 9 months ago

      Have you done user research outside your fan base to show this experience is something developers want?

      Is it desirable enough to get them to switch IDEs?

  • akshaysg 9 months ago

    Yeah just to add onto what Jake said -- in our user interviews we found that folks, even those who are pretty used to old IDEs, do get the hang of Haystack pretty fast. However, developers are very idiosyncratic, so we frequently get pain points that are real problems but are also highly unique to each developer, which is interesting!

    • necovek 9 months ago

      Totally: I couldn't stop thinking about actually generalizing this to a workspace/desktop so I could apply similar principles with multi-windowed Emacs — a window manager that also connects windows ;)

      Looks really intriguing, but Emacs is really hard to leave behind.

      But I do believe this pattern applies to more things than just IDEs, and might even replace multi-workspace setup. Keep at it and hopefully you are successful and this pattern keeps evolving!

thesurlydev 9 months ago

I like the idea but what would be next level would be to visualize a project and all its dependencies such as microservices, database, queue, etc.

Has there been any studies that prove that this infinite canvas mode is more productive than using a traditional IDE with heavy use of keyboard shortcuts, etc.

billconan 9 months ago

I'm also building a canvas app these days. Thank you very much for sharing the code. I'm very curious to know your tricks to make the canvas efficient.

for my project, I use virtualization/windowing to only draw what's visible. but mine doesn't draw complex widgets like a code editor.

I will dig the code to find out.

vouaobrasil 9 months ago

Looks like it might also work for writing a book with lots of chapter/source files. Will give it a go.

  • akshaysg 9 months ago

    Oh interesting -- I never thought of it as a tool for writing a book! Maybe we should get George R. R. Martin to give it a spin haha.

wanderingmind 9 months ago

Digression, but among two contributors there are over 100,000 commits and the year listed is only 2024. That's an insane amount of commits (about 200 per person per day). Did they use autocommits? Would love to learn the tooling and devprocess that was used.

  • akshaysg 9 months ago

    The majority of those commits are not ours! For the source-available version we squashed all our commits. This is a VS Code fork so the commits you're seeing are from the contributors of VS Code.

observationist 9 months ago

Screenshots. Show - don't tell, especially if you're making claims about visualization!

  • akshaysg 9 months ago

    Do you mean in the GitHub repo? Happy to add more images/gifs to the repo! It's a fairly recent addition and the website does a much better job of showcasing the product!

999900000999 9 months ago

Very awesome!

I want this for C# and Python! Are their any technical challenges there? I would love to use this with Unity.

  • akshaysg 9 months ago

    For C# unfortunately we're missing a lot of features because the VS Code ecosystem itself lacks them (I think this is due to them being unique to Visual Studio). In most cases, except grabbing incoming/outgoing calls, Haystack should just work.

    For Python, it should work just fine!

throwaway4aday 9 months ago

Wow, great work and kudos for making the source available! I'll have to give this a try.

slightwinder 9 months ago

This looks like a very simple mindmap, but more annoying to use because of the big elements. Some automated positioning seems very necessary here. Additionally, what about proper mindmap/diagram-features and notes?

If you take a look at https://obsidian.md/canvas you will see that they have things like colored groups and different element-types. And their community-extensions have many more improvements for the canvas. Just focusing on navigation seems wasted. A good focus on mixing code, documentation and notes might be a more worthy goal, I think.

Anyway, as this is forked from VS Code, does this also support normal vscode-extensions and other features like workspaces? And does it receive updates from the original, or is it fixed to the initial forked VS Code-version?

  • akshaysg 9 months ago

    We do plan to add sticky notes and other diagramming features. We also try to position the editors in the viewport/canvas automatically, but would love feedback on that!

    It supports normal VS Code extensions and features. We do plan to update it to match any VS Code updates, especially security updates.

DenisM 9 months ago

How would you defend your business if/when IntelliJ implements a similar concept?

  • akshaysg 9 months ago

    I think it would be great if other folks started building on the canvas for code. In terms of defensibility, the canvas experience is hard to get right and we believe it can't just be a second class citizen to the editor (i.e. a sidebar). That's not a very thorough answer but are just a few of my thoughts!

btown 9 months ago

This is really, really cool!

On the licensing side, though:

> We’ve made the decision to make the editor source-available so that folks can make contributions and so that they can examine the code to make sure they can trust it.

This is a very reasonable intent, and it absolutely makes sense to preserve your options to monetize, but Polyform Strict https://polyformproject.org/licenses/strict/1.0.0/ , which you link to from your readme, seems to be far stronger than this intent.

The way I read that license, I cannot "make changes" even if I do not distribute those changes, not even changing a line of code on a version I'm running on my own computer, whether I'm using it for a commercial project or not. So contributors, it seems, would be limited to raising issues but not PRs? And it's unclear what applies as commercial use - if I'm using Haystack on a commercial codebase, and I encounter a bug that triggers on that codebase, and want to use the Haystack source code to understand what's going on to further my commercial purpose, would that be an unlicensed use of the source code?

Now, make no mistake - this is in no ways worse than the prior status quo of Haystack being closed-source. And I think you as a company should focus on building, with the certainty and comfort that this license, if anything, does err on the side of being restrictive. But some users, given this license, will be uncomfortable referring to the repository at all. I'll be one of those, but will still be excited to experiment with Haystack as a binary distribution nonetheless!

(Not a lawyer, this is not legal advice!)

  • akshaysg 9 months ago

    Hmm I'll take a look at other licenses to see if there's one that expresses our intent in clearer language.

    The intent is that you should be able to make PRs, examine the source code, but not distribute Haystack for commercial reasons.

    I believe the license should allow you make PRs and examine code (even in commercial settings), but I'll take a more in-depth look.

    Thank you for raising this to my attention!

gavmor 9 months ago

> Haystack takes care of the tedious confusing parts of coding

Tedious, yes, but confusing? Yikes!

My job as a coder is to resolve ambiguity favorably. Every day, I strive to leave the world less confusing than I found it. I would no more rely on an IDE to "take care" of confusion than I would outsource my firm's core competencies.

But the main conceit is cool, and I'm sure the dependency graph is helpful. I'm just picking nits with marketing copy. Can't wait to check it out! (Although my first instinct is to check for a canvas plugin for VScode).

Edit: I should say that I think this UI paradigm will fundamentally improve coder understanding by exploiting our visual cortex and "sixth sense" of proprioception, at least as far as I understand it via Supersizing the Mind (Andy Clark, 2008).

  • hathawsh 9 months ago

    I strive for the same thing, but every time surprising new requirements arrive, there's a good chance that the elegant architecture my team created is in conflict with the design we now want. At that point, there is a three step process:

    1. Design the new architecture.

    2. Gain a full understanding of the existing architecture and all of its trade-offs.

    3. Design a way to convert the old architecture into the new architecture.

    This happens surprisingly often and it's quite unavoidable. In the past, I tried to avoid redesigning by building things that could be expanded in every conceivable way, but I discovered that over-engineering actually makes it harder to redesign. YAGNI wins!

    I've been thinking for a while that a canvas-type editor might help a lot in the process of redesigning. It should help by taking better advantage of spatial memory.

  • akshaysg 9 months ago

    Hmm I think someone else has voiced a similar opinion on the wording here, and I actually do agree with you.

    What was meant by this statement is really just taking care of plumbing and the visualization of how code relates to one another.

    To give you a very basic/silly example of plumbing, if I add a parameter in a function used in 100s of places, doing the manual work to figure out what edits I need to make to those callers is pretty annoying and in most cases mechanical.

    If you're lucky, you can do a grep + replace (or just use a default param), but in most cases I find it requires more manual intervention than that.

    • gavmor 9 months ago

      Adding a parameter to the function signature, and then passing an additional value at each call site is done... automatically in Haystack? Impossible!

      Edit: And "to figure out what edits I need to make" is done by any ol' compiler, no?

      • akshaysg 9 months ago

        Not yet -- it's our vision to automate stuff like that!

        > Edit: And "to figure out what edits I need to make" is done by any ol' compiler, no?

        Kinda? There are cases where you have to drill data down into the callstack (i.e. pass data from above). There are folks who have gone down this path before: https://www.jetbrains.com/help/resharper/Refactorings__Chang... but we intend to automate it even more and show it to the user in an organized way for them to handle large-scale "refactors".

waingake 9 months ago

Is there a way to move the canvas via mac track pad which works the same way the middle mouse button does? I.e. always drags even if I'm looking at an editor

  • nodelessness 9 months ago

    Press ctrl while panning with trackpad. Creates tiny artifacts but works.

    • akshaysg 9 months ago

      This is to zoom correct? You can also pinch/unpinch!

  • waingake 9 months ago

    Holding down option seems to do what I want here

    • akshaysg 9 months ago

      Ope sorry for the late reply but OPT/ALT is the intended way for you to do this.

sohzm 9 months ago

hey love the concept (though Im not sure if its for me).

btw you should add a (small) gif or video in the github readme cuz that makes it really clear of what exactly its about.

  • akshaysg 9 months ago

    Good idea. Will add!

joshdavham 9 months ago

> we're going to eventually monetize

How do you plan on monetizing?

  • akshaysg 9 months ago

    Collaborative and generative AI features. E.g. sharing Haystack workspaces, searching your codebase in the natural language, making edits to multiple files, etc.

    • rrr_oh_man 9 months ago

      > Monetization

      All right

      > Collaborative

      OH! YES!

      > and generative AI features

      Oh no.

      • akshaysg 9 months ago

        Since it's opt-in, the generative AI features won't ever bug you unless you want to use them!

bhy 9 months ago

This looks quite useful! However could Haystack be made an VSCode extension instead of a fork? So I could use this in Cursor, which is also a VSCode fork.

  • candiddevmike 9 months ago

    So many YC folks are forking VSCode for various reasons that mostly revolve around "can't monetize extensions, want to own the platform".

    I don't think any of them will be successful, IMO. You want to be an extension because getting software approved is _hard_ at bigcos, it's much easier to trojan horse on an existing tool.

    • jitl 9 months ago

      I think Cursor is already looking successful. Most VS Code people I know (including myself) have switched over. I love the idea of Haystack (I was a fan of Light Table back in the day) but if I have to pick between a better UI and an assistant who perform most simple code transforms by English language request, saving hour(s) per day, I’m picking the assistant.

      • akshaysg 9 months ago

        Yeah the productivity optimization here makes sense. We intend to add generative AI features unique to the canvas UI as well to ensure our users don't lose productivity.

        I am curious what features you like about Cursor the most? For me it's the CMD/CTRL+K -- I've had mixed experiences with the chat window and Composer.

        • jitl 9 months ago

          Cmd-K and tab complete with or without writing some guiding comments

    • akshaysg 9 months ago

      I could be wrong but I don't believe it's difficult to monetize an extension.

      The reason I think there has been an explosion of VS Code forks (e.g. Supermaven, a very successful extension) is that being an extension in VS Code is limiting insofar as what you're able to change in terms of the UI and UX.

      You are right about the difficulty of getting into big companies. However, we developed a standalone editor because it's easier to build on top of, and we eventually want to build a very portable browser-based editor that utilizes the canvas view for pull requests, arbitrary code, etc.

      • chairmansteve 9 months ago

        Bigcos not that hard to get into. It's just an entirely different process. You would need to hire someone with that kind of experience.

    • williamcotton 9 months ago

      I could be wrong but one of the main reasons to fork VS Code is because extensions have a limited UI.

      This was at least the motivation for Positron, AFAIK.

  • akshaysg 9 months ago

    We're going to make a "Haystack-lite" extension in the future! I understand the pain here. We chose to go with a VS-code fork so we could maximize the canvas features. I am curious if you would find the "canvas" view distracting when it's on a sidebar as opposed to the main editor?

    • bhy 9 months ago

      Thinking about it, a sidebar "canvas" could be more useful comparing to the main editor to me:

      * when reading code, I found I jump back and forth the call stack quite often, a visualization of this could help with this navigation, especially with some properly designed shortcut keys.

      * I mostly code on MacBook so screen real estate is precious. The canvas as main editor looks like waste a lot of screen space. But the canvas in a sidebar do not have this issue.

      • akshaysg 9 months ago

        1. You can hop back and forth using the "backward/forward" buttons in the top bar, similar to VS Code. Not sure if I misunderstood here. 2. That's fair. You can "pin" editors on the canvas, which allows you to fullscreen editors.

      • fragmede 9 months ago

        I think part of what makes this work is that ultrawidescreen monitors aren't as impossibly expensive as they once were, so screen real estate can be spent and your spacial reasoning can take over. It might just not work well on a laptop screen.

nisten 9 months ago

looking at the package.json infestation of this thing makes me want to just go plain vim WITHOUT any plugins.

Ok, what's that , you want AI sir, guess what b:tch, you can :split out a :terminal window and run a llama-cli conversation right inside vim too. Ctrl + w N and you even get line numbers from whatever contraption of code you got out of that 7b coder model.

drawnwren 9 months ago

Is this just a pretty picture of the AST that I"m already navigating with go-to definition, fuzzy search, and harpoon in 2024?

  • akshaysg 9 months ago

    Harpoon is kind of like a bookmarking tool right? I think the value prop is that you have to do less manual window management, can see connections between code better, and can context switch between tasks.

    Reposting this from another comment: For our users, Haystack has been helpful to understand how code works together, from simple React components to legacy C codebases that are a decade or older. I think the value prop shines when you're trying to understand how multiple pieces of code together, and this will become more useful as folks increasingly lean on AI tools to modify/create/delete multiple files.

ElFitz 9 months ago

Oh. That would be fun on the Vision Pro.

Don’t know wether or not it would be productive, that remains to be seen, but it certainly would be fun.

Nidhug 9 months ago

This seems great! Wondering how it handles files being used in a lot of places (I am thinking hundred of usages) ?

ivanjermakov 9 months ago

Interesting, for me this is exactly the opposite of efficient code navigation.

LSP + keyboard-driven interface is miles ahead in terms of efficiency and speed.

I respect the effort of breaking into less researched lands though. Congrats on the launch, I'm sure some will find this tool useful.

  • akshaysg 9 months ago

    This is fair! Not sure if you're a VS Code user, but our goal is to maintain a parity between the keyboard experience in VS Code and the keyboard experience in Haystack. All the keyboard shortcuts in VS Code still live in Haystack.

    If you're a Vim user then this is an entirely different story haha.

  • scrozier 9 months ago

    To give you (Haystack authors) another datapoint, I'm a +1 to this comment. I can't think of a time when a canvas UI solved a problem I had. Usually it made navigation more difficult.

    But also agree that it's great that you're innovating in this space! Good luck!

  • necovek 9 months ago

    I actually like keyboard-driven interface + spatial layout, I just don't have a large enough monitor (I've been hoping for 40"+ 8k monitors for years). But having multiple files open that smartly refocus and rearrange as you ESC-. (Emacs shortcut to jump to implementation of a thing under cursor) would be wonderful: if smart "arrows" are drawn between file boxes, that'd be sweet as well.

    The hard bit is making that to be "smart" and not annoying with things moving that you still need.

bofadeez 9 months ago

VirusTotal detects malware on windows version "Bkav Pro W32.AIDetectMalware" (alert)

  • yatvij 9 months ago

    This seems to be a common false-positive. We just signed it with GlobalSign and re-uploaded it to the site; this appears to have fixed VirusTotal's Bkav Pro W32.AIDetectMalware check.

haolez 9 months ago

If this is supposed to be a next step from text files, what would be the previous step? Forth blocks? :)

t-writescode 9 months ago

So where does paying for it come in? This needs to make money in some way, right?

chirau 9 months ago

Is this a YC backed company?

  • akshaysg 9 months ago

    Yes (all launch HNs are YC-backed)

cedws 9 months ago

Reminds me of Ted Nelson’s Xanadu. Was that an inspiration at all?

bitbasher 9 months ago

A gulpfile... has been while since I've seen one of those.

  • akshaysg 9 months ago

    Yeah VS Code is built on top of some older frameworks and ideas unfortunately.

aappleby 9 months ago

What happens when I have 10,000 or so editors open at once?

  • akshaysg 9 months ago

    I've actually never tried this (it'll probably take awhile to get to this point). Feel free to try it out and report back the results -- I'm curious as well!

MaggieL 9 months ago

Looks interesting, but the license is a show-stopper for me. I can't expose my employer to that kind of risk. I poured a lot of time and effort into learning Akka and has to throw it all away.

  • akshaysg 9 months ago

    Sorry I missed this comment! We're going to move to a license that has less confusing language. You should definitely be able to use Haystack at work!

calderwoodra 9 months ago

If you structure your directories sensibly, you can get the same effect/value prop in every IDE and dev env.

Or is there a deeper experience/knowledge that gets unlocked coding in this paradigm?

  • akshaysg 9 months ago

    Not sure if I completely grasp what you're saying, but you're saying that if you plan the codebase well then dependencies between files/bits of code are more easily followed?

    For our users, Haystack has been helpful to understand how code works together, from simple React components to legacy C codebases that are a decade or older. I think the value prop shines when you're trying to understand how multiple pieces of code together, and this will become more useful as folks increasingly lean on AI tools to modify/create/delete multiple files.

jderick 9 months ago

It doesn't make sense unless zooming out shows some higher level representation of the code.

  • akshaysg 9 months ago

    We certainly intend to add semantic zoom levels, but for now I think zooming out is just helpful in navigating the canvas when you have multiple connected components on the canvas at once and need to pan to an area in the canvas.

fogx 9 months ago

seems like a neat idea, but how does this 10x my dev performance?

Tepix 9 months ago

Did you really have to pick the same name as the Haystack open source AI framework? https://haystack.deepset.ai/ https://github.com/deepset-ai/haystack

It's a very active project and it's confusing to have two projects with the same name. Besides, I don't understand why you'd give a "2D digital whiteboard that automatically draws connections between code as you navigate and edit files" the name haystack.

  • akshaysg 9 months ago

    This is an unfortunate name collision, but in our defense the concept of a "needle in a haystack" is hardly unique and I believe a code editor is different enough from the AI framework that it's OK.

    The idea is that a codebase is much like a haystack and finding the relevant portions of it for a task or specific flow would be equivalent to finding needles.

rrr_oh_man 9 months ago

This is so. fucking. sexy.

Wow.

Thank you for sharing your work.

Please don't go down the GenAI bullshit bingo VC route.