Miniflare LocalStack extension (experimental)
This extension makes Miniflare (dev environment for Cloudflare workers) available directly in LocalStack!
⚠️ Please note that this extension is experimental and currently under active development.
Installing
localstack extensions install "git+https://github.com/localstack/localstack-extensions/#egg=localstack-extension-miniflare&subdirectory=miniflare"
How to use
To publish the sample application to Miniflare running in LocalStack, we can use the wrangler CLI with the following environment variables for local dev mode:
export CLOUDFLARE_API_TOKEN=test
export CLOUDFLARE_API_BASE_URL=http://localhost:4566/miniflare
wrangler publish
Note: if you're having troubles with this configuration, e.g., seeing "Fetch failed" error messages on wrangler publish, try using this API endpoint instead:
export CLOUDFLARE_API_BASE_URL=https://localhost.localstack.cloud:4566/miniflare
Once deployed, the Cloudflare worker can be easily invoked via curl:
$ curl http://hello.miniflare.localhost.localstack.cloud:4566/test
Hello World!
Change Log
0.1.2: Pin wrangler version to fix hanging miniflare invocations; fix encoding headers for invocation responses0.1.1: Adapt for LocalStack v3.00.1.0: Upgrade to Miniflare 3.00.0.1: Initial version.
License
The cloudflare/miniflare package and related tooling is licensed under the MIT License.
The code of this LocalStack Extension is published under the Apache 2.0 license.
Metadata
Release files for localstack-extension-miniflare 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| localstack_extension_miniflare-0.1.3.tar.gz | 7.0 kB | Without provenance | Details for localstack_extension_miniflare-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| localstack_extension_miniflare-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for localstack_extension_miniflare-0.1.3-py3-none-any.whl |
Total release size: 15.1 kB
Release files / localstack_extension_miniflare-0.1.3.tar.gz
| Download URL | localstack_extension_miniflare-0.1.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af3aed8771aacb49b0e59613df7da0f613fa70826acb78ee790b85c36af86bf5
|
|
BLAKE2b-256 checksum How to use checksums |
113ee117d03b4962ee1e248755192af8606793a44d84c13904a8310bdbb1e040
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.7
|
Release files / localstack_extension_miniflare-0.1.3-py3-none-any.whl
| Download URL | localstack_extension_miniflare-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a57a9530bf66b86c2152b00d1bbe440feae5165eb01995bc1dbcfd838af639de
|
|
BLAKE2b-256 checksum How to use checksums |
6b1360802d6203b95da155a16ab212fca953a92ae14d61954cfada85c0d2cbc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.7
|
Security for localstack-extension-miniflare 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.