Installation
Create a new Bini.js app and run it locally.
Quick start
- Create a new Bini.js app named
my-app cd my-appand start the dev server.- Visit
http://localhost:3000.
@/*.Native Platform Support
Bini.js lets you build for multiple platforms from a single codebase. Use the --platform flag to target your desired platform:
Default target with full framework features
Windows, macOS, Linux — native binaries
Android & iOS — native apps
System requirements
Before you begin, make sure your development environment meets the following requirements:
- Operating systems: macOS, Windows, and Linux.
- For desktop builds: Windows (C++ Build Tools), macOS (Xcode CLT), Linux (WebKitGTK)
- For mobile builds: Android (JDK 17, Android Studio), iOS (Xcode, CocoaPods)
Supported browsers
Bini.js supports modern browsers with zero configuration.
- Chrome 111+
- Edge 111+
- Firefox 111+
- Safari 16.4+
Create with the CLI
The quickest way to create a new Bini.js app is using create-bini-app, which sets up everything automatically for you. To create a project, run:
On installation, you'll see the following prompts:
create-bini-app will create a folder with your project name and install the required dependencies.Run the development server
- Run
npm run devto start the development server. - Visit
http://localhost:3000to view your application. - Edit the
app/page.tsxfile and save it to see the updated result in your browser.
CLI Flags
Skip prompts by passing flags directly:
| Flag | Description |
|---|---|
| --typescript | Use TypeScript (default) |
| --javascript | Use JavaScript |
| --tailwind | Use Tailwind CSS (default) |
| --css-modules | Use CSS Modules |
| --none | No styling — clean slate |
| --platform <target> | web · windows · macos · linux · android · ios |
| --app-name <name> | Display name for desktop/mobile apps |
| --sign / --nosign | Code-signing setup |
| --npm / --pnpm / --yarn / --bun | Force a specific package manager |
| --install / --no-install | Install dependencies |
| --force | Overwrite existing directory |
| --version, -v | Print CLI version |
| --help, -h | Show help |
Set up TypeScript
Bini.js comes with built-in TypeScript support. To add TypeScript to your project, rename a file to .ts / .tsx and run npm run dev. Bini.js will automatically install the necessary dependencies and add a tsconfig.json file with the recommended config options.
Set up linting
Bini.js uses Oxlint for linting and Oxfmt for formatting — pre-configured and ready to use.
These scripts refer to the different stages of developing an application:
npm run lint: Runs Oxlint (50-100× faster than ESLint).npm run format: Runs Oxfmt (Prettier-compatible).npm run check: Runs both lint and format.
Set up Absolute Imports and Module Path Aliases
Bini.js has built-in support for path aliases using the "paths" option in tsconfig.json.
These options allow you to alias project directories to absolute paths, making it easier and cleaner to import modules. For example:
Path aliases are configured by default:
@ alias to the src directory.