Import & Export
Import directories from disk, GitHub, or files (Fewer graph documents, JSON, ASCII tree, CSV, DOT, shell script). Export your graph as SVG, PNG, Fewer graph (.fwr), JSON, CSV, DOT, shell scripts, or ASCII trees — or export the edits you made as a script that replays them on your disk.
Fewer lets you import file trees in multiple formats, whether it is directly from your disk, a github url, or from a previously exported file.
Every source goes through one 3-step import dialog:
- Origin: pick where the tree comes from: folder, file, archive, URL, or a linked cloud account
- Options: the same configuration panel for every origin (depth, hidden files, filters, …)
- Import: a summary of what will be imported, then Import (labelled
Press Enter to move through the steps. The same dialog is reachable from Import from disk, Import from file, Import from URL, and the cloud sources in the sidebar.
While an import runs, the step-3 panel shows a progress bar and the current phase: a real percentage where the total is known (reading the picked folder, building the graph) and an animated bar for network-bound steps (fetching a URL, listing a cloud folder, reading an archive). You can close the dialog while an import is running, the run stops reporting back, so it will not pop a toast or close a dialog you reopened in the meantime.
An import replaces the graph, so it also replaces everything that described the old one: hidden cards, collapsed folders and dragged card positions are dropped (a new import mints fresh cards, so the old references were meaningless), and the Hidden Cards badge starts counting the new graph. View preferences (direction, connection style, theme, minimap, Hide Files) are kept, and reloading the same graph from the session cache restores its view state untouched.
Import from Disk
- Click Import from disk (or press Alt+I)
- Select a folder in the file picker
- Configure options:
- Click Import
The graph builds instantly with auto-layout. Large imports show a progress bar with the current phase and, once the file count is known, a percentage. Dismissing the folder picker simply cancels the import and returns you to the summary. Nothing is loaded.
Drag & Drop (empty canvas)
Disabled in the web build. Dropping a folder from your OS onto the canvas to
import it directly (and dropping onto a populated canvas to expand it from disk)
uses File System Access handles and OS drop events, which are switched off by the
LOCAL_FS_FEATURES flags in src/lib/fewer/features.ts. Use Import from
disk instead, and the options are identical.
Browser Support
- Chrome/Edge: File System Access directory picker where enabled; the
- Firefox/Safari:
webkitdirectoryfallback: read-only import - Brave: May require flag
brave://flags/#enable-experimental-web-platform-features
Import Options
Explicit content is not scanned: a pasted file imports exactly as given. The options act at three layers (what Fewer looks at during a scan, how the tree is then filtered, and what the canvas shows afterwards), and the panel lists only the options that can act on the import you're making, so what you see is what applies.
What applies to what
| Option | Applies to | Default | Description |
| Max Scan Depth | folder, archive, URL, cloud | 6 | How deep to scan the listing (see below) |
| Max Display Depth | all | 6 | How deep to display after import. Deeper cards go to the Hidden Cards panel |
| Include Hidden Files | folder, archive, URL, cloud | Off | Include dotfiles (.gitignore, .env, etc.) |
| Include dependency & build folders | all | Off | Scan node_modules, dist, build, .git, etc. |
| Skip Empty Folders | folder, archive, URL, cloud | On | Hide folders with no files inside |
| Show Files on Canvas | all | On | Show file cards. Off = directories only |
| Look Inside Archives | folder only | Off | Show what's inside archives found in the folder |
| File Extensions | folder, archive, URL, cloud | None | Comma-separated whitelist (e.g. ts, tsx, js) |
| Case-Sensitive Match | folder, archive, URL, cloud | Off | Match extensions case-sensitively |
| Symlinks | folder only | Show as links | How the walk treats symbolic links (see below) |
Max Scan Depth
How deep to scan the directory tree. 0 = no limit.
Max Display Depth
How deep to display after import. Deeper cards go to the Hidden Cards panel.
What "applies to" means
- A pasted file (or a re-imported graph export) is not scanned. Depth, hidden-file, extension, and empty-folder settings cannot act on a file: there is no scan step, so a
.github/folder in an export is kept, and a tree nested ten levels deep arrives in full. The only options that touch a pasted file are the dependency-folder filter and the two display settings. - An uploaded archive is a real filesystem listing, so it does keep the scan filters: a
.zipgenuinely containsnode_modulesand dotfiles. Only the two walk-only switches (Symlinks, Look Inside Archives) are dropped for it, since nothing in the archive reader consults them. - Symlinks and Look Inside Archives follow the disk walk, so they appear for folder imports only. The archive, URL, and cloud readers are listings, not walks.
Symlinks
Symbolic links are detected on local-path imports (when the dropped folder reaches the dev server as a disk path). Three modes:
- Show as links (default): each link imports as a card carrying its target
- Follow: additionally imports the content of links whose target lies
- Skip: drops links entirely (the pre-v0.8 behavior).
On the canvas, right-click a link card → Info for Copy Target Path, Go to Target (jumps to the target card when it's inside the graph) and Open Target in File Explorer. Search matches link targets too, and the Stats panel counts symlinks.
Exports carry the link signal: SVG/PNG draw the icon, badge, contrast connection and
arrowhead; JSON round-trips the metadata; the tree export writes shell-style
name -> target lines (and the ASCII tree parser understands them back);
CSV gains a symlink_target column and DOT marks link cards and connections.
Browser limitation: the File System Access picker (Chrome/Edge directory picks and drag-and-drop inside the browser) cannot see symlinks: the API resolves them transparently, so linked folders are walked like normal folders there. The option applies to local-path imports.
Look Inside Archives
Turn on Advanced Options → Look Inside Archives and a folder import also
expands the archives it finds, so imports/ shows what's inside a
release.zip instead of a single file card.
- Off by default, because it multiplies card count. The setting is
- All the same formats as the Archive origin:
.zip,.tar,.tar.gz, - Nothing is extracted: the archive's listing is read in place, exactly
- One level deep. An archive found inside an archive stays a file card.
- Depth limits still apply, so the Max Scan Depth slider governs how far
- Ceilings, so a folder of archives cannot swamp the canvas: at most 200
Import from URL
Import a directory from a URL. Fewer supports two kinds of URLs:
GitHub repositories
- Click the GitHub icon or use Import dialog
- Paste a repo URL (e.g.,
https://github.com/owner/repo) - Click Import
Supports branch and subdirectory URLs:
https://github.com/owner/repohttps://github.com/owner/repo/tree/branch/path
Fetches the repo tree via the /api/github-tree route.
Public file index URLs
Fewer can also visualize any public directory listing that uses Apache or nginx auto-index format (the kind you see when a web server exposes a folder without an index page). Paste the URL and click Import:
https://example.com/data/https://www.sidc.be/EUI/data/
The server crawls the index (breadth-first, up to 200 pages and 6 levels deep), parses folder/file entries and sizes, and builds the graph. Large listings are truncated with a notice. Results are cached for 24 hours, so repeat imports of the same URL load instantly.
Internet Archive URLs
Internet Archive items are imported via the archive.org metadata API: a single request returns the item's complete file tree, so there is no page/depth limit and no truncation:
https://archive.org/details/msdos_Prince_of_Persia_1990https://archive.org/download/<identifier>/...
Auto-generated files (thumbnails, item tiles, _meta.xml) are filtered out. Every file and folder carries its archive.org URL, so the right-click Download / Open in archive.org actions work as usual. Results are cached for 24 hours like other URL imports.
Import from File
Supported formats:
- Fewer graph document (
.fwr): a saved or exported project, restored whole with its card ids, positions, tags and groups - JSON: a Fewer JSON export (structural: the graph is rebuilt from it)
- ASCII tree:
treecommand output - Shell/batch script:
mkdir -poutput - CSV: previous Fewer export, or your own spreadsheet
- DOT: Graphviz output (Fewer's export, or any other tool's)
- Archive:
.zip,.tar,.tar.gz/.tgz,.gz, plus.7z,.rar,.xz,.bz2,.zstvia a lazily-loaded engine
Click Import from File and select your file. You can also paste content directly into the dialog: the format is detected from what you give it, not chosen. A Fewer export, a tree output, a mkdir script, a CSV table, or a Graphviz DOT graph are each recognised, and the panel reports what it found (Auto: JSON, Auto: CSV, …). The chip names the mode first, so Auto stays Auto until you pick a format yourself. Uploads are detected by content too, so a .txt full of JSON imports as JSON.
If detection gets it wrong, press Change to reveal the format tiles. Auto hands control back to detection and stays highlighted while auto is in force (never the detected format's); pick the parser yourself and that choice is kept for the file, even as you keep editing it.
Archives are just a file here: there is no separate "Archive" origin. Pick an archive and the panel switches to archive mode: the chosen file and its size replace the detection chip and the paste box, and step 3 reads the archive's listing. Everything else (options, depth limits, stats) is identical to every other origin.
CSV column mapping
Fewer's own CSV export imports with no extra steps: its header says which column is which. Any other CSV opens a Columns panel: the header names are matched automatically (Name, Path, Type, Extension, Symlink target, Parent), and every mapping can be re-pointed before you import. A preview shows the first rows as they will be read.
- Hierarchy comes from the Parent column when present, otherwise from the Path column; each folder prefix on the way becomes a card. A single column of slash-separated paths imports the same way.
- The Name column is required; the rest are optional refinements.
DOT notes
- A node is a folder when other nodes point at it, a file otherwise: DOT has no folder concept of its own.
- Fewer's own DOT export round-trips fully: file extensions, and symlink targets (marked with a dashed connection).
Archives
Visualize a compressed folder without extracting it. Pick an archive in the File picker and the panel switches to archive mode: the same options panel and graph builder as every other origin apply.
| Format | How it is read |
.zip | The central directory, which stores the full listing uncompressed: the archive body is never read |
.tar | 512-byte headers, skipping each entry's payload by its declared size |
.tar.gz / .tgz | The same tar walk, inflated with the browser's native gzip support |
.gz (single file) | One member, named after the file minus .gz |
Notes:
- Nothing is unpacked. The listing is read in place and the graph is built from it, so a multi-gigabyte archive costs only the size of its directory table. Your files never leave the browser.
- Sizes are real, read from the archive metadata, and feed the same sorting and stats panels as a disk import.
- Import options apply as usual: depth limits, hidden files, dependency/build folders, and the extension filter all work on the archive's contents.
- The entry cap is 20,000. Larger archives import their first 20,000 entries and show a truncation notice.
- 7z, RAR, xz, bzip2, and Zstandard are read through a lazily-fetched WebAssembly engine, since browsers ship no native decompressor for them: the engine is downloaded the first time you open one of those, and reads the whole archive into memory.
Export Formats
| Format | Extension | Use Case |
| SVG | .svg | Vector, documentation, presentations |
| PNG | .png | Raster, slides, social media |
| Fewer graph | .fwr | Save/share a project (restores the whole graph) |
| JSON | .json | Structural data, re-import, other tools |
| CSV | .csv | Tabular, spreadsheets, re-import |
| DOT | .dot | Graphviz rendering, re-import |
| Export Folders | .sh / .bat | Reproduce directory structure |
| Export Changes | .sh | Replay your edits onto the imported folder |
| Tree | .txt | ASCII tree for docs/README |
Export Changes: replay your edits on disk
Export Folders writes the shape of your graph as mkdir commands.
Export Changes writes the edits you made: the folders and files you
renamed, moved, re-parented and duplicated, plus the ones you added — as a
script that applies them to the folder you imported.
It answers the question the browser cannot: "I arranged these files in the graph — now make my machine look like that." You run the script; your device does the work; nothing is written from the browser.
How it works. Fewer remembers the tree exactly as it was imported, and diffs it against your graph when you export. The result is the net change: an edit you undid produces nothing, and a folder you renamed carries its children with it. The script:
- Refuses the wrong folder. It checks that the folder it runs in is the
- Asks what to do. Run it in a terminal and it offers
- Moves everything aside first. Each renamed or moved entry is staged in
- Cleans up after itself. The staging folder is removed when the script
# run it in the folder you imported
bash fewer-changes-20261113-1015.sh
# or from anywhere, pointing at the folder
bash ~/Downloads/fewer-changes-20261113-1015.sh ~/work/my-projectFlags for scripted use: --dry-run (print the commands, change nothing),
--yes (don't ask), --allow-delete (permit the deletions), --force (skip
the checks).
What it can and cannot do. It replays names and places: folders created, files renamed, entries moved and re-parented, duplicates copied from their original. It does not invent file contents — a file you created in the graph is created empty, and a file you edited outside the app is left alone. Entries the import never saw (excluded by the import options) are not touched.
Deletions are off by default. Turn Include deletions on in the export panel to list them in the script; the script still asks before removing anything.
Archives. When the graph is an archive (you imported backup.zip), the
script replays your edits inside that archive instead of onto a folder —
renames, moves, new entries and deletions all land in the zip.
It needs an archive engine, and it finds one:
- 7-Zip, when it is installed (
apt install p7zip-full, `brew install - Python 3, when 7-Zip is not there. The script carries a small Python
If neither is available, the script says so and leaves the archive alone.
RAR archives, multi-volume archives and self-extracting archives are left untouched: 7-Zip can read them but not rewrite them.
A zip that was expanded inside a folder import is a different thing — and it works: the zip is a real file in that folder, so the edits you made inside it are applied to the zip itself, with 7-Zip (or Python), in place:
· editing Logos.zip
· inside Logos.zip: rename Logos/Logo.epsThe script needs an archive engine for that, and finds one:
- 7-Zip, when it is installed (
apt install p7zip-full, `brew install - Python 3, when 7-Zip is not there. A small Python program travels
If neither is available, the script says so and leaves the archive alone.
One thing a script cannot do is move an entry in or out of an archive — the bytes would have to cross the archive boundary. Those changes are skipped, and the script says how many.
Windows runs the script through WSL or Git Bash — the script is bash.
FWR: the document, JSON: the structure
The two formats carry different promises:
- FWR (`.fwr`) is a graph document: the same snapshot Fewer's own save
- JSON (`.json`) is the reduced structural export: cards, connections and
Fewer graph documents written before this format carried tags and groups (a
reduced payload inside the same envelope) are no longer read: importing one
fails with a clear error rather than loading blank cards. Export the graph again
as .fwr to get the current format. A library folder of old .json copies is
likewise not scanned: the desktop library reads .fwr files only.
Export Selected
Toggle Export Selected to export only the selected subtree. Export Changes is the exception: it always replays the whole graph, because the changes are measured against the folder as it was imported.
Image Exports Mirror the Active View
SVG and PNG render exactly what the active graph view shows, not the raw graph state:
- cards the view hides stay out of the image (hidden children still appear as faded rows inside their folder card)
- per-view card positions and the view's own derived layout (Layout Direction override, Crown Shyness intensity, sibling sort) are used as-is
- collapsed folders export as their one-line pill
- tag rings and tag dots use the same colors as the canvas
- the current selection carries over: each selected card gets the themed selection ring outside its border, and every connection on a selected card's ancestor path is highlighted in the same folder/file colors and 3px width the canvas uses
- the view's connection style, stroke pattern, and connection width win over the global ones, and connections anchor to the view's layout direction exactly as the canvas handles do
- the app's typeface travels with the file: the export embeds the matching
@font-face(as a data URI, so it works offline), which means the PNG is set in the same font you see on the canvas rather than a system fallback, and the downloaded.svgopens with it anywhere. The embedding fails soft — with no font to be found the export still happens, in a fallback face.
Click the graph view you want before exporting. Data formats (JSON, CSV, DOT, script, tree) always export the full graph and ignore view settings. The active-view marker shown in a split layout is a UI affordance and is never drawn into an export.
PNG Options
- Resolution — canvas pixels per output pixel, 1×–2× (type an exact value or drag the slider). Exports that would not fit this browser's canvas limit are downscaled and the export note says so
- Transparent background toggle
- Theme-aware background color
Keyboard Shortcuts
| Key | Action |
| Alt+I | Open import dialog |
| Ctrl+E | Open export panel |