Giter Site home page Giter Site logo

ringge / t4-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timothymiller/t4-app

0.0 0.0 0.0 6.16 MB

Type-Safe, Full-Stack Starter Kit for React Native + Web.

Home Page: https://app.t4stack.com

License: Apache License 2.0

JavaScript 11.55% TypeScript 68.72% MDX 19.73%

t4-app's Introduction

Logo of Create T4 App

create-t4-app

Interactive CLI to start a full-stack, typesafe, universal Expo & Next.js app on Cloudflare's edge platform.

Get started with the T4 Stack by running pnpm create t4-app

Join the T4 discord community ย  Weekly downloads for create-t4-app on npmjs.org ย  VSCode Extension Installs

๐Ÿ” The T4 Stack

The T4 Stack is a universal web and native stack made by Tim Miller focused on developer experience, rapid development, and performance.

Easy integration with Cloudflare services, such as R2 & D1 enable developers to build apps with AI-powered features at a lower cost compared to AWS.

๐Ÿ‘‰ Further documentation can be found on the T4 Stack website. ๐Ÿ‘ˆ


T4 is compatible with Cloudflare Pages ย  T4 uses Next.js ย  T4 uses Expo ย  T4 is written in TypeScript

๐Ÿ“ UI Kit

๐Ÿ“ก Data Fetching

๐Ÿ”ฎ Frontend

๐Ÿงญ Navigation

๐Ÿข Global State Management

โš™๏ธ Backend

๐Ÿ”’ Authentication

or

๐Ÿ“– Background

T4 is a project starter kit for building type-safe, native & web applications in TypeScript using Tamagui, tRPC, and Turborepo. Deploy to Cloudflare for a global edge network. All at a fraction of the cost of AWS, Vercel, or Azure.

It provides a unified, opinionated, & minimalistic setup for quickly getting started with building native & web apps, using the same code, without having to worry about the complexities of setting up a development environment.

๐Ÿ’ช Build Apps for All Platforms

  • ๐Ÿ“ฑ iOS
  • ๐Ÿค– Android
  • ๐Ÿ•ธ๏ธ Web
    • Progressive Web App (PWA) support
    • ๐Ÿ’ป macOS
    • ๐ŸชŸ Windows
    • ๐Ÿง Linux

Build native apps for iOS, Android, macOS, Windows, and Linux using the same codebase.

Never worry about using XCode or Android Studio again

Android Studio ย  XCode

โ“ Why T4?

  • Small learning curve
  • Instant feedback, rapid development
  • Universal across React Native & React Web
  • High code re-use
  • Low bundle size
  • Edge compatible
  • Fast startup time
  • Simple setup
  • Allows for platform-specific code when needed.
  • Type-safety

๐Ÿ“ฆ What's Included

  • Tamagui - A UI kit for building beautiful and responsive user interfaces.
  • Turborepo - A high performance build system for TypeScript, built in Rust.
  • tRPC - A TypeScript framework for building end-to-end typesafe APIs.
  • TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.

๐Ÿš€ Quick Start

pnpm v8.6.5 is required to use create-t4-app

pnpm is required to use `create-t4-app`

To scaffold an app using create-t4-app, run any of the following commands.

pnpm

pnpm create t4-app

Supabase

If you would like to use Supabase as your authentication provider instead of Clerk use:

pnpm create t4-app --supabase

๐Ÿงฉ VSCode Extension

The VSCode extension is optional but highly recommended. It provides a better developer experience by providing code actions to help you scaffold your app. You can find more info in the docs or install it from the VSCode Marketplace.

โœจ Features

  • โœ… Uses Next.js for building web apps.
  • โœ… Uses Expo for building native mobile apps.
  • โœ… PWA by default for native desktop support. No Electron required.
  • โœ… Tamagui UI kit across all platforms.
  • โœ… Uses Cloudflare Workers for serverless functions.
  • โœ… No Docker containers required.
  • โœ… Uses tRPC & Tanstack Query for fetching & caching across all platforms.
  • โœ… Authentication across all platforms.
  • โœ… Powered by TypeScript for type safety and better developer experience.
  • โœ… Comes with pre-configured ESLint and Prettier for code consistency.
  • โœ… Github Action publishing for Expo apps
  • โœ… Database migration in CI/CD
  • โœ… Supabase Auth
  • โœ… PNPM support

โญ Wish List

I would like to add the following features to create-t4-app in the future:

  • Legend State
  • Million.js example
  • GraphQL (type-safe) data fetching
    • โฒ๏ธ GQty - A No-GraphQL client for TypeScript.
    • ๐Ÿ”„ Garph - Fullstack GraphQL Framework for TypeScript
  • ๐Ÿ“š Storybook support
  • ๐Ÿ–Œ๏ธ Chromatic support

๐Ÿ’ฌ Community

For help, discussion about best practices, or any other conversation that would benefit create-t4-app:

Join the T4 Discord Server

๐Ÿซถ Contributors

We welcome contributions from anyone and everyone. Please read our contributing guidelines for more information on how to get started.

๐Ÿ‘ Special Thanks

โš–๏ธ License

Create T4 App is licensed under the Apache License.

t4-app's People

Contributors

albbus-stack avatar coniferconcepts avatar death666machine avatar desttro avatar rosswaycaster avatar stillmatic avatar timothymiller avatar wezter96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.