npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yc-tools/angular-yc-runtime

v1.0.4

Published

Runtime adapters for Angular SSR on Yandex Cloud Functions

Readme

@yc-tools/angular-yc-runtime

Runtime adapters for Angular SSR on Yandex Cloud Functions. Used by @yc-tools/angular-yc, which bundles these handlers into the deployed server and image-optimizer functions.

Server handler

createServerHandler(options) wraps the Angular SSR server (AngularAppEngine or an Express app) as a Yandex Cloud Function handler.

Logging

Each request produces exactly one summary log line:

[Server] GET /some/path 200 42ms

All other diagnostics (module resolution, engine calls, per-chunk writes) are emitted only when AYC_DEBUG is set to a non-empty value.

Handler timeout

If the underlying server handler neither ends the response nor raises an error, the runtime rejects the invocation with a diagnostic error after a safety timeout instead of hanging until the function times out silently.

  • AYC_HANDLER_TIMEOUT_MS — timeout in milliseconds. Default: 55000 (slightly under the typical 60s function timeout). Set it below your function's configured timeout.

Image handler

createImageHandler(options) serves optimized images (/_image?url=...&w=...&q=...).

Remote source allowlist (security)

Relative url values (starting with /) are always allowed — they resolve to objects in the deployment's assets bucket.

Remote http(s) URLs are denied by default (HTTP 403). Previously any remote URL was fetched, which made the function an open proxy (SSRF). To allow specific remote hosts, set:

  • AYC_IMAGE_ALLOWED_HOSTS — comma-separated list of allowed hostnames. A leading dot allows a domain and all of its subdomains:

    AYC_IMAGE_ALLOWED_HOSTS=images.example.com,.cdn.example.org
    • images.example.com — exact host match only.
    • .cdn.example.org — matches cdn.example.org and any subdomain.

Fetched remote responses are also capped at 10 MB; larger sources are rejected.