Examples

Explore our collection of example projects to learn how to build different types of applications with Sapling. All examples are available in our Examples GitHub Repository.

Basic Examples

CMS Examples

... More coming soon (PayloadCMS, Notion, Hygraph, DatoCMS, Storyblok, Prismic, etc.)

Framework Examples

  • Alpine.js - Using Sapling with Alpine.js
  • HTMX - Using Sapling with HTMX
  • Web Components - Using Web Components. We know this is a not a framework (technically) #usetheplatform
  • Petite Vue - Using Petite Vue
  • React Component - Using a React Component bundled with Vite

Integration Examples

Misc Examples

Runtime Examples

Deployment Examples

Running Examples

  1. Clone the repository:
git clone https://github.com/withsapling/examples.git
cd examples
  1. Navigate to an example:
cd deno/hello-deno  # or any other example
  1. Start the development server:
deno task dev  # for Deno examples
# or
npm run dev   # for Node.js examples

Each example includes its own README with specific instructions and explanations.