06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · Lobsters · · 1:08:28 runtime

Patchwork-26: A malleable, collaborative, local-first workspace

Comments

In the wiki Large Language Models Also namedBrowser Extensions
Transcript 7708 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

I'm here to tell you about one of our other research interests. That's malleable software. Uh I don't know that local first software is like a strict precondition for malleable software, but when you cross that with our desire to have like longevity, user agency, all these other things, man, they go together like peanut butter and jam. And for Europeans, that's a good thing. Okay, before I go any further, I want to say that like this work, we're going to be showing a ton of extremely personal and idiosyncratic prototypes as well as some serious work stuff, but this has all been supported by and is in service of this Arya program we were talking about.

Um, although we're going to be showing a lot of really fun, wacky stuff today, it is actually all grounded out into like serious sort of professional and meaningful use cases. And we're so grateful that Arya has put all this trust in us and our team to be able to build this incredible system that we're going to show you today. Uh, but before we get to that, I want to talk about food courts. So, this is the food court at the Mayfair Mall. It's my hometown of Victoria. This could be 1993.

It could be last week. I I just found a photo of it. And in this food court, you can get so many different kinds of food, but only exactly those kinds of food. And the people who work in the food court, if I go to them and I want something that they don't make, not only

will they not make it for me, they can't make it for me. Nobody in this system is empowered to actually change the circumstances that we're in. And in many ways, I think this is actually the most apt analogy for our present software technology industry. And you know what? Sometimes you just want a crappy hamburger. There's nothing wrong with that, right? But the problem is increasingly we only have this. And our computing ecosystem some days feels like we're stuck in an endless mall with no way out. And what I think we want instead is something that feels more like a kitchen. And in a kitchen, you can make French cuisine, you can make Japanese cuisine, you can microwave half a leftover burrito, right? Like, we're not saying you have to be, you know, high concept all the time, but it's your space. One thing that's important to say about a kitchen is that this space requires a different set of tools and skills to navigate than a food court.

It's not like strictly better. If you're in a rush and you're hungry and you got to get back to work, going to the food court's a quick way to solve your hunger problem. It's a product. It's designed to meet your needs. The kitchen in many ways is is chaotic. It's confusing. You don't know what drawer somebody else put the knives in. You can't find the cheese grater. Oh, it's like what pot is this? Doesn't work on the induction stove. But a kitchen is a personal space and it's a creative space and it's a flexible space and it's one that you can adapt to your needs. Another great example of this is this is a luier in the Bay Area that Todd went and visited for this malleable software essay, uh, which is where I'm drawing some of these figures from. This is a luier who's working on a guitar.

And not only does this gentleman have tools, you can see him working here. But I want to call special attention to this thing here. This is a jig, right? And so this appears to be for helping shape the neck of a guitar. I'm sorry I wasn't there, so I don't know exactly what it's for, but that that's what the shape implies. But this is actually made of the material that the tools in the shop work with. So it's tools built by the tools to serve in doing other kinds of work. And I think that's a very powerful thing. And so we call our work studying this domain malleable software. And so the sort of sigil here is meant to show somebody pushing in on the side of an existing application to make it their own.

And we believe very simply that your software should adapt to your needs and not the other way around. So of course it's a simple answer. Just use open source. Done. All right. Jeez, I thought this talk would take longer. No, but obviously many eyes do not make all bugs shallow, no matter how many LLM credits you throw at it. And in fact, this isn't really actually what we're talking about, right? It's sort of like saying, "Oh, well, you know, you don't like where the sofa is. That's okay. You can build an entire new house and move the sofa there, right?" Like, it's not actually this sort of kitchen feeling of being able to bring different tools to bear in the moment. And in fact, you know, there are lots of examples of kind of malleability and adapting to your needs in existing products. We're not saying no one's doing this, right? Once upon a time, the idea that you could change the type face in your, you know, uh, computer was this radical innovation was was actually held up as an example of malleability, right? Back when there were sort of green screens with like, uh, character-based displays that was impossible. It was the bitmap displays that Park pioneered that sort of showed this. But now, it's not really what we think of as malleability in a deep sense. But it's important to recognize that actually there are ergonomic opportunities and adaptations in commercial software. And so we think of this as with local first as really being kind of a spectrum all towards a certain set of values and we are going to try and show you very far down that spectrum today. Another interesting use case of course we talked about this last year.

