open-index/open-npm huggingface dataset:
npm package: @rayova/cdk-cloudfront-rules
Description: A rule-based CloudFront Function as a CDK Construct
Author: Josh Kellendonk
Latest version: 0.0.0

# CDK CloudFront Rules

This CDK construct produces a CloudFront Function (not to be confused with
Lambda @ Edge) that simplifies CloudFront-based URL rewriting and redirects.

## Example

<!-- <macro exec="lit-snip ./test/integ/integ.rules.lit.ts"> -->
```ts
// Create a CloudFrontRules construct
const cloudFrontRules = new CloudFrontRules(scope, 'CloudFrontRules', {
  rules: [
    // Rewrite URIs matching /rewrite-* to /* using a capture group. (Think
    // Apache/.htaccess RewriteRule)
    Rule.rewriteRule({
      pattern: '^/rewrite-(.*)',
      location: '/$1',
    }),

    // Redirect /redirect-* to https://www.example.com/*
    Rule.rewriteRule({
      pattern: '^/redirect-(.*)',
      patternFlags: 'i', // case insensitive
      location: 'https://www.example.com/$1',
      redirectType: RedirectType.TEMPORARY,
    }),

    // Note: Rules are applied in the order they're provided. Rewrite rules
    // are applied while there has not yet been a redirect or matching
    // rewrite with the 'last' option.
    //
    // In this example, were you to visit a URI like
    // /rewrite-redirect-foobar, the first rule will rewrite you to
    // /redirect-foobar and then the second rule will match,
    // redirecting you to https://www.example.com/foobar
  ],
});

// Create your CloudFront distribution.
const distribution = new cloudfront.Distribution(scope, 'Distribution', {
  defaultBehavior: {
    origin: new cloudfront_origins.HttpOrigin('www.example.com', {
      protocolPolicy: cloudfront.OriginProtocolPolicy.HTTPS_ONLY,
    }),

    // Associate the produced function with VIEWER_REQUEST events.
    functionAssociations: [{
      eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,
      function: cloudFrontRules.function,
    }],
  },
});
```
<!-- </macro> -->
npm package: @rayova/cdk-cognito-secret
Description: Export Cognito client secrets to Secrets Manager
Author: Josh Kellendonk
Latest version: 0.1.6

![Rayova A Fintech Corporation][logo]

# CDK Cognito Secret

This project provides an AWS CDK construct that exports an AWS Cognito client secret to a Secrets Manager secret.

## Usage
<!-- <macro exec="lit-snip ./test/main.integ.ts"> -->
```ts
// Create your user pool client
const userPoolClient = new cognito.UserPoolClient(scope, 'UserPoolClient', {
  userPool,
  // Ensure that you generate a user pool client secret
  generateSecret: true,
});

// Create the Secrets Manager secret in which to store the client secret.
const secret = new secretsmanager.Secret(scope, 'Secret');

// Create the UserPoolClientSecret to fill the secret with the client credentials.
new UserPoolClientSecret(scope, 'UserPoolClientSecret', {
  // Fetches the client secret from the given user pool client
  userPool,
  userPoolClient,
  // Stores the client secret here
  secret,
});
```
<!-- </macro> -->

This will produce a JSON secret value like this one:

```json
{
  "issuer": "https://cognito-idp.REGION.amazonaws.com/USER_POOL_ID",
  "clientId": "1234567890abcdefghijklmnop",
  "clientSecret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
```

> You can use the issuer's `.well-known/openid-discovery` sub-path to get auth and token endpoints as well as the JWKS.   

[logo]: images/rayova-fintech-corp.png
npm package: @rayova/cdk-serverless-nextjs
Description: Deploy Serverless Next.js on Lambda @ Edge with the AWS CDK
Author: Josh Kellendonk
Latest version: 0.1.42

![Rayova A Fintech Corporation][logo]

# CDK Serverless Next.js

This project provides an AWS CDK construct to Deploy Serverless Next.js to
Lambda@Edge. We designed the construct following these principles:

* Sensible defaults
* Feature parity with Next.js
* Fast deployments
* Build the AWS Lambda deployment package for you
* Provide `BehaviorOptions` for you to add to your CloudFront Distribution

## Supported Next.js features

This construct library aims for feature parity with Next.js. Through
[@sls-next/lambda-at-edge][@sls-next/lambda-at-edge], this CDK construct
supports:

* Next.js 10/11
* Static pages
* Server-side props
* Static props and static prop fallback
* Incremental static regeneration
* Image optimization
* API routes

## Example Usage

<!-- <macro exec="lit-snip ./test/integ.main.lit.ts"> -->
```ts
// Create a ServerlessNextjs construct in your stack to get started.
// Your stack MUST be in us-east-1 as that's the only region in which AWS
// supports deploying edge lambdas.
const serverlessNextjs = new ServerlessNextjs(scope, 'NextJs', {
  // Then produce and add a Next.js artifact to ServerlessNextjs by
  // building it from your project directory.
  nextjsArtifact: NextjsArtifact.fromBuild({
    // Provide your Next.js project directory.
    nextjsDirectory: pathToYourProjectDirectory,

    // Provide the commands you need NextjsArtifact to run to build the
    // `.next` directory.
    buildCommand: ['yarn', 'next', 'build'],
  }),
});

// Create CloudFront distribution
const dist = new cloudfront.Distribution(scope, 'Distribution', {
  // And configure it with serverless Next.js as Lambda @ Edge
  ...serverlessNextjs.cloudFrontConfig,

  // Add anything else you need on your CloudFront distribution here, like
  // certificates, cnames, price classes, logging, etc.
});
```
<!-- </macro> -->

[logo]: images/rayova-fintech-corp.png
[@sls-next/lambda-at-edge]: https://www.npmjs.com/package/@sls-next/lambda-at-edge
npm package: @rayova/mobirise-hosting
Description: > Unsupported for external use.
Latest version: 0.2.1

# Mobirise Hosting CLI

> Unsupported for external use.

**mobirise-hosting.json**

```json
{
    "id": "mobirise-hosting-dev",
    "files": "site",
    "domainNameConfig": {
        "domain": "mobirise-hosting-dev.812696460994.dev.rayova.com",
        "redirectDomains": [
            "www.mobirise-hosting-dev.812696460994.dev.rayova.com"
        ],
        "hostedZoneId": "Z06399031EF646V59RCNP",
        "hostedZoneName": "812696460994.dev.rayova.com"
    }
}
```

**.github/workflows/cd.yml**

```yaml
name: CD

on:
  push:
    branches:
      - main

jobs:
  release_test:
    runs-on: ubuntu-latest

    # These permissions are needed to interact with GitHub's OIDC Token endpoint.
    permissions:
      id-token: write
      contents: read

    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 18
      - run: npm i -g @rayova/mobirise-hosting@^0.0.1
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::{account id}:role/{role}
          aws-region: ca-central-1
      - run: mobirise-hosting
```