Import/export CAR DAG archives
See original GitHub issueGiven that:
ipfs dag import|export
exists- go-ipfs 0.9+ supports exporting DAG archive via any public gateway (
/api/v0/dag/export
) - tools like ipfs-car and ipfs-content-addressed-archiver make it easier for people to produce/consume content-addressed archives
We should support “DAG import/export” in ipfs-webui somehow.
Import DAG
Import could work the same as “From IPFS” :
We most likely want to add an explicit “From CAR Archive” item here (personally, I like the idea of a whimsical car icon 😃), but “stroke data” from ipfs-css would also do.
Export DAG
Add complimentary “Export DAG” to context menu on Files screen:
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
feat: import/export a DAG from/to a CAR file #2745 - ipfs/js-ipfs
Just a poke on this issue: what we are shipping in go-ipfs 0.5 is the final version. It is missing only: Import of...
Read more >Working with CAR files - Web3 Storage
The ipfs dag export command will fetch an IPFS object graph by its Content ID (CID), writing a stream of CAR data to...
Read more >ipfs-car - npm
ipfs-car is a library and CLI tool to pack & unpack files from Content Addressable aRchives (CAR) file. A thin wrapper over @ipld/car...
Read more >Exporting a Motor Vehicle | U.S. Customs and Border Protection
A person attempting to export a used self-propelled vehicle shall present to Customs, at the port of exportation, both the vehicle and the ......
Read more >dagcmd package - github.com/ipfs/kubo/core/commands/dag - Go ...
DagExportCmd is a command for exporting an ipfs dag to a car ... contents of .car files", ShortDescription: ` 'ipfs dag import' imports...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like it would be a good idea to do it after https://github.com/ipfs/js-ipfs/issues/2745
On ipfs-http-client API update
Agree that upgrading http-client and all the deps (especially ipld-explorer-components) will be a time sink (due to API changes and refactors). I’ll block some time on Friday to understand the scope bit better and decide what’s next.
On import UX
In regard to CAR Import/export – I am a bit hesitant to introduce export without the ability to import it as well.
Main worry: people will import
.car
viaImport→File
and produce garbage blocks (CAR with original DAG wrapped into redundant dag-pb DAG)I think we not only need
Import→DAG Archive
but also makeImport→File
check for magic bytes and do DAG import instead of importing CAR as binary unixfs file.