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

@thomaslandro/sveltekit-lambda-adapter

v0.0.15

Published

Forked from @djverral/sveltekit-lambda-adapter. A small adapter to bundle sveltekit for deployment to aws lambda

Readme

SvelteKit Lambda Adapter

An adapter that makes as few assumptions as possible about what infrastructure you might like to use within AWS. This means all files; client, server and static are stored on a single lambda which in my case is proxying a http api gateway, with catch all routing.

I've tested this with a node lambda that is using the minimum memory possible (128mb) and even with coldstarts most content loads within 1s, with the opportunity to improve dramatically afterwards.

There's probably lot's of reasons you wouldn't want to do this, but it suits my needs so here we are.

Installation

npm install -D @djverrall/sveltekit-lambda-adapter

You will then need to alter your svelte.config.js to use the adapter:

import adapter from '@djverrall/sveltekit-lambda-adapter';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	preprocess: preprocess(),

	kit: {
		adapter: adapter()
	}
};

export default config;

Usage

Once installed and adjusted in your svelte config, you may run npm run build which will generate a .aws-svelte/ folder, along with a zip of the built code which can be directly loaded into lambda. The default handler path at the moment is svelte.handler.

How you deploy the lambda (and assosciated API gateway most likely) is up to you, I use both pulumi and terraform. If you want to use SAM/Serverless or others you can point to the .aws-svelte/lambda folder, keeping in mind the handler path.

Support

Right now this is highly experimental and unsupported. Please use at your own risk and consider that this may not be the solution for production systems. There are much better products that are better developed than this. I'd never worked with JS or TS really a fortnight ago, so expect this code to be of fairly low quality.

Project Status

I've created this package so I can easily reuse the code in my own projects. I don't particularly want or need the overhead of cloudfront distros, s3 or other infrastructure, so this is just the shortest cheapest path to serving my sveltekit projects using AWS (for me). Please bear it in mind that I may never contribute to this again - and as a consequence if something isn't working for you - I probably will not help. That all said, thanks for stopping by.