[HN Gopher] An infinite canvas for code exploration
       ___________________________________________________________________
        
       An infinite canvas for code exploration
        
       Author : pst723
       Score  : 14 points
       Date   : 2024-05-06 21:03 UTC (1 hours ago)
        
 (HTM) web link (territory.dev)
 (TXT) w3m dump (territory.dev)
        
       | pst723 wrote:
       | We built an "infinite canvas" style app for exploring codebases.
       | We cut your repo into atomic pieces - functions, data structures
       | etc. and give you an interactively expandable graph of
       | defintions.
       | 
       | Even with the best go-to-definition editor feature you need to
       | keep a whole bunch of mental context when tracking down a deep
       | control flow. The idea of Territory is to give you exactly the
       | relevant cross-section through a large codebase. A code map that
       | you build in this fashion can then provide explanatory value to
       | others.
       | 
       | So far we indexed Linux, LLVM and Godot to prove we can handle
       | repos of that scale and to provide value free of charge to free
       | software contributors. We will be adding more repos and shipping
       | self-service build setup later. Would love to hear your opinion.
       | Are there any projects you think we should cover next? We are
       | doing C/C++ first -- our initial parsing setup is build around
       | libclang.
        
         | dontdieych wrote:
         | I would like editing code in this style. Focus on narrow area
         | but can easily view as bird eye.
         | 
         | Nice work!
        
           | pst723 wrote:
           | Thank you!
           | 
           | Editing is definitely on the roadmap. We would like to have
           | an agent to sync edits with your local workspace at some
           | point.
        
             | verdverm wrote:
             | What about a VS Code extension? Would love to explore like
             | this in my IDE over needing a separate tool / webapp
             | 
             | Something like: https://github.com/pixelkind/p5canvas
        
               | pst723 wrote:
               | I got that request from a couple of people already.
               | Definitely coming soon. For now, we tried to make it easy
               | to hop around manually. Click the node header to copy
               | path, [?]P, paste. Pasting a path to our search bar also
               | works.
        
               | gigatexal wrote:
               | Post to HN when that launches. I'll take a look then.
        
               | verdverm wrote:
               | I can imagine a number of really cool ways to explore
               | code with a tight integration to intellisense / LSP
               | 
               | in particular, show all callers and callees of a code
               | snippet
        
         | speps wrote:
         | Support Unreal Engine and you'd get a lot of interest from game
         | devs!
        
         | pseudosudoer wrote:
         | Ideally this would be a standalone app (perhaps ported using
         | electron) that I could run locally, and import codebases
         | directly. Sourcegraph was on the right track, but eventually
         | fizzled out unfortunately.
         | 
         | I would love to use a tool like this to navigate the unknown on
         | rails!
        
           | pst723 wrote:
           | That is definitely an option. However what you get from a
           | hosted service is that we do the indexing for you. That can
           | take a significant amount of time for a huge codebase.
        
         | azeirah wrote:
         | I have some interesting ideas about this, as I've been thinking
         | about it and have been prototyping ideas for ... a decade at
         | this point?
         | 
         | Do you have a way to contact you?
         | 
         | Any reason you're not using treesitter with LSPs by the way?
         | This would make it really easy to get this working with all
         | major languages at once.
        
       | LeafItAlone wrote:
       | This tool seems very useful. Demo well done.
       | 
       | But I'm not going to give a website my email before learning the
       | pricing strategy and ToS which (currently) aren't available (on
       | mobile at least). Would love to see these added.
        
         | gigatexal wrote:
         | Yeah. Pricing or get busted.
        
       | observationist wrote:
       | Hijacking the back button to lock me on the page is an
       | unacceptable violation of my browser functionality. Don't do
       | that. It's bad. When I click the back button, I want to go away
       | from where I am, back to where I was before. I don't click the
       | back button to remain in the same place.
       | 
       | I wanted to watch the demo video again; even if it's only on the
       | initial signup page, the hijack is irritating. If it's
       | intentional, that's offensive.
        
         | pst723 wrote:
         | That sound like a bug, definitely not intentional. Will look
         | into that.
        
       ___________________________________________________________________
       (page generated 2024-05-06 23:00 UTC)