GitXplorerGitXplorer
v

platforms

public
5577 stars
726 forks
53 issues

Commits

List of commits on branch main.
Verified
7e3355678a56d9368e49cd090d729701ba4eff57

Migrate to Drizzle ORM (#404)

rrealmikesolo committed 3 months ago
Verified
29e20e790eaf17d4d5051c23a69636dce724c174

Update dependencies. (#353)

lleerob committed 10 months ago
Verified
fdca323043a9293f07b89be54e2d5156ce7102c0

Fix analytics Top Pages rendering bug (#331)

vversecafe committed 10 months ago
Verified
ff88e606a31948ae517debc6634da33ad6621f28

Chore: collpase imports from the same library into a single statement (#262)

TTatisLois committed 10 months ago
Verified
a634401785df684f7f51904663ee426a8da14236

fix: (minor) double class (#284)

jjpvalery committed 10 months ago
Verified
841619c772664574c0f7c8836102631cfafb137d

Subdomain Previews Implementation (#347)

ssteven-tey committed 10 months ago

README

The README file for this repository.
Platforms Starter Kit

The all-in-one starter kit
for building multi-tenant applications.

Introduction · Demo · Deploy Your Own · Guide · Kitchen Sink · Contributing


Introduction

The Platforms Starter Kit is a full-stack Next.js app with multi-tenancy and custom domain support. Built with Next.js App Router, Vercel Postgres and the Vercel Domains API.

Here's a quick 30-second demo:

https://github.com/vercel/platforms/assets/28986134/bd370257-0c27-4cf5-8a56-28589f36f0ef

Features

  1. Multi-tenancy: Programmatically assign unlimited custom domains, subdomains, and SSL certificates to your users using the Vercel Domains API
  2. Performance: Fast & beautiful blog posts cached via Vercel's Edge Network, with the ability to invalidate the cache on-demand (when users make changes) using Incremental Static Regeneration + Next.js' revalidateTag API
  3. AI Editor: AI-powered Markdown editor for a Notion-style writing experience powered by Novel
  4. Image Uploads: Drag & drop / copy & paste image uploads, backed by Vercel Blob
  5. Custom styles: Custom fonts, 404 pages, favicons, sitemaps for each site via the Next.js file-based Metadata API
  6. Dynamic OG Cards: Each blog post comes with a dynamic OG image powered by @vercel/og
  7. Dark Mode: For a better user experience at night
  8. Multi-tenant Preview URLs: Preview changes to your client sites using Vercel Preview URLs. Learn more.
Demo

Deploy Your Own

Deploy your own version of this starter kit with Vercel.

Deploy with Vercel

You can also read the guide to learn how to develop your own version of this template.

What is a multi-tenant application?

Multi-tenant applications serve multiple customers across different subdomains/custom domains with a single unified codebase.

For example, our demo is a multi-tenant application:

Another example is Hashnode, a popular blogging platform. Each writer has their own unique .hashnode.dev subdomain for their blog:

Users can also map custom domains to their .hashnode.dev subdomain:

With the Platforms Starter Kit, you can offer unlimited custom domains at no extra cost to your customers as a premium feature, without having to worry about custom nameservers or configuring SSL certificates.

Examples of platforms

Vercel customers like Hashnode, Super, and Cal.com are building scalable platforms on top of Vercel and Next.js. There are multiple types of platforms you can build with this starter kit:

1. Content creation platforms

These are content-heavy platforms (blogs) with simple, standardized page layouts and route structure.

“With Vercel, we spend less time managing our infrastructure and more time delivering value to our users.” — Sandeep Panda, Co-founder, Hashnode

  1. Hashnode
  2. Mintlify
  3. Read.cv

2. Website & e-commerce store builders

No-code site builders with customizable pages.

By using Next.js and Vercel, Super has fast, globally distributed websites with a no-code editor (Notion). Their customers get all the benefits of Next.js (like Image Optimization) without touching any code.

  1. Super.so
  2. Typedream
  3. Makeswift

3. B2B2C platforms

Multi-tenant authentication, login, and access controls.

With Vercel and Next.js, platforms like Instatus are able to create status pages that are 10x faster than competitors.

  1. Instatus
  2. Cal.com
  3. Dub

Built on open source

This working demo site was built using the Platforms Starter Kit and:

Contributing

  • Start a discussion with a question, piece of feedback, or idea you want to share with the team.
  • Open an issue if you believe you've encountered a bug with the starter kit.

Author

License

The MIT License.