Some of this is for anybody who wasn't able to make it last year or hadn't heard about how fun this is yet. Uh we talked about browser extensions. Browser extensions are really cool because you can change almost anything about a website through the browser extension APIs in in on your computer. The only thing is they can only change sort of like the surface, right? The part that comes to you is not the program. What you have is of the program. It is not the software itself most of the time. That's not always true, but it's often the case. This extension certainly it's the case. Uh we don't think that your bank account should be a local first piece of software. It's nice if the bank has the money. Uh, and you can't accidentally drop your laptop and lose all your money. Um, this is a Bank of America checklist thing. It only has like 200 downloads when we took the screenshot. What's nice about it though is that the people who wanted that could have it and it doesn't trouble anybody else. Many applications have the option to explicitly extend or integrate with them. That's great, too. This is really great. Figma has a whole kind of plug-in system. VS Code's got all these extensions. It's really cool. Here in particular, we've got this screenshot from the uh claude code documentation showing claude code from Anthropic running inside the competitors product VS code from Microsoft who are closely affiliated with the notable open nonprofit OpenAI.

Right? Actually, one thing I want to point out here is maybe one of the interesting problems with this model of explicit in extension is that I can't

put Figma in VS Code and I can't use VS Code extensions in Figma because they kind of don't exist in the same cinematic universe.

Okay, so we got lots of options. Everything's fine now. I can go. Right. Are we good? No. Oh, okay. Well, let's

come back to this kitchen for a moment. What we want, I think, is this software kitchen. So, could we build one? Well, we've given it a shot. So, I want to talk to you about the version of patchwork we've been building since last year. It's patchwork 26. And here it is. This is what it looks like. We have this sort of thing we do at Incin Switch, which is we try and just confuse the heck out of you at some point in every talk. Uh, this is K Facet. Um, patchwork is named after a quilting technique called patchwork. And uh, Cafe has these amazing colorful dynamic kind of things.

A I just love this uh, image, so I wanted to include it. [snorts] And Patchwork is a malleable software platform for collaborative editors. And Patrick is not an operating system in the same way that automerge is not a database. In fact, we could say that Patrick is just plan N for automerge. Okay, that's about what I expected there. Yeah, plan N was uh Bell Labs

operating system. Um, look it up. Ask your grandparents. So, what were our priorities in the patchwork design? Uh, we wanted to be malleable, compatible, simple, and secure. Um, first on malleability. Some of you, if you were here last year, we showed you Patchwork 24, which we were working on then. And Patchwork 24 was kind of like a DVD player. again, ask your grandparents where you could sort of put one app in the slot at a time. So you could put in a markdown editor and then you could pull it out and stick in TL Draw and pull it out and put in a pizza dough recipe and pull it out and put in something else. And it, you know, it was pretty cool. But everything around that editor was a static React app that was built as a monolith and only we could redeploy. Patchwork 26. What we've tried to do is blow that apart and atomize it.

And patchwork is a lot of tiny apps.

Congratulations. We've brought microservices to the front end. No, I'm just kidding. Actually, I think one of the hardest problems here, and we're going to talk more about this later, is figuring out what are the abstractions you need to be able to put a lot of little pieces together in open reconfigurable ways. The loose coupling. Let's talk about compatibility. Patchwork is just the web. You want to use WOM, fine. You want to build in React, Vue, SolidJS, it's just the web. It's very, very small. We've really emphasized that. You can load WOM, you can use Canvas, you can run web workers, do what you want. It's just the web. You can bring your own anything. And this is just like a selection of some of the external tools and projects that we have either worked with, imported or otherwise brought into patchwork uh in the last few months. And so there's Pandock. Yes. and things like TL Draw that are meant to be integrated. Um, but we've also been able to do things like import this ships hull editor from a a

maritime research group we've been working with called the Rising Tide Research Foundation. And they've been building custom tools to help design electric boat holes, which were certainly not intended to be part of Patchwork, but by bringing it into Patchwork, we allow it to then sort of get in the soup and mix with all the other things we have going on in here. And Patchwork is simple. Martin spoke at the opening of the conference about having a narrow waste. So really there's just kind of two things. There's Patrick core, which is a custom element, a service worker, and a plug-in loader. We'll talk about that a little later.

