Manyfold Importer
@mgreten/manyfold-importerv2026.05.30.2
01README
Import local 3D model files into a Manyfold-accessible library directory with reusable copy, move, hardlink, symlink, and dry-run planning modes.
02Models
@mgreten/manyfold-importerv2026.05.30.2manyfold_importer.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| manyfoldBaseUrl? | string | Base URL for Manyfold, used only when calling the API scan endpoint. |
| apiToken? | string | Bearer token or vault expression for Manyfold API calls. Not needed for filesystem imports. |
| defaultLibraryPath? | string | Default destination library path visible to this runner, such as a mounted Manyfold models directory. |
| defaultExtensions | array | File extensions to include when scanning a source tree. |
fn uploadFile(sourcePath: string, uploadUrl: string, uploadFieldName: string, dryRun: boolean)
Upload one local file to a Manyfold-compatible HTTP file upload endpoint
| Argument | Type | Description |
|---|---|---|
| sourcePath | string | Local file to upload. |
| uploadUrl | string | Full HTTP upload URL. For Manyfold this may be a TUS or API endpoint depending on version. |
| uploadFieldName | string | Multipart form field name for the file. |
| dryRun | boolean | Plan the upload without sending the file. |
fn importDirectory(sourcePath: string, destinationPath?: string, mode: enum, dryRun: boolean, overwrite: boolean, extensions?: array, preserveRelativePaths: boolean, triggerScan: boolean, scanEndpoint: string)
Copy, move, hardlink, or symlink supported model files into a Manyfold library directory
| Argument | Type | Description |
|---|---|---|
| sourcePath | string | Source file or directory to import from. |
| destinationPath? | string | Destination Manyfold library path. Defaults to globalArgs.defaultLibraryPath. |
| mode | enum | How files should be imported. |
| dryRun | boolean | Plan the import without changing files. |
| overwrite | boolean | Replace destination files if they already exist. |
| extensions? | array | Extensions to include. Defaults to globalArgs.defaultExtensions. |
| preserveRelativePaths | boolean | Keep source subdirectory structure under the destination. |
| triggerScan | boolean | Call a Manyfold scan endpoint after import. Endpoint varies by Manyfold version. |
| scanEndpoint | string | Relative API endpoint used when triggerScan is true. |
Resources
importSummary(30d)— Summary of a Manyfold filesystem import run
03Previous Versions
2026.05.30.1May 30, 2026
04Stats
A
100 / 100
Downloads
3
Archive size
8.9 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms