Skip navigation
Our primitives team has been working on a new project we're calling "trees".
0:00 / 0:41

Our primitives team has been working on a new project we're calling "trees".

Jacob

@fat41K followers

Visit on X
387 likesDownloadOriginal post

59,699 views

Our primitives team has been working on a new project we're calling "trees". Trees will be a new SSR, shadow dom, drag and drop, virtualized, vanilla js / react web-component, with a handful of search / filter niceties, collapsible repo paths, themeabilty, diff stat representation, and more. Like most Pierre Computer Company things, it's built very well by people that care a lot about these sorts of things. Sadly so far trees[dot]com is unwilling to give us their domain.

44 Comments

Comments from the original post on X (Twitter)

  • Mitchell Hashimoto's profile picture

    @mitchellh

    What’s a primitives team

    40 likes

  • Jacob's profile picture

    @fat

    We have two teams internally right now… The Code Primitives team is building diffs, trees, etc. These are low level, composable libraries for working with "code primitives". Our bet is wave 1 was forking VSCode - editor first agentic coding… tab, tab, type shit. Wave 2 - tui, cli's, etc. Wave 3 - return desktop, but NOT editor first. We're building for this wave – foundational abstractions, for building dev tools. the next "VSCode"…etc.

    53 likes

  • Mitchell Hashimoto's profile picture

    @mitchellh

    Ah I thought you meant like cavemen

    42 likes

  • Jacob's profile picture

    @fat

    well i mean @amadeus IS on the team sooo…

    10 likes

  • ray arayilakath ‎.߆'s profile picture

    @rayhanadev

    @mitchellh @amadeus i love the consistency at which amadeus is trolled both on and off slack 😭😭

    2 likes

  • Jacob's profile picture

    @fat

    @mitchellh @amadeus Only bc he’s annoyingly talented

    2 likes

  • Devon Govett's profile picture

    @devongovett

    Did you guys try React Aria for this? The Tree component supports Virtualizer, handles multi-selection, keyboard navigation, drag and drop, accessibility, etc. I got pretty good perf with this data set when I tried it.

    32 likes

  • Jacob's profile picture

    @fat

    Yup - in we originally implemented our tree view on top of react aria. it was lovely. a couple of different design constraints here for us, but lots of inspo from y'alls work

    11 likes

  • ◢ Brøck Whitten's profile picture

    @sintaxi

    thinking I might squat on... shadow-dom-drag-and-drop-virtualized-vanilla-js-react-web-component-with-search-filter-niceties-collapsible-repo-paths-themeability-diff-stat-representation-and-more[dot]com ...just in case.

    12 likes

  • Jacob's profile picture

    @fat

    lmaooo WISE

  • from the future's profile picture

    @nk

    how do you get the virtualized list to never have blank areas when you scroll super fast?

    3 likes

  • Jacob's profile picture

    @fat

    @amadeus and @SlexAxton have spent an unreasonable amount of time on exactly this. especially in safari, lots of dark arts

    8 likes

  • from the future's profile picture

    @nk

    @amadeus @SlexAxton I only need to know how to solve this in chromium but I gave up before I could figure it out. Would love to know

    2 likes

  • Jacob's profile picture

    @fat

    @amadeus @SlexAxton @amadeus has a twitter post somewhere on this he can link – but also mb you can just use our tree stuff? (if you're just doing to render layers)…. not sure if that's your usecase tho

  • from the future's profile picture

    @nk

    @amadeus @SlexAxton I'm not sure if we can actually use it because we have a lot of extra chrome in our tree and wiring it all up seems like more trouble than just borrowing ideas

    3 likes

  • Jacob's profile picture

    @fat

    @amadeus @SlexAxton we should support this pretty well – but also yah if you just read amadeus's tweet it sorta explains some of the hacks with sticky, etc.

  • Jimmy Lee's profile picture

    @wwwjim

    Yoooooo @caidanwilliams we did some fire trees too check this out

    2 likes

  • Jacob's profile picture

    @fat

    @caidanwilliams wait in your hot ass sacred computer shit??

  • jay's profile picture

    @mewtyunjay

    we built something similar at work, a virtualized grid + gantt timeline in vanilla TS with react bindings! imperative DOM with element pooling (no vdom in scroll path) collapsible tree rows, inline editing, keyboard nav, drag-to-zoom, handles 10k+ rows at 60fps and initial render takes less than 300ms. built with a lot of care and passion for performant sw :)

    2 likes

  • Jidé ✨'s profile picture

    @jidefr

    Much needed, there is still no perfect batterie included tree lib out there.

    2 likes