
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@fastly/create-compute
Advanced tools
A CLI for creating new JavaScript (TypeScript) applications on Fastly Compute
An npm create
script for interactively creating new JavaScript (TypeScript) applications for Fastly Compute.
npm create @fastly/compute
Follow the interactive prompts to select a directory, language, and starter kit, to create your Fastly Compute application in JavaScript or TypeScript.
NOTE:
@fastly/create-compute
is provided as a Fastly Labs product. Visit the Fastly Labs site for terms of use.
In its simplest form:
npm create @fastly/compute
You may also pass a number of command line options, in the form of npm create @fastly/compute -- [<options>]
:
Options:
--help - Displays a help screen.
--directory=<pathspec> - Specifies the directory to create the new
application. If the directory exists, it must
be empty. Defaults to the current directory.
--author=<author-name>, ... - Sets the author(s) in fastly.toml.
--language=<lang> - Used to select a category of starter kit.
Can be 'javascript' or 'typescript'.
Cannot be used with --from.
--starter-kit=<id> - Used to specify a starter kit. Must be used
with --language, and cannot be used with
--default-starter-kit or --from.
--default-starter-kit - Uses 'default' as the starter kit.
Equivalent to --starter-kit=default.
Cannot be used with --starter-kit or --from.
--list-starter-kits - Query GitHub to list the starter kits
available. May be used with --language.
--from=<pathspec-or-url> - Specifies a directory with a fastly.toml, a
URL to a GitHub repo path with a fastly.toml,
or a URL to a Fiddle, and will be used as the
starting point of the new application. Cannot
be used with --language or --starter-kit.
--fastly-cli-path=<pathspec> - Path to the fastly CLI command. If not
specified, then it will be searched from the
system path.
--no-confirm - Do not show confirmation prompt before
creating the application.
After choosing a language (or specifying one via --language
), you are prompted to select a starter kit. The initial list will contain a small selection of common starter kits. If you wish to pick from the full list of Fastly-provided Starter Kits for the selected language, select Choose a starter kit from GitHub.
, and the tool will query GitHub for the widest selection.
By using the --from
argument, or by selecting Specify starter kit or directory
from the interactive prompts, you may specify an existing Compute JavaScript application to base your new application from. You may provide one of the following:
/path/to/existing/app
.https://fiddle.fastly.dev/fiddle/<fiddle-id>
.If you encounter any non-security-related bug or unexpected behavior, please file an issue using the bug report template.
Please see our SECURITY.md for guidance on reporting security-related issues.
MIT.
FAQs
An npm init initializer for creating a new JavaScript (TypeScript) application on Fastly Compute
We found that @fastly/create-compute demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.