Getting Started

You almost certainly want to use Build, Torpor's full-stack framework, to build a site with Torpor:

npm init @torpor/build@latest my-project
cd my-project
npm install
npm run dev

Otherwise, you can add Torpor's view layer directly to your project:

npm install @torpor/view

VS Code Extension

You can install the Torpor extension for VS Code by searching in the extensions sidebar or from the Visual Studio Marketplace. It provides syntax highlighting, type checking, auto-completion, hover information and go to definition for .torp files.

Next steps

  • Learn how to write Components, which are functions in a .torp file with script, markup and styles
  • To build a site or app with routing, data loading and forms, see the Build quick start
  • Try components out in the playground