Skip to main content

Manyfold Importer

@mgreten/manyfold-importerv2026.10.14.1· MIT(was none)· 13d agoBEHAVIORS
01README

Import local 3D model files into a Manyfold-accessible library directory with reusable copy, move, hardlink, symlink, and dry-run planning modes.

02Behaviors1
@mgreten/manyfold-importerv2026.07.16.1manyfold_importer.ts

Global Arguments

ArgumentTypeDescription
manyfoldBaseUrl?stringBase URL for Manyfold, used only when calling the API scan endpoint.
apiToken?stringBearer token or vault expression for Manyfold API calls. Not needed for filesystem imports.
defaultLibraryPath?stringDefault destination library path visible to this runner, such as a mounted Manyfold models directory.
defaultExtensions?arrayFile 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
ArgumentTypeDescription
sourcePathstringLocal file to upload.
uploadUrlstringFull HTTP upload URL. For Manyfold this may be a TUS or API endpoint depending on version.
uploadFieldName?stringMultipart form field name for the file.
dryRun?booleanPlan 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
ArgumentTypeDescription
sourcePathstringSource file or directory to import from.
destinationPath?stringDestination Manyfold library path. Defaults to globalArgs.defaultLibraryPath.
mode?enumHow files should be imported.
dryRun?booleanPlan the import without changing files.
overwrite?booleanReplace destination files if they already exist.
extensions?arrayExtensions to include. Defaults to globalArgs.defaultExtensions.
preserveRelativePaths?booleanKeep source subdirectory structure under the destination.
triggerScan?booleanCall a Manyfold scan endpoint after import. Endpoint varies by Manyfold version.
scanEndpoint?stringRelative API endpoint used when triggerScan is true.

Resources

importSummary(30d)— Summary of a Manyfold filesystem import run
03Previous Versions5
2026.07.16.1

Rebuild against swamp CLI 20260716

2026.06.27.2
2026.06.27.1

Added 1, removed 1 behaviors

2026.05.30.2

Modified 1 behaviors

2026.05.30.1
04Stats
A
100 / 100
Downloads
36
Archive size
7.5 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
05Platforms