Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sst

Package Overview
Dependencies
Maintainers
3
Versions
1245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sst

  • 3.3.25
  • npm
  • Socket score

Version published
Weekly downloads
120K
decreased by-15.02%
Maintainers
3
Weekly downloads
 
Created

What is sst?

The SST (Serverless Stack Toolkit) npm package is a framework for building serverless applications. It provides a set of tools and abstractions to simplify the development, deployment, and management of serverless applications on AWS. SST supports various AWS services and allows developers to define their infrastructure as code using AWS CDK (Cloud Development Kit).

What are sst's main functionalities?

Define Infrastructure

This feature allows you to define your cloud infrastructure using SST. In this example, an S3 bucket is created within a stack.

const sst = require('@serverless-stack/resources');

class MyStack extends sst.Stack {
  constructor(scope, id, props) {
    super(scope, id, props);

    // Define an S3 bucket
    const bucket = new sst.Bucket(this, 'MyBucket');
  }
}

module.exports = function main(app) {
  new MyStack(app, 'my-stack');
};

Deploy Lambda Functions

This feature allows you to deploy AWS Lambda functions easily. In this example, a Lambda function is defined with a handler located at 'src/lambda.handler'.

const sst = require('@serverless-stack/resources');

class MyStack extends sst.Stack {
  constructor(scope, id, props) {
    super(scope, id, props);

    // Define a Lambda function
    const lambda = new sst.Function(this, 'MyFunction', {
      handler: 'src/lambda.handler',
    });
  }
}

module.exports = function main(app) {
  new MyStack(app, 'my-stack');
};

API Gateway Integration

This feature allows you to integrate API Gateway with your Lambda functions. In this example, an API Gateway is created with a route that triggers the Lambda function defined at 'src/lambda.handler'.

const sst = require('@serverless-stack/resources');

class MyStack extends sst.Stack {
  constructor(scope, id, props) {
    super(scope, id, props);

    // Define an API Gateway
    const api = new sst.Api(this, 'Api', {
      routes: {
        'GET /': 'src/lambda.handler',
      },
    });
  }
}

module.exports = function main(app) {
  new MyStack(app, 'my-stack');
};

Other packages similar to sst

FAQs

Package last updated on 21 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc