Skip to content
  • Workflows
  • Getting started

Project structure

This page provides an overview of all the folder and file conventions for Kinde workflows, and recommendations for organizing your project.

Folder and file conventions

Link to this section

Your workflow code can live either in a brand new repo or it can co-exist with your main application code.

Top-level folders

Link to this section

Top-level folders are used to organize your workflow code

kindeSrc/
└── environment/
└── workflows/
Folder nameDescription
kindeSrcThe root directory of your custom code. Allows for co-locating Kinde code with your application code
environmentThe context for the workflow
workflowsHouses all your workflow code

Top-level files

Link to this section

Top-level files are used to configure your project and manage dependencies

File nameDescription
package.jsonProject dependencies
kinde.jsonConfiguration file for Kinde

Workflow files

Link to this section

The files which contain your workflow code. These files are executed when the workflow is triggered.

File nameExtensionDescription
Workflow.ts .jsCall the file whatever you like so long as it ends with “Workflow” e.g m2mWorkflow.ts

Organizing your project

Link to this section

Kinde is mostly unopinionated about how you organize and colocate your project files. So long as you follow the conventions above, you can organize the workflow files within the workflows folder however you like.