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

landa

v2.1.7

Published

A super simple bundler for nodeJS. Based on rollup. Specially well suited for Lambda. Strong typescript support.

Readme

Landa

A super simple bundler for nodeJS. Based on rollup. Specially well suited for Lambda. Strong typescript support.

Why?

There is many tools to build nodeJS, but most need either excessiv configuration (webpack/rollup/..) or try solve many problems (serverless). If you'd just like to bundle your typescript so some other tool may deploy it to lambda (e.g. via aws-cdk), Landa is a solid choice.

Features

  • Typescript transpilation, with or without typechecking enabled
  • Dev Server with automatic reloading on changes
  • Production builds including dependency installation
  • Invocation with pre-defined request data

Table of Contents

  • Installation
  • Commands
    • Build
    • Serve
    • Invoke
  • Configuration Options
  • Frameworks
  • Dependency Handling
  • Deploying

Installation

yarn install landa
# or: npm install landa

Commands

These are some example scripts that you can add to package.json.

{
  // Build for production
  "build": "landa build",
  // Serve dev build
  "dev": "landa serve --dev",
  // Invoke dev build
  "invoke": "landa invoke --dev"
}

Build

Landa builds your code using rollup, babel and typescript. Terser is run for production builds, sourcemaps are always generated.

Serve

Landa contains a fastify based dev server, that will redirect http requests on a given port (4004 by default) to your code, while reloading if your code changes.

Invocation

Invocation allows you to define different requests by name and invoke your code with any of those requests easily, while the output is written to a json file.

Invocation configuration

Add an invocation config to your project, e.g. into invoke.js (or invoke.json) in your root directory.

module.exports = {
  helloWorld: {
    // Request path
    path: '/hello-world',
    // Optional body
    body: {
      hello: 'world',
    },
    // Optional headers
    headers: {
      Authorization: 'Bearer ...',
    },
    // Optional method, default is GET
    httpMethod: 'POST',
    // Optional querystring parameters
    queryStringParameters: {
      id: '123',
    },
  },
};

You can call the helloWorld invocation by:

yarn run invoke helloWorld
# or: npm run invoke helloWorld

Configuration Options

Add optional configuration options to your package.json > landa

// package.json
{
  "landa": {
    // Path to a js script thats run before anything, e.g. to setup env
    "preload": "./index.js",
    // Environment variables, especially for dev server
    "env": { "DB_URI": "http://localhost:8081" },
    // Dev server port
    "servePort": 4004,
    // Enable type-checking (disabled by default!), can be set to "ts2" for `rollup-plugin-typescript2` instead of `@rollup/plugin-typescript`
    "typeCheck": true,
    // Outdir for production builds
    "outDir": "./lib/prod",
    // Outdir for dev builds
    "devDir": "./lib/dev",
    // Path to a js/json file that exports invocation config
    "invokeConfigPath": "./invoke.js",
    // Folder that invocation output is written to
    "invokeOutDir": "./out",
    // Entry, default is any of "./src/index.ts" / "./src/index.js" / "./index.ts" / "./index.js"
    "entryFile": "./src/index.ts"
  }
}

Frameworks

Landa supports most libraries that run on AWS lambda / nodeJS. These frameworks where specifically tested:

  • Middy
  • NestJS

Dependency Handling

Make sure to add all critical dependencies to your package.json > dependencies. devDependencies will be ignored for production builds.

Deploying

Landa does not do any deployment. Instead, you can zip the output folder yourself, or use aws-cdk.

License

MIT