# How Marfa works (/how-marfa-works)

What an item is, how items connect, where they sit and who can reach them, on one example.



Marfa is **one home for everything you keep**: your files first, then the notes, tasks and bookmarks around them. Take a trip to Lisbon: a beach photo, a packing list, and a task to book flights.

Figure: Your instance holds the library, the feed and the bin. The library's Lisbon trip view lists beach.png, attached to the note Packing list. Keeping the Book flights task moves it from the feed to the library; deleting an item moves it to the bin. ~/Documents/Lisbon on your computer syncs both ways with the library.

## Items [#items]

* **An item is one thing you keep:** the photo, the packing list, the task. Each keeps its own history of versions.
* **A file you save becomes an item.** Marfa keeps the photo's bytes, and the item holds its title, its tags and any text Marfa reads from it.
* **An item's type says what kind of thing it is,** such as a note, a task or a photo, and which details it holds, such as a due date. Types nest: a photo is a kind of file, so a search for files finds your photos too.
* **Every app and agent you approve works on the same items.**

## How items connect [#how-items-connect]

* **A tag is a free label,** such as `lisbon`, on any item of any type.
* **An edge links one item to another and says how:** the photo is **attached to** the packing list. The photo stays an item of its own.
* **A view is a saved list,** such as every item tagged `lisbon`, newest first. It's an item too, so every app shows the same list.

## Where items sit [#where-items-sit]

* **The library holds what you chose to keep:** what you saved, or what an agent saved for you.
* **The feed holds what services send** through connectors, such as your Todoist tasks. **Keeping an item moves it to the library;** it stays the same item. An item you don't keep stays in the feed, unless its type sets how many days the feed holds it.
* **The bin holds what you delete,** with its attached files. You can restore an item as it was for 60 days, unless you [change that setting](/run/settings).
* **A synced folder puts items on your computer as files.** The folder lives on your instance; the directory, such as `~/Documents/Lisbon`, is where its files sit. The photo is `beach.png`, the note `Packing list.md`, and a change on either side reaches the other. See [Sync a folder](/use/sync-a-folder).

## Who reaches your items [#who-reaches-your-items]

* **You're the owner,** the one person in your instance, and you sign in with your password or a passkey.
* **An app or agent** signs in through your browser, and you approve what it may reach: which types, and whether it may change them.
* **A key** is a credential you make for a script or a connector, holding only what you name.

You can [see and revoke](/use/see-and-revoke-access) any app or key at any time. The [Glossary](/glossary) defines every word these docs use.
