diff --git a/examples/sveltekit/template-hierarchy/.gitignore b/examples/sveltekit/template-hierarchy/.gitignore
new file mode 100644
index 000000000..c7e35228d
--- /dev/null
+++ b/examples/sveltekit/template-hierarchy/.gitignore
@@ -0,0 +1,25 @@
+node_modules
+
+# Output
+.output
+.vercel
+.netlify
+.wrangler
+/.svelte-kit
+/build
+
+# OS
+.DS_Store
+Thumbs.db
+
+# Env
+.env
+.env.*
+!.env.example
+!.env.test
+
+# Vite
+vite.config.js.timestamp-*
+vite.config.ts.timestamp-*
+
+package-lock.json
\ No newline at end of file
diff --git a/examples/sveltekit/template-hierarchy/README.md b/examples/sveltekit/template-hierarchy/README.md
new file mode 100644
index 000000000..2f6cc332c
--- /dev/null
+++ b/examples/sveltekit/template-hierarchy/README.md
@@ -0,0 +1,88 @@
+# FaustJS SvelteKit Template Hierarchy Example
+
+This example demonstrates how to use FaustJS with SvelteKit to create a headless WordPress application with automatic template hierarchy support.
+
+## What is Template Hierarchy?
+
+WordPress template hierarchy determines which template file is used to display different types of content (posts, pages, archives, etc.). This example shows how to implement similar functionality in a SvelteKit application using FaustJS.
+
+## Features
+
+- ✅ Automatic template selection based on WordPress content type
+- ✅ Support for custom post types and archives
+- ✅ WordPress-style template hierarchy (single.svelte, archive.svelte, index.svelte)
+- ✅ GraphQL data fetching with URQL
+- ✅ Server-side rendering (SSR)
+
+## Getting Started
+
+### Prerequisites
+
+- Node.js v16.0.0 or newer
+- A WordPress site with the [FaustJS plugin](https://wordpress.org/plugins/faustwp/) installed
+- WPGraphQL plugin installed on your WordPress site
+
+### Installation
+
+1. Clone this repository or copy this example
+2. Install dependencies:
+
+```bash
+npm install
+```
+
+3. Configure your WordPress URL in the `.env` file:
+
+```bash
+WORDPRESS_URL=https://your-wordpress-site.com
+```
+
+### Development
+
+Start the development server:
+
+```bash
+npm run dev
+
+# or start the server and open the app in a new browser tab
+npm run dev -- --open
+```
+
+The application will automatically:
+
+- Fetch content from your WordPress site
+- Determine the appropriate template based on the URL
+- Render the content using the matching Svelte template
+
+### Template Structure
+
+Templates are located in `src/wp-templates/`:
+
+- `index.svelte` - Default template (homepage, fallback)
+- `single.svelte` - Single post/page template
+- `archive.svelte` - Archive pages (categories, tags, custom post types)
+
+### Building
+
+To create a production version of your app:
+
+```bash
+npm run build
+```
+
+You can preview the production build with `npm run preview`.
+
+## How It Works
+
+1. The `[...uri]/+page.server.js` route catches all URLs
+2. Uses `uriToTemplate()` from `@faustjs/sveltekit` to:
+ - Query WordPress for content at the given URI
+ - Determine the appropriate template type
+ - Fetch the necessary data
+3. Renders the content using the matching Svelte template
+
+## Learn More
+
+- [FaustJS Documentation](https://faustjs.org/docs/)
+- [SvelteKit Documentation](https://kit.svelte.dev/docs)
+- [WordPress Template Hierarchy](https://developer.wordpress.org/themes/basics/template-hierarchy/)
diff --git a/examples/sveltekit/template-hierarchy/package.json b/examples/sveltekit/template-hierarchy/package.json
new file mode 100644
index 000000000..45d741df3
--- /dev/null
+++ b/examples/sveltekit/template-hierarchy/package.json
@@ -0,0 +1,31 @@
+{
+ "name": "@faustjs/sveltekit-template-hierarchy-example",
+ "private": true,
+ "version": "0.1.0",
+ "license": "0BSD",
+ "type": "module",
+ "scripts": {
+ "dev": "vite dev",
+ "build": "vite build",
+ "preview": "vite preview",
+ "prepare": "svelte-kit sync || echo ''",
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
+ },
+ "devDependencies": {
+ "@faustjs/sveltekit": "workspace:*",
+ "@faustjs/template-hierarchy": "workspace:*",
+ "@sveltejs/adapter-auto": "^6.0.0",
+ "@sveltejs/kit": "^2.16.0",
+ "@sveltejs/vite-plugin-svelte": "^5.0.0",
+ "svelte": "^5.0.0",
+ "svelte-check": "^4.0.0",
+ "vite": "^6.2.6"
+ },
+ "dependencies": {
+ "@urql/core": "^5.1.1",
+ "@urql/exchange-persisted": "^4.3.1",
+ "deepmerge": "^4.3.1",
+ "graphql": "^16.11.0"
+ }
+}
diff --git a/examples/sveltekit/template-hierarchy/src/app.html b/examples/sveltekit/template-hierarchy/src/app.html
new file mode 100644
index 000000000..77a5ff52c
--- /dev/null
+++ b/examples/sveltekit/template-hierarchy/src/app.html
@@ -0,0 +1,12 @@
+
+
+