Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timothymiller/t4-app
Full stack meta-framework for building iOS, Android, and Progressive Web Apps with Tamagui and deploying to Cloudflare.
https://github.com/timothymiller/t4-app
bun cli cloudflare create-t4-app drizzle expo-router honojs millionjs nextjs react react-native react-native-web serverless supabase-auth t4-stack tamagui tanstack trpc typescript ui
Last synced: 5 days ago
JSON representation
Full stack meta-framework for building iOS, Android, and Progressive Web Apps with Tamagui and deploying to Cloudflare.
- Host: GitHub
- URL: https://github.com/timothymiller/t4-app
- Owner: timothymiller
- License: mit
- Created: 2023-04-26T16:20:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-15T17:15:36.000Z (6 months ago)
- Last Synced: 2025-01-09T12:12:35.913Z (12 days ago)
- Topics: bun, cli, cloudflare, create-t4-app, drizzle, expo-router, honojs, millionjs, nextjs, react, react-native, react-native-web, serverless, supabase-auth, t4-stack, tamagui, tanstack, trpc, typescript, ui
- Language: TypeScript
- Homepage: https://t4stack.com
- Size: 39.7 MB
- Stars: 1,539
- Watchers: 18
- Forks: 86
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-universal-react - T4 Stack - Interactive CLI to start a full-stack, typesafe, universal Expo & Next.js app on Cloudflare's edge platform (Starter Kits / Learning more about React Native as a Web Developer)
README
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 runningbun create t4-app
## ๐ The T4 Stack
The T4 Stack is a universal web and native stack made by [Tim Miller](https://twitter.com/ogtimothymiller) 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.
Ship it today and witness **6 second package install** times & **30 second backend deployments**.
๐ Further documentation can be found on the [T4 Stack website](https://t4stack.com). ๐
### ๐ UI Kit
- ๐จ [Tamagui](https://tamagui.dev)
### ๐ฎ Frontend
- ๐ [Next.js](https://nextjs.org)
- ๐ฑ [Expo](https://expo.io)### ๐ก Data Fetching
- ๐ [tRPC](https://trpc.io)
- โฒ๏ธ [Tanstack Query](https://tanstack.com/query/latest)
- ๐ [ts-pattern](https://github.com/gvergnaud/ts-pattern)
- Handle data fetching UI states like this:
![tanstack-ts-pattern](https://github.com/timothymiller/t4-app/assets/46549361/f022b20d-840d-48a9-83b8-c52d5f037880)
### ๐ Performance Improvements
- ๐จ [Million.js](https://million.dev/)
- Virtual DOM replacement for React
- Achieve SolidJS-like performance with React
- ๐ [PattyCake](https://github.com/aidenybai/pattycake)
- Zero-runtime pattern matching with ts-pattern### โ Type Validation
- ๐ค [Valibot](https://valibot.dev)
### ๐งญ Router
- ๐ฒ [Expo Router](https://docs.expo.dev/routing/introduction/)
- โ๏ธ [Solito](https://solito.dev)### ๐ข Global State Management
- ๐งฉ [Jotai](https://jotai.org)
### โ๏ธ Backend
- ๐ฅ [Hono](https://hono.dev)
- ๐ [Cloudflare Workers](https://workers.cloudflare.com)
- ๐ [Cloudflare D1](https://developers.cloudflare.com/d1)
- [SQLite](https://sqlite.org) database for the edge
- ๐๏ธ [Drizzle](https://orm.drizzle.team)### ๐ Authentication
- ๐ [Supabase](https://supabase.com/auth)
## ๐ Background
T4 is a project starter kit for building **type-safe**, **native** & **web** applications in TypeScript using Tamagui, tRPC, and Tauri. 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
- ๐งช (Experimental) Desktop support via TauriBuild native apps for iOS, Android, macOS, Windows, and Linux using the same codebase.
#### Never worry about using XCode or Android Studio again
## ๐ Quick Start
### Basic Setup
> bun v1.0 is required to use `create-t4-app`
To scaffold an app using `create-t4-app`, run any of the following commands.
### **bun**
```bash
bun create t4-app
```### **Tauri**
If you would like to use Tauri use:
```bash
bun create t4-app --tauri
```## โ Why T4?
T4 is the result of extensive research and testing to identify the best libraries for React Native and Web development. We've done the hard work for you, so you can focus on building amazing apps without worrying about performance bottlenecks.
Whether you're developing a mobile app with React Native or a web app using React, T4 is the perfect choice. Our template is designed to seamlessly integrate with your existing projects, making it easy to enhance performance without starting from scratch.
### ๐ Performance
- ๐ 6 second package install time
- ๐ 30 second backend deployments
- ๐ 90 second frontend deployments- Small learning curve
- Instant feedback, rapid development
- Universal across **React Native** & **React Web**
- [Data fetching](https://tanstack.com/query/latest)
- [Styling](https://tamagui.dev)
- [Authentication](https://supabase.com)
- [Navigation](https://solito.dev)
- [Type Safety](https://valibot.dev)
- High code re-use
- Low bundle size
- Edge compatible
- Fast startup time
- Simple setup
- Allows for platform-specific code when needed.## ๐ฆ What's Included
- [Tamagui](https://tamagui.dev) - A UI kit for building beautiful and responsive user interfaces.
- [TanStack](https://tanstack.com/) - High-quality open-source software for React developers.
- [tRPC](https://trpc.io) - A TypeScript framework for building end-to-end typesafe APIs.
- [TypeScript](https://www.typescriptlang.org) - A typed superset of JavaScript that compiles to plain JavaScript.## ๐งฉ 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](https://t4stack.com/extension) or install it from the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=albbus.t4-app-tools).
## โจ Features
- โ 6 second package install time
- โ 30 second backend deployments
- โ 90 second frontend deployments
- โ Tamagui UI kit across all platforms.
- โ Bun support
- โ Million.js Support
- โ PattyCake Support
- โ Valibot Support
- โ Generate Valibot Type Guards from your Drizzle Schema
- โ Supabase Auth
- โ Uses Next.js for building web apps.
- โ Uses Expo for building native mobile apps.
- โ PWA by default for native desktop support. No Electron required.
- โ 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 Biome for lightning fast code consistency.
- โ Github Action publishing for Expo apps
- โ Database migration in CI/CD
- โ Tauri Support## โญ Wish List
๐ The wish list has moved to [the docs website](https://t4stack.com/wish-list).
## ๐ฌ Community
For help, discussion about best practices, or any other conversation that would benefit `create-t4-app`:
[Join the T4 Discord Server](https://discord.gg/wj2GV7AvQd)
## ๐ซถ Contributors
We welcome contributions from anyone and everyone. Please read our [contributing guidelines](https://github.com/timothymiller/t4-app/blob/master/CONTRIBUTING.md) for more information on how to get started.
## ๐ Special Thanks
- [Nate Birdman](https://twitter.com/natebirdman) - Creator of Tamagui
- [Aiden Bai](https://aiden.mov/) - Creator of Million.js and PattyCake
- [Yusuke Wada](https://twitter.com/yusukebe) - Creator of Hono.js
- [Daishi Kato](https://twitter.com/dai_shi) Creator of Jotai
- [Fernando Rojo](https://twitter.com/fernandotherojo) - Inspiration behind Solito
- [Tanner Linsley](https://twitter.com/tannerlinsley) - Creator of TanStack
- [Expo Developers](https://twitter.com/expo) - Insightful office hours## โข๏ธ Disclaimer
The T4 App is not affiliated with or endorsed by [EquipmentShare](https://www.equipmentshare.com/t3) or [T3 app](https://www.equipmentshare.com/t3#apps).
## โ๏ธ License
**Create T4 App** is licensed under the [MIT License](https://github.com/timothymiller/t4-app/blob/master/LICENSE).