Scan your whole stack
Are you using @constructive-io/s3-streamer?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.47.0
@constructive-io/s3-streamer was last scanned on 28 Nov 2026 at version 2.47.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.47.0 LATEST | 28 Nov 2026 | No rules fired |
| 2.46.6 | 26 Nov 2026 | No rules fired |
| 2.46.5 | 26 Nov 2026 | No rules fired |
| 2.46.4 | 23 Nov 2026 | Not shown |
| 2.46.3 | 19 Nov 2026 | Not shown |
Findings for v2.47.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.47.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Stream uploads to S3 with automatic content-type detection, ETag generation, and metadata extraction. Built on AWS SDK v3 for optimal performance and smaller bundle sizes.
npm install @constructive-io/s3-streamer
Stream uploads to S3
import Streamer from '@constructive-io/s3-streamer';
const streamer = new Streamer({ client, defaultBucket })
const readStream = createReadStream(filename);
const results = await streamer.upload({
readStream,
filename,
bucket,
key
});
The upload methods return a detailed payload with upload results and file metadata:
{
upload: {
ETag: '"952fd44d14cee87882239b707231609d"',
Location: 'http://localhost:9000/constructive/db1/assets/.gitignore',
Key: 'db1/assets/.gitignore',
Bucket: 'constructive'
},
magic: {
type: 'text/plain',
charset: 'us-ascii'
},
contentType: 'text/plain',
contents: {
uuid: '278aee01-1404-5725-8f0e-7044c9c16397',
sha: '7d65523f2a5afb69d76824dd1dfa62a34faa3197',
etag: '952fd44d14cee87882239b707231609d'
}
}
ETag: S3 ETag of the uploaded objectLocation: Full URL to the uploaded objectKey: S3 object keyBucket: Bucket name where object was uploadedtype: MIME type detected from file contentcharset: Character encoding (for text files)uuid: Deterministic UUID based on file contentsha: SHA-1 hash of file contentetag: Computed ETag (matches S3 ETag for single-part uploads)If you don't want to use the Streamer class you can use the utils directly:
import { createS3Client } from '@constructive-io/s3-utils';
import { upload } from '@constructive-io/s3-streamer';
const client = createS3Client(opts)
const readStream = createReadStream(filename);
const results = await upload({
client,
readStream,
filename,
bucket,
key
});
const streamer = new Streamer({
defaultBucket: 'my-bucket',
client: createS3Client({
provider: 's3',
region: 'us-east-1',
accessKeyId: process.env.STORAGE_ACCESS_KEY_ID,
secretAccessKey: process.env.STORAGE_SECRET_ACCESS_KEY
})
});
const streamer = new Streamer({
defaultBucket: 'my-bucket',
client: createS3Client({
provider: 'minio',
region: 'us-east-1',
accessKeyId: process.env.STORAGE_ACCESS_KEY_ID,
secretAccessKey: process.env.STORAGE_SECRET_ACCESS_KEY,
endpoint: 'http://localhost:9000'
})
});
{
client: S3Client; // S3 client for the resolved object store (see createS3Client in @constructive-io/s3-utils)
defaultBucket?: string; // Bucket used when a call names none
}
upload(params)Uploads a file stream to S3 with automatic content-type detection and metadata extraction.
interface UploadParams {
readStream: ReadStream; // Node.js readable stream
filename: string; // Original filename (used for content-type detection)
key: string; // S3 object key (path in bucket)
bucket?: string; // Optional: Override default bucket
}
destroy()Cleans up the S3 client connections. Should be called when done with the streamer instance.
streamer.destroy();
If you prefer functional programming over classes:
import { createS3Client } from '@constructive-io/s3-utils';
import { upload } from '@constructive-io/s3-streamer';
// Create S3 client
const client = createS3Client({
provider: 'minio',
region: 'us-east-1',
accessKeyId: process.env.STORAGE_ACCESS_KEY_ID,
secretAccessKey: process.env.STORAGE_SECRET_ACCESS_KEY,
endpoint: 'http://localhost:9000' // omit for AWS S3
});
// Upload file
const results = await upload({
client,
readStream: createReadStream('file.pdf'),
filename: 'file.pdf',
bucket: 'my-bucket',
key: 'uploads/file.pdf'
});
// Clean up when done
client.destroy();
🚀 Quickstart: Getting Up and Running Get started with modular databases in minutes. Install prerequisites and deploy your first module.
📦 Modular PostgreSQL Development with Database Packages Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
✏️ Authoring Database Changes Master the workflow for adding, organizing, and managing database changes with pgpm.
🧪 End-to-End PostgreSQL Testing with TypeScript Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
⚡ Supabase Testing Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
💧 Drizzle ORM Testing Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
🔧 Troubleshooting Common issues and solutions for pgpm, PostgreSQL, and testing.
SET LOCAL) into queries—ideal for setting role, jwt.claims, and other session settings.libpg_query, converting SQL into parse trees.Install skills for AI coding agents:
# All platform skills (security, blueprints, codegen, billing, etc.)
npx skills add constructive-io/constructive-skills
# Individual repo skills (pgpm, safegres, testing, CLI, search, etc.)
npx skills add constructive-io/constructive --skill pgpm
npx skills add constructive-io/constructive --skill safegres
npx skills add constructive-io/constructive --skill constructive-testing
🛠 Built by the Constructive team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on GitHub.
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.