LogoIndie Hacker Hub
icon of Creem Template

Creem Template

A Next.js App Router template project for integrating Creem with modern web apps.

Introduction

A Next.js App Router template project for integrating Creem with modern web apps. This template demonstrates how to use the Creem SDK to implement common subscription and payment flows. Use this as a starting point for your own Creem-powered SaaS or product.

Overview

This template provides a ready-to-use integration with Creem, Prisma, and Next.js App Router. It demonstrates:

  • Fetching and displaying all products in your Creem account
  • Creating checkout sessions for products
  • Fulfilling orders based on the purchasing account
  • Handling subscription creation, cancellation, and expiration
  • Generating customer portal links for clients with active subscriptions

The codebase is modular, uses TypeScript throughout, and leverages modern React patterns with Shadcn UI, Radix UI, and Tailwind CSS. The template is not taking security into account, so please be careful when using any of its code in production.

Technologies Used

Next.js – React framework for server-side rendering and static site generation Prisma – Type-safe ORM for database access SQLite – Lightweight, file-based relational database Creem SDK – Subscription and payment integration

Information