And automerge, which we've just really leaned into. And with those two pieces, we think you can do a lot. So automerge is a replicated uh data store. It's a document database sorry system. And the idea is that on every one of the computers where you might be collaborating on a document, the system there can simply edit a local document. And what's actually happening under the hood is we're recording the changes that are being made, playing them down into the automerge data store, which gets material materialized back and then viewed to the user. And concurrently with that along the same pipe, we're kind of sending those changes out through a sync server because peerto-peer software doesn't work unless you have IRO who run those relay servers for you. Uh and then it can show up homogeneously in other people's systems.

And so when you write software against a system like automerge, most of the time you don't have to think too much about where these messages are coming from. You have like a cloud-like experience, but you have local feeling uh performance and development. The last thing we wanted to do with patchwork is make sure that it was secure. That's really hard and we have a lot left to do. And so we're going to come back and talk more about the challenges here. Um once you understand sort of what we've bought with the anarchy uh and so let's

let's see it. Are people excited to see it? >> All right. So I'm going to welcome to the stage uh Chi Rabbits and Mimi Rurn and they are going to introduce us to this local first platform for collaborative editors. Come on out, you two.

>> Hello. >> Am I Is this on? Oh, yeah. Hello, >> it is. Um, so we're going to show you Patchwork. Um, >> oh, am I doing this? >> Yes, please. >> Okay, >> welcome to Patchwork. So, this is Patchwork 26. Uh, this should be pretty familiar. So we have a markdown editor for a markdown document. Um and we can work on this as before. So ju just as you usually can you can add to this document. Um you can write things into it. We also have a really neat mechanism uh for doing branching which I'll show you in a second. Um >> if I had pressed play earlier you'd be seeing it right now.

>> So the the drafts are over here. Uh if I want to try something I can just create a new one. Um and very like lightweight risk-free. I can try try something in here and if I decide against it I can go back to my main version. So this is the same concept as branching. >> Um what we can also do here is share documents. So um we're working on one together. Um this is a project Chi and I are doing together. It's very hard work we do at Incan Switch. Um and if Chi edits it, I

should get those edits at the same time. Um so you'll see that in a moment. And that's because underneath this, the markdown document is also an automanage document. Um, uh, so we'll see that change. I like the I like the he that's good. Um, and, uh, what we're going to do is I'm going to go offline. Let's pretend I'm going to go work in the park. Um, and we're going to work on different things about the same document. >> What should I do? >> Um, it would be really good if you could edit the like highle structure of the document. >> Yeah. So, like move all the paragraphs around, make sure things are in the same order as they are in the list here. Um, make sure the animals are in the right order. That sort of >> Yeah, that sort of thing. And don't don't change too much. Just a little bit. I think it only needs a bit of work. But >> yeah, I think we're on the same page.

>> Yeah. >> Yeah. Okay. And actually, that's perfect because I just I just uh made this little blocks editor for Markdown the other day while I was at the match. And uh it allows me to like drag paragraphs around, even set them aside if I'm not want to deal with them right now. So, it seems like perfect for the type of thing that you're asking me to do. So, yeah, I can do that. Enjoy the park. >> Thank you. Sounds good. All right. I'm going to show you an editor that I've made for proof checking. So, um I made this uh markdown editor. I can open the same file and I'm going to use a um local LLM to surface things to me that I

might be interested in about my document. Um and so you might notice these local LMS have sort of mixed capabilities. Um, but the point here really is that I can make tools for me and I can make them to achieve a certain task and she doesn't have to know about the tool that I've made to operate on the same document. We're working together. Um, so what I'm going to do now is come back online. Our changes are going to merge and I'm going to see what she's been up to. So I'm going to go back to the main text editor so that I can sort of really easily see what's going on. Um, cool. Let's have a look.

Oh my. Okay. So, um, >> okay. I can see that you're surprised, but I think it's just I haven't yet moved this because like it's the otter are at the bottom at the top, but I'm just going to move this paragraph down. That's probably what it was. I was still working, but I think that's probably cleared it up, right? Structural editing, making sure things are in the right order. A little bit of text to clarify some stuff. That was what you asked. >> Um, yeah, let's not do this now. I'm just going to leave things in a comment and maybe we can get back to it another time. Um, there's this nice commenting mechanism where I can leave one right here. Um, >> contrast is awful.

>> Okay, so um, as you can see, we can collaborate on this document together. Um, and what would have been really nice is if I'd have known something, let's say something was going to go wrong. It would have been nice if I'd saved a version earlier, but I didn't know that it was >> Did it go wrong? >> Let's move past that. Okay. So, I I didn't know that things were going to go wrong and I really didn't save a version. But the beauty of automerge, like one of my favorite things about it is that I didn't have to like the history of a document is part of the document. So, I can go back into that draft sidebar that we saw before and I can scrub back to a very specific moment in the document's history. Um, so this is all my history. I can grab that little slider and just scrub back to before I shared it. Um, and so I'm choosing a very specific moment and then I can just like click on it and drag it down and make a new draft. What's amazing about this is that underneath this markdown document, as I mentioned earlier, is an automerge document. And as Peter said, we're all in on autoge.

So if we have a look at the underlying automerge document under the hood, we'll use this like raw editor um that we can open the same file with. This is the structure of the automerge document. So I've got the content here and I've got a bit of a top, but this is the same thing. It's just how um it's represented to automerge. So I've made another tool called pattern witch. Um and I'm going to show you what the underlying autom document looks like for this as well. And this is part of a project that we're doing with Agnes Cameron. Um if you haven't spoken to her already, you really should. She's incredible.

>> If you haven't spoken to her, you've made a huge mistake. [laughter] You should fix it. Um, so if we open this with the raw tool. So again going

opening the same document with a different editor, the raw editor and this is the automerge document. So what I chose to do about this tool is to create a custom data format. And I wanted to represent that canvas that we saw before. Um, and I'll show you again in a second. >> Nope, that one that just changed. That'll be important later. >> Um, I wanted to represent that as a um

an array of numbers. So each row to be an array. So I just changed that zero to a one. And when we look back at the um pattern witch editor, we're going to see that the top left um pixel will have changed. So this is an automerge document underneath. Um and this tool I made for a project that we're doing. It lives on my patchwork. And when I wanted to make it um and share it with Chi and with Agnes, I didn't have to think about deployment. I just had to add it to patchwork and then it was there. >> And because you built it in patchwork, it was automatically local first. It's already collaborative, already available offline. Actually, on the subject of collaborative, do you want to work on this one together?

>> Yeah, sure. >> We could draw a cat. >> We could draw a cat. So, >> could you send me a little link over? >> I could send you a link. But what would be really cool is, you know, that document that we were sharing earlier, >> the one with the animals that I was fixing helping you. >> Yeah, that one. Um, I could just drop

this pattern witch straight into there and then you'll have it. So, let's show you that. >> Um, I can open the sidebar back up and then drag the pattern witch document just straight in and then chi has it. Oh, I do have it. I do have it. Just as promised. All right.

Transclusion. They love it.

Yeah. So, when Mimi shared me this document, I didn't just get the document. ment. I also got, you may have noticed, the editor that she used to make the document. And I didn't just get that editor. I also got the source code because you can't have anything any editor in patchwork without also having a source code. We've mentioned that every document in here is an automarge document. But also every piece of JavaScript, every piece of HTML, CSS that you can see here in front of you, all that you all that the light touches, um, is also an automerge document. They're all served via the service worker that Peter may or may not have mentioned earlier. And uh so that means that I can hop in straight into the into the raw editor, hop into the source code of this document, open it up with this silly little text editor I made. And I think I can improve Mimi's tool here by uh making it that all of the UI buttons and so on are pink. So I'm going to um add a little bit of CSS to make everything pink. And then it's immediately available for me and immediately available for Mimi. So yeah, this is a lot easier to use, right? more legible I think is the word we like to use in the lab.

>> I like pink but >> sure >> please can you change it back? >> Just to clarify before it was pink. >> It was >> okay. Okay. Sure. Sure. Sure. We can do that. >> Thank you. >> Yeah. No problem. How this is all wired up is that we have this thing called um patchwork v element. It's a normal HTML custom element. It takes a doc URL for the document that you're working on and takes the name of one of your registered editors. That editor has a function in

it that takes the handle for that document. Takes a handle for that document and an uh HTML element. It can do whatever it wants. It can ignore the handle if it wants. And anything that pops into that element, we will put on the page. And that is like the entire idea. It's also the last idea that Peter has allowed to have. So if I open this up, like I was saying, it's all HTML, CSS, and JavaScript. If I can use the dev tools here to let you understand what I mean when I say that everything everywhere you see a patchwork view is somewhere that you can add a new editor and change. So you can see that the cat here is a patchwork view element. You can't yet because I haven't done the border. I'm about to do it. Bear with me typing very slowly. I think I'm trying to decide if it should be 10 pixels or five.

It it should be five. Yeah, there we go. So you can see here that the cat is a Patrick view element. The markdown file is a cat a Patrick view element. You can even see here that um these buttons are Patrick V me and Mimi are also Patrick V element. You want to replace you want to replace us with better editors. And if I open up the sidebar here, which again

I'm about to do, open up the sidebar, that too is a patchwork view. So we can change the DOM right here and put in the name of another tool that I have, another editor that I have for folders. And this is now rendering that. And that's now my sidebar. Um got a little whoop. [laughter] deeply excited and the eagle-eyed keen eyed observers amongst you may have noticed there is a border around the whole thing the entire app Chrome which means that you can switch out this entire environment for something that works better for the way that you think and the way that you work for instance if you're completely insane um well I like to think of patchwork like an operating system >> sorry Peter [clears throat] um [laughter] and um I can make patchwork like that so

I can go into my settings tool and click on this uh nostalgic desktop tool that I made like the editor that I made for patchwork and then I can render the whole environment as uh like a desktop. And I like this because I can open multiple windows at a time and it feels like it works for my mental model of the system. >> Yeah. And even though we're now working in entirely different environments, we're still able to work on the same documents that we were working at before because the thing you see here on the left is patchwork. This on the right is patchwork. It's it's still collaborative, but we're working in a way that is like right for us.

So yeah, that's basically it. This is what patchwork is today. And then we're going to have Orion and Gstone Paul come on, tell you a little bit what you can do with it and also try to instill with

you in you or ignite within you some of what we call the feeling the magic of patchwork. So here we go. Thanks.

Okay, great. Um, we're just getting started, y'all. Next up, we're bringing on Paul Sonog. He's going to talk about malleable composition. All the rest of these have really bad names. I'm sorry because this demos are all so weird. I couldn't find short names for them. So, please welcome Paul.

Yeah, great to be here. So, in the second demo, I want to show you how in patchwork you not just can only take different editors and swap them out, but you can actually bring these editors together and uh compose them in the moment to solve your specific problem. But initially, I want to start with something very simple. Um, oftentimes when I'm trying to solve a com a problem with my computer, the first thing I start with is just a simple text note. Just like open it up and write down my thoughts um and stuff that I want to do. So, for example, next week I want to help my brother move. And he found this really cheap uh kitchen on Craigslist that we should pick up together. Um, so

let's start uh planning the logistics of that. So, the first thing I might do is just uh take this address and look it up on the map and figure out the route like how long it takes for my to get there from my brother's place. So, now we have the information that it takes about an hour. So, I could go now back to my text document and paste this information in here. But, it's kind of really annoying that I have to go back and forth between these two separate editors. So next what

I might want to do is bring them together here in this canvas so I can see the map uh next to my text nodes.

But really this is actually not that much better because they are still like separate editors. When I want to look up routes I need to go into the map tool and I need to copy that information back because if I navigate to something else like all that information will be gone again. So, what I really want to do is

just use the map um as a viewer and then

do all the like lookup of places and routing directly from my text documents as I'm typing um in notes.

And to some of you, this might uh already sound familiar. Uh a couple years ago we did a project called Embark where we explored this idea of like what if you just started out with documents for travel planning and then gradually enrich it with like uh computations and interactive views. But back then we built this as like a solid React application basically just like a standalone thing that like had this uh set of features. But now with Petra 26

things are much more composable. Actually, I don't need to write like a custom travel planning editor. I can use the existing tools I already have here like the map and uh the text editor. So,

next let's see how we can actually do this. So, I can open up uh my sidebar here and here I have this cards tab with a bunch of extension cards and I'll grab

um the embark card. [clears throat] So that's like a little treble uh toolkit. And once I go to my editor, I now have a bunch of new capabilities. For example, I can now start typing at and like look up a place. Um and as I enter it, um I

can also see that the map picked this up and I can see the locations on the map and as I like go back and forth, they get highlighted um on the map. So I picked the right one in Germany and not somewhere in the US. Um, I can also turn

the other place into a proper location. And now I can just type drive to uh figure out the routing information directly in my document. My document also knows about time. So I can type something like 10 and then it automatically computes uh when we will be there and like adds as a little annotation in the document and I can continue this plan. Um maybe loading the kitchen will take maybe like two hours. Um, so that will be like at the round one and then we need to drive back. Um, so that will be so we'll be back at round two. Maybe that's actually a little bit optimistic. Maybe it should be like 3 hours. And it's nice that I can like as I'm typing uh these things in um like my schedule automatically updates and I can like tweak and see um how how things will go.

Obviously the question is like now what what does this embark card actually do? So I can open up this card and we can see that actually this card is composed out of a bunch of like smaller cards that add individual features to my environment. And um these cards can coordinate with each other and the tools uh and the editors in my workspace because they're part of a shared context. And the idea behind context is that every part in the system can add new data to this context and read back uh data that other tools or other cards have contributed. So let's look at how [clears throat] this works uh by looking at uh the placefinder for example. So I can pull up here this inspector and look at the context of the placefinder.

And here we can see that uh the context is actually grouped into different channels. So the first channel we can see here is for matching schemas. So

what the place finder does here is it's looking for things that have a latitude and longitude. So in our case um that's like the two places we added to our document and the route itself. And it's use it's using that information to bias the results to stuff that's close by to to things I already have in my workspace. And then the second channel here um that's like active searches and the placefinder is looking for them. But right now there is no active search. So not that much is going on. So let's see next what happens if I type at Berlin in my map in my document. And now a bunch of new things appear in my context. We can see that now we have a search query for Berlin.

And the placefinder card then responds by adding um to the results a result

card for Berlin and then the rest of the system can pick up this information. So you can see that it's also now showing up on the map and and is highlighted.

But these cards are also editable. So

when I go to the spec tab, I can see this like highle description of like what the card actually does. And I can also edit the spec. For example, one thing that that is a little bit annoying is then when I look up uh a building, it just shows me the house number and not the street name. So I can change this behavior by just adding this as a clause that for buildings I want to see both the street name and the number. And then I can have an LLM regenerate the code for this card. And once it's done, I can check. And now when I look up the same address, um, we get like a nice name and it's looking much more reason readable.

And the nice thing here that I want to point out is that this LM didn't just like addit some like random code of in some file of some tool. It specifically added edited this individual card. So like this behavior is like isolated to this card. For example, if I want to share this placefinder with somebody else, I can just share this customization with them. They don't need to adapt any other customizations I have in my environment. And if they have customized their tools to cards, it will just play nicely with the stuff that they already have. Beyond um beyond this these cards be

beyond this um embark card that I've added to my document there are also global cards that um like travel along and are active for any document that you're looking at. And here we can see we've already seen in the core there are uh like the open documents and schema matching mechanism. Um but we can also see there is a deck for markdown. So if I open this up, we can see that actually all these features like mentions and uh the sticker annotations are actually not things that are built into the markdown editor. You can also bring new features into uh the environment. So the the author of the markdown editor didn't have to know about stickers or mentions. This is something somebody else can later add uh to existing tools.

So, in this demo, I've shown you how we

can use um how we can use patchwork to bring together existing tools and tailor them to a specific problem that we want to solve. But the cards we have here are not just like features in are not just features for a travel planning app. They're actually quite generic. I can also bring them into other context. For example, um I've built this little um running app in Patchwork that I actually use on my phone to keep track of my runs. And now it would be really

nice if I could actually show these um

like view these runs on a map. So what I can do is I can open up a new canvas and

drop in the runs. And now my runs automatically show up on the map. And the important thing here is that I didn't have to build like a custom extension for to support the run running tool. Um this just works out of the box because the running tool or the running um document basically has latitude and longitude and the map can read this data. Um and then we can do useful uh defaults like when I hover over it, it just like shows the default view for that run. So I can look at what these different runs are.

Okay. So, here's here's a a little bit of a weirder card. Um, my girlfriend recently got really into bird watching, so I built her this bird sightings card that shows you like recent bird sightings um on any map in the system. And I can also now bring this into my running view here. And now I can see bird sightings like recently birds that have been seen in the area. and I can see maybe that maybe I could like change my route to see more interesting birds. That's something like you would never find that in the app store. You would never find a running plus bird watching app in the app store. And in patchwork

and with LLMs, it's easier to build these kind of apps, but it feels really different like it feels really nice that here I can stay in the moment. I can be focused on my problems. I don't need to step back and go into tool building mode and say like okay let's think about like what this bird watching/ running tracker should should look like and just like grab these things and uh remix them with each other. So I've I've shown you here how we can combine different data sources and visualize them with each other. But obviously the big like asterisk here is all your data needs to be in patchwork and we don't want patchwork to be this isolated world. We want this to be like an open system that talks to the outside world. And [snorts] I can like look up places in in my current system. But there are also like really nice websites because you need to know like first like what are the places that are cool to go to. So one uh page I really like is called Atlas Obscura that like lets you find weird spots. Here, for example, is the Busham Museum that unfortunately closed down I think last year. But it's it's really nice to like explore what are different places. So, it would be nice if I could somehow connect this uh with like my nice note takingaking and map uh stuff in patchwork.

So, what if we brought cards [clears throat] into this environment? That's what I've done here. So I can open up um this extension sidebar and

the important thing here this is not like a re-implementation of cards for the browser. This is just loading patchwork but in this context where it has like different API access. So it can do stuff like execute JavaScript in your current website. So the card I have here um extracts data um with an LM from the website and then puts it in a deck. So I can copy this over into patchwork. And now as I'm like navigating Atlas obscura, you can see the map in patchwork update. And I can see like where these places are related to like my hotel and the uh conference location. And I could also put other information in here. Yeah. So this is how um you can

in the moment solve problems with patchwork.

>> Thanks. Nice work. Uh, yeah. So, you know, we've started

out slow and simple with the basics, just putting, you know, what are the pieces. Paul's shown how you can get the

pieces to talk to each other. The next thing we want to talk about is data and data portability and the ways data relates. And for that, I'm going to welcome Orion Reed to the stage. Welcome, Orion.

And ju just a one small administrative note is we less anybody's confused we do actually have two Orions on our team. This is Orion Reed and the longtime Automerge contributor and former Heroku founder is Orion Henry. So don't be surprised uh when there are two of them. All right. Take it away. >> All right. Okay. So I'm going to talk a bit about kind of yeah data portability. Um, as Peter mentioned in the beginning, it's really important that this system is kind of in a way quite boring, right? It's normal web stuff. It's trying not to be a uh not an operating system perhaps. Um, and so as an example of that, here we have a markdown document that you will have seen before. Don't mind the sheep.

Uh, then in the right sidebar here, I'm going to pull up uh Pandoc. Pandock for those that don't know is a a tool to convert just about any kind of text file to just about any other um and it's something that we can compile to web assembly which means that here we can run it in the browser and so now uh I have taken this markdown document I'm rendering it as an HTML document and as I edit the markdown we'll see that reflected in the right um and if we want to do a different format from this very long list we could do something like a a PDF This is not again a feature of this markdown tool. It will really work on any order merge document that has a string field you can point it at. So for example, here we have on the left a latte document which is used for kind of um academic writing. [snorts] And here we have a rendered PDF preview on the right. And so we can take this, we can

chuck it into our sidebar and now we have a document that we can share with anyone else. Uh or if we would like

we could open it as a live preview on a second device. And as we've seen, it's

really easy to embed tools and other tools. And this is no exception here. We can embed it into TL Drawer. But it's also important to be able to leave the system, right? So the simplest way to do that is that we can simply drag this PDF

into our file system. And now we have it.

And as Chi and Mimi alluded to earlier, things are really all uh made of this

kind of patchwork view element. So some of the things that look like whole systems and whole applications are really made out of smaller views still. Um there's actually a bit of a hint at this at the fact that there is a sheep standing on one of them. Um so this comment tool on the right is itself made of these um patchwork view

elements. Each of these is kind of a reference to a piece of an automerge document. And that means just like anything else I can for example take a comment drop that into TL Draw and now we have a single comment from a thread. But just like before, ignore the sheet.

That means we can even take a single comment, chuck it onto the desktop, and now we have in this case the automerge representation of this. So I think it's really important that we can, you know, very credibly and very easily pull things in, pull things out, make it out of normal materials. But sometimes we want to do something a little bit different. So here we're taking a tealor document, embedding it in a markdown document. This is all well and good, but maybe this isn't the representation that we feel is appropriate for looking at it in this in this markdown form. Maybe we want

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks