pinme 1.2.1 → 1.2.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -1
- package/dist/index.js +1719 -876
- package/dist/utils/getDeviceId.js +61 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
[PinMe](https://pinme.eth.limo/) is a zero-config frontend deployment tool.
|
|
17
17
|
No servers. No accounts. No setup.
|
|
18
18
|
|
|
19
|
-
Build a static site, generate a page with AI,
|
|
19
|
+
Build a static site, generate a page with AI, export your frontend, or import CAR files — then deploy instantly with a single command.
|
|
20
20
|
|
|
21
21
|
PinMe publishes your site as verifiable content, making silent tampering and accidental breakage far harder than traditional hosting.
|
|
22
22
|
|
|
@@ -55,6 +55,20 @@ pinme upload /path/to/file-or-directory --domain <name>
|
|
|
55
55
|
pinme upload /path/to/file-or-directory -d <name>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
### Import CAR files
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Interactive CAR import
|
|
62
|
+
pinme import
|
|
63
|
+
|
|
64
|
+
# Specify CAR file path directly
|
|
65
|
+
pinme import /path/to/car-file.car
|
|
66
|
+
|
|
67
|
+
# Import CAR file and bind to a domain
|
|
68
|
+
pinme import /path/to/car-file.car --domain <name>
|
|
69
|
+
pinme import /path/to/car-file.car -d <name>
|
|
70
|
+
```
|
|
71
|
+
|
|
58
72
|
### Remove files from IPFS
|
|
59
73
|
|
|
60
74
|
```bash
|
|
@@ -157,6 +171,37 @@ pinme upload ./my-website --domain my-site
|
|
|
157
171
|
pinme upload ./my-website -d my-site
|
|
158
172
|
```
|
|
159
173
|
|
|
174
|
+
### `import`
|
|
175
|
+
|
|
176
|
+
Import CAR (Content Addressable aRchive) files to the IPFS network. This command is specifically designed for importing CAR files while maintaining their original structure. Supports binding to a Pinme subdomain after import.
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
pinme import [path] [--domain <name>]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Options:**
|
|
183
|
+
- `path`: Path to the CAR file to import (optional, if not provided, interactive mode will be entered)
|
|
184
|
+
- `-d, --domain <name>`: Pinme subdomain to bind after import (optional)
|
|
185
|
+
|
|
186
|
+
**Examples:**
|
|
187
|
+
```bash
|
|
188
|
+
# Interactive CAR import
|
|
189
|
+
pinme import
|
|
190
|
+
|
|
191
|
+
# Import a specific CAR file
|
|
192
|
+
pinme import ./my-archive.car
|
|
193
|
+
|
|
194
|
+
# Import CAR file and bind to a domain
|
|
195
|
+
pinme import ./my-archive.car --domain my-archive
|
|
196
|
+
pinme import ./my-archive.car -d my-archive
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**Key Differences from `upload`:**
|
|
200
|
+
- CAR files are imported with their original structure preserved
|
|
201
|
+
- Uses IPFS CAR import protocol for efficient content addressing
|
|
202
|
+
- Ideal for importing previously exported IPFS content
|
|
203
|
+
- Same domain binding and management features as `upload`
|
|
204
|
+
|
|
160
205
|
### `rm`
|
|
161
206
|
|
|
162
207
|
Remove a file from the IPFS network.
|
|
@@ -365,6 +410,15 @@ export default {
|
|
|
365
410
|
};
|
|
366
411
|
```
|
|
367
412
|
|
|
413
|
+
### Working with CAR Files
|
|
414
|
+
|
|
415
|
+
When using the `import` command for CAR files:
|
|
416
|
+
|
|
417
|
+
1. **CAR File Format**: Ensure your files have the `.car` extension and follow the IPFS CAR specification
|
|
418
|
+
2. **Content Integrity**: CAR files preserve the original content structure and CID relationships
|
|
419
|
+
3. **Use Cases**: Ideal for importing previously exported IPFS content, migrating between IPFS nodes, or batch content transfers
|
|
420
|
+
4. **Size Considerations**: CAR files can be large, ensure you have sufficient bandwidth and storage space
|
|
421
|
+
|
|
368
422
|
## GitHub Actions Integration
|
|
369
423
|
|
|
370
424
|
PinMe can be integrated with GitHub Actions to automatically deploy your project when you push code to GitHub. This enables a fully automated CI/CD workflow.
|