1.0.13 • Published 2 years ago

new-capnp-generator v1.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

capnp-generator

This project automatically generates Cap'n'Proto files from JavaScript/Wasm files stored in any S3 bucket.

Overview

  1. Installation
  2. Configuration
  3. Usage
    1. Production Mode
    2. Development Mode
  4. Example Usage

Installation

To install the project, run yarn or npm i

Configuration

To configure the project, follow these steps:

  1. Install the AWS Command Line Interface (CLI) by running pip install awscli.
  2. Run aws configure and provide your public access key and private key.

Note: This project has been implemented using Scaleway Object Storage S3. If you want to use a similar setup, please refer to this tutorial.

Usage

Production mode

To run the project in production mode, use the command yarn start or npm start

Development Mode

To run the project in development mode, use the command yarn run dev or npm run dev

Example Usage

If you are using The Fake Cloudflare API, you can push your code to an S3 bucket. The S3 bucket will then call the capnp-generator to generate the required configuration file for the Workerd Runtime, and save the configuration in the S3 bucket.

flowchart TB
    client --> wrangler --> |https| fake-cloudflare-api
    subgraph Cloud 
        S3
        subgraph Kubernetes 
          capnp-generator
          fake-cloudflare-api
        end
        fake-cloudflare-api --> |push codes| S3
        capnp-generator --> |push capnp| S3
        S3 --> |get file list| capnp-generator
    end
1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago