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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@eslym/sveltekit-adapter-fastcgi

v1.0.0-alpha.1

Published

A package to serve sveltekit app with fastcgi (which might be a very stupid idea).

Downloads

1

Readme

@eslym/sveltekit-adapter-fastcgi

A package to serve sveltekit app with fastcgi (which might be a very stupid idea).

Supports simple hosting and cluster mode. Cluster mode will automatically spawn and kill workers based on configuration and server load.

Install

npm i -D @eslym/sveltekit-adapter-fastcgi
yarn add -D @eslym/sveltekit-adapter-fastcgi

Usage

// svelte.config.js
import adapter from '@eslym/sveltekit-adapter-fastcgi';

export default {
    kit: {
        adapter: adapter({
            mode: 'simple' // or 'cluster'
        })
        // ...
    }
};

Runtime Environment

Common Environment

  • SOCKET_PATH: Path to the socket file which the server will listen to. Otherwise, it will listen to HOST and PORT.
  • HOST: Hostname to listen to. Default: localhost.
  • PORT: Port to listen to. Default: 9000.
  • BODY_SIZE_LIMIT: Maximum body size in bytes. Default: 1024 * 1024 * 5 (5MB).
  • REQUEST_READ_TIMEOUT: Maximum time to read request in milliseconds. Default: 10000.
  • FCGI_MAX_CONNS: Maximum number of concurrent connections.
  • FCGI_MAX_REQS: Maximum number of concurrent requests.
  • FCGI_MPXS_CONNS: Multiplexing connections.

Cluster Mode Environment

  • QUEUE_TIMEOUT: Maximum time to wait for a request to be assigned to a worker in milliseconds. Default: 10000.
  • IDLE_KILL_TIMEOUT: Maximum time to wait for a worker to finish its request and kill it in milliseconds. Default: 30000.
  • WORKER_MAX_REQUESTS: Maximum number of requests a worker can handle concurrently. Default: 5.
  • WORKER_COUNT_MAX: Maximum number of workers. Default: os.cpus().length.
  • WORKER_COUNT_MIN: Minimum number of workers. Default: 1.