Platforms Starter Kit

Platforms Starter Kit
Type: Code
Framework: Next.js
CSS: Tailwind
Database: Vercel Blob

The Platforms Starter Kit is a full-stack Next.js application with multi-tenancy and custom domain support. It is built with Next.js App Router, Vercel Postgres, and the Vercel Domains API. Here are its key features:

  • Multi-tenancy: It allows programmatically assigning unlimited custom domains, subdomains, and SSL certificates to users using the Vercel Domains API.
  • Performance: Blog posts are fast and beautifully cached via Vercel’s Edge Network. The cache can be invalidated on-demand using Incremental Static Regeneration and Next.js’ revalidateTag API.
  • AI Editor: An AI-powered Markdown editor provides a Notion-style writing experience powered by Novel.
  • Image Uploads: Users can drag & drop or copy & paste image uploads, backed by Vercel Blob.
  • Custom Styles: Custom fonts, 404 pages, favicons, and sitemaps are available for each site via the Next.js file-based Metadata API.
  • Dynamic OG Cards: Each blog post comes with a dynamic OG image powered by @vercel/og.
  • Dark Mode: There’s a dark mode for better user experience at night.
  • Multi-tenant Preview URLs: Users can preview changes to their client sites using Vercel Preview URLs.

This starter kit allows you to build multi-tenant applications where you can serve multiple customers across different subdomains/custom domains with a single unified codebase. It’s particularly useful for content creation platforms, website & e-commerce store builders, and B2B2C platforms.

Examples of platforms built with this kit include Hashnode, Super, and Cal.com.

  • Hashnode: Each writer has their own unique .hashnode.dev subdomain for their blog.
  • Super: Offers fast, globally distributed websites with a no-code editor (Notion) and customizable pages.
  • Cal.com: Provides multi-tenant authentication, login, and access controls.

This demo site was built using the Platforms Starter Kit with technologies like Next.js, Tailwind for CSS, Prisma as the ORM, Novel for the WYSIWYG editor, Vercel Postgres for the database, Vercel Blob for image uploads, NextAuth.js for authentication, Tremor for charts, and Vercel for deployment.

You can contribute by starting a discussion, opening an issue if you encounter a bug, or connecting with the author, Steven Tey.

License: The MIT License.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.