This is the multi-page printable view of this section. .
JavaScript Quickstart Guide
MinIO JavaScript SDK
SILO implements the S3-compatible server contract, so Node.js applications can use the upstream MinIO JavaScript SDK directly. Use a maintained Node.js release supported by the package version you select.
Install the package
The package includes TypeScript declarations; do not install the old @types/minio package.
Configure the connection
Keep credentials outside source control. Set S3_USE_SSL=true and use the TLS service port when connecting to a secured deployment.
Create a bucket and upload an object
Save the following as quickstart.mjs:
Run it with:
Use the repository’s API reference and maintained examples for bucket policy, notifications, object lock, presigned URLs, multipart operations, and other APIs. Prefer directory-level links over copying assumptions about individual example filenames into long-lived documentation.
Production checklist
- Use TLS and verify the server certificate.
- Load credentials from a secret manager or protected environment.
- Grant the application only the bucket and object permissions it needs.
- Pin and test the SDK version, Node.js runtime, timeout behavior, and retry policy together.
- Handle streams, request errors, incomplete multipart uploads, and shutdown explicitly.
See Identity and Access Management for server-side policy configuration.