Skip to main content

Manyfold Importer

@mgreten/manyfold-importerv2026.05.30.2· 1d agoMODELS
01README

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

02Models1
@mgreten/manyfold-importerv2026.05.30.2manyfold_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.
defaultExtensionsarrayFile 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.
uploadFieldNamestringMultipart form field name for the file.
dryRunbooleanPlan 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.
modeenumHow files should be imported.
dryRunbooleanPlan the import without changing files.
overwritebooleanReplace destination files if they already exist.
extensions?arrayExtensions to include. Defaults to globalArgs.defaultExtensions.
preserveRelativePathsbooleanKeep source subdirectory structure under the destination.
triggerScanbooleanCall a Manyfold scan endpoint after import. Endpoint varies by Manyfold version.
scanEndpointstringRelative API endpoint used when triggerScan is true.

Resources

importSummary(30d)— Summary of a Manyfold filesystem import run
03Previous Versions1
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