This web app allows you to select a file from your local device, convert it into a CAR (Content Addressable Archive) file compatible with Filecoin, and download the resulting CAR file directly from the browser.
- Upload any file and convert it to CAR format.
- Download the CAR file instantly.
- Optimized for production with Webpack.
- Lightweight and works with any simple HTTP server.
-
Node.js and npm installed on your machine.
-
Install
http-server
globally or as a dev dependency:npm install -g http-server
-
Clone the repository:
git clone <your-repo-url> cd filecoin-car-app
-
Install dependencies:
npm install
-
Run the development server:
npm start
-
Open your browser at
http://localhost:8080
.
-
Create the production build:
npm run build
-
Serve the build with
http-server
:npm run serve
-
Visit
http://localhost:8080
to see the running app.
filecoin-car-app/
│
├── public/
│ └── index.html # HTML template for Webpack
├── src/
│ └── index.js # JavaScript logic
├── dist/ # Generated build files (gitignored)
├── webpack.config.js # Webpack configuration
├── package.json # Project metadata and dependencies
├── .gitignore # Files and folders to ignore in Git
└── README.md # Documentation (this file)
-
If the app doesn’t run, try clearing the cache and reinstalling dependencies:
rm -rf node_modules package-lock.json npm cache clean --force npm install
-
If
http-server
isn’t found, install it globally:npm install -g http-server
- JavaScript (ES6+)
- Webpack for bundling.
- HTMLWebpackPlugin for injecting JS into HTML.
- IPLD CAR library for CAR file creation.
- Multiformats for CID generation.
This project is licensed under the MIT License.
Feel free to submit pull requests or open issues to suggest improvements.
- Inspired by Filecoin and IPFS technologies.
- Special thanks to the @ipld/car and multiformats teams.