JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 247
  • Score
    100M100P100Q93196F
  • License MIT

The world's first source-protected React framework - Build with Next.js features, Vite speed, and zero source code exposure.

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.

npm npm JavaScript React Vite TailwindCSS

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—      β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘      β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘      β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆ   β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
β•šβ•β•β•β•β•β• β•šβ•β•β•šβ•β•  β•šβ•β•β•β•β•šβ•β•  β•šβ•β•β•β•β• β•šβ•β•β•β•β•β•β•

             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 dev

This starts the Vite server with Bini.js branding at http://localhost:3000

πŸ“¦ Running Production

Build and preview your app:

npm run build
npm start

The 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 1

Add 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 branding
  • npm run build – Build production app (source-code protected)
  • npm start – Preview production build
  • npm 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