Package Exports
- create-bini-app
- create-bini-app/create-bini-app.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-bini-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π Bini.js
The Worldβs Fastest & Most Secure React Framework
Bini.js is the first source-code-protected React framework powered by Vite, designed for developers who demand blazing speed, modern features, and total source-code security.
βββββββ βββββββ ββββββ βββββββββββ
ββββββββββββββββ ββββββ βββββββββββ
βββββββββββββββββ ββββββ βββββββββββ
ββββββββββββββββββββββββ ββ βββββββββββ
ββββββββββββββ βββββββββ ββββββββββββββββ
βββββββ ββββββ ββββββββ ββββββ ββββββββ
Developed By Binidu⨠Features
- β‘ Blazing-fast Vite compilation with native ES modules
- π Full source-code protection β compiled apps never expose source
- π Client-side routing with React Router DOM
- π¨ Multiple styling options β Tailwind CSS, CSS Modules, or None
- π Runtime code injection system for dynamic scripts and styles
- π₯ Hot Module Replacement (HMR) for instant updates
- π TypeScript support (optional)
- π± Fully responsive for desktop, tablet, and mobile
- ποΈ Built-in API routes ready for Firebase, MongoDB, or any database
π Quick Start
Create a new Bini.js app interactively:
npx create-bini-app@latest my-bini-app
cd my-bini-app
npm installπ Running the Development Server
Start the development server:
npm run devThis starts the Vite server with Bini.js branding at http://localhost:3000
π¦ Running Production
Build and preview your app:
npm run build
npm startThe dist/ folder contains your production-ready, source-code-protected application.
ποΈ Project Structure
my-bini-app/
βββ src/
β βββ pages/ # Page components (Home, About, etc.)
β βββ components/ # Reusable React components
β βββ styles/ # Global CSS / Tailwind styles
β βββ api/ # File-based API routes
β β βββ hello.js
β β βββ users.js
β β βββ database-example.js
β β βββ posts/
β β βββ index.js
β β βββ [id].js
β βββ App.jsx/tsx # Main App with routing
β βββ main.jsx/tsx # Entry point
βββ index.html # Vite HTML template
βββ vite.config.js # Vite config with API plugin
βββ package.json
βββ tailwind.config.js # If Tailwind selected
βββ tsconfig.json # If TypeScript enabledπ§ API Routes
Bini.js provides file-based API routes just like Next.js.
Example routes:
GET /api/hello -> Returns a hello message
GET /api/users -> Returns a list of users
POST /api/users -> Create a new user
GET /api/posts -> Returns all posts
GET /api/posts/1 -> Returns post with ID 1Add Firebase, MongoDB, or any database by modifying src/api/database-example.js and setting environment variables in .env.
π Runtime Code Injection
Inject dynamic scripts or styles at runtime:
// Inject custom script
window.biniInjector.injectCode({ id: 'analytics', code: 'console.log("Analytics loaded")', type: 'script' });
// Inject custom style
window.biniInjector.injectCode({ id: 'theme', code: 'body { background: #f0f0f0; }', type: 'style' });
// Remove injection
window.biniInjector.removeInjection('analytics');π¨ Styling Options
- Tailwind CSS (recommended)
- CSS Modules
- None β bring your own solution
π Available Scripts
npm run devβ Start development server with Bini.js brandingnpm run buildβ Build production app (source-code protected)npm startβ Preview production buildnpm run previewβ Vite preview server
β‘ Performance & Security
- Instant HMR and fast development with Vite
- Minimal bundle sizes with tree-shaking
- Pre-bundled dependencies for rapid installs
- Fully source-code-protected: no raw JSX/TSX is served
ποΈ Use Cases
Perfect for building:
- SaaS dashboards
- Landing pages
- Blogs & content platforms
- E-commerce sites
- Admin panels
- Modern web applications that require speed and source-code security
π€ Contributing
We welcome contributions! Submit issues and pull requests.
π License
MIT License
Built with β€οΈ using Bini.js v7.0.5 | Fast, Secure, Developer-Friendly