More Premium Hugo Themes Premium Nextjs Themes

Nextjs Native Starter

One Next.js codebase for iOS, Android and Web using Capacitor, TailwindCSS and authentication with Supertokens, written in Typescript

Nextjs Native Starter

One Next.js codebase for iOS, Android and Web using Capacitor, TailwindCSS and authentication with Supertokens, written in Typescript

Author Avatar Theme by robschilderr
Github Stars Github Stars: 177
Last Commit Last Commit: Jan 11, 2026 -
First Commit Created: Apr 29, 2023 -
Nextjs Native Starter screenshot

Overview

This product analysis is for a starter project that allows developers to build a web application with authentication and session management, as well as a mobile application using Capacitor. The project uses Next.js, Tailwind CSS, and Supertokens for authentication and session management. The key benefit of this project is that developers can use the same React UI for both the web and mobile application, saving time and providing a unified UI experience.

Features

  • Use Capacitor without Ionic, with TailwindCSS + NextJS only
  • Publish apps to iOS and Android + access to native APIs
  • Shared code between web and mobile applications
  • Authentication and session management with Supertokens
  • Pre-configured development environment with packages and tools
  • Ability to use any web/js library
  • Similar performance to React Native apps using Capacitor

Installation

  1. Run npx create-supertokens-app@latest --manager=yarn to create the app
  2. Choose ‘Capacitor’ when prompted for the app type
  3. Make sure yarn and npm are installed on your computer
    • If NPM is not installed, install NPM first
    • Once NPM is installed, install yarn with the command npm install --global yarn
  4. Navigate to the folder with cd <folder> and run yarn install and yarn dev to start the development server
  5. For iOS, go to the next-app folder and run yarn build and yarn open:ios
  6. For Android, go to the next-app folder and run yarn build and yarn open:android

Please refer to the Capacitor docs and Supertokens docs for more information.

Summary

This starter project provides a convenient way for developers to build web and mobile applications with authentication and session management using Next.js, Tailwind CSS, Supertokens, and Capacitor. The project allows for shared code between web and mobile applications, providing faster development and a unified UI with the same React components. It also offers the flexibility to use any web/js library and promises similar performance to React Native apps using Capacitor.