Gathering detailed insights and metrics for @architect/asap
Gathering detailed insights and metrics for @architect/asap
Gathering detailed insights and metrics for @architect/asap
Gathering detailed insights and metrics for @architect/asap
Architect HTTP proxy distribution, extracted from @architect/functions (arc.http.proxy)
npm install @architect/asap
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
3 Stars
799 Commits
4 Forks
4 Watchers
1 Branches
12 Contributors
Updated on Sep 29, 2024
Latest Version
7.0.10
Package Id
@architect/asap@7.0.10
Unpacked Size
31.05 kB
Size
9.94 kB
File Count
17
NPM Version
10.5.0
Node Version
20.12.2
Published on
Apr 29, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery
Call ASAP within your handler function manually like so:
1let asap = require('@architect/asap') 2 3// All config is optional! 4module.exports = asap({ 5 // Alias assets to different filenames 6 alias: { 7 '/an-asset.jpg': '/a-different-filename.jpg', 8 '/a-path': '/a-different-path', 9 }, 10 // Pass your own fingerprinted static asset manifest (defaults to Arc-generated static.json) 11 assets: { 'some-file.gif': 'some-file-a1b2c3.gif' }, 12 // Set a custom bucket configuration (defaults to Arc-generated buckets) 13 bucket: { 14 staging: 'staging-bucket-name', 15 production: 'production-bucket-name', 16 folder: 'some-bucket-subfolder', 17 }, 18 // Override the content-aware cache-control header 19 cacheControl: 'max-age=0', 20 // Manually set response headers 21 headers: { 'some-header': 'ok=true' }, 22 // Return null if asset is not found (defaults to `false`) 23 passthru: true, 24 // Engage SPA mode (defaults to `false`) 25 spa: false, 26})
Use ASAP as the handler for your Lambda! If you're using Architect, this is done automatically for you when you don't define a root handler for your @http
pragma.
If using ASAP with non-Architect projects, just point your Lambda's source directory to src/
, and make sure you set the following two env vars:
ARC_ENV
: staging
or production
ARC_STATIC_BUCKET
: the S3 bucket name where your assets are storedNo vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More