npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

blend-rn

v1.1.8

Published

**Blend RN** is a custom DSL-based React Native project generator. It allows developers to declare app layouts, screens, navigation structure, API endpoints, and data models using a simple, readable grammar, and then automatically generates React Native b

Downloads

365

Readme

📦 Blend RN - Just chop, prepare and serve the code.

Blend RN is a custom DSL-based React Native project generator. It allows developers to declare app layouts, screens, navigation structure, API endpoints, and data models using a simple, readable grammar, and then automatically generates React Native boilerplate code.


📖 Grammar Overview

Blend RN supports three grammar types:

  1. .rnbasic – for app layout/navigation
  2. .api – for defining API endpoints
  3. .data – for defining data models

📑 .rnbasic Example

layout Auth type(Stack) {
  page LandingScreen
  page SplashScreen
}

📚 .rnbasic Grammar Explanation

| Keyword | Description | Example | |:----------|:------------------------------------------------|:--------------------------------| | layout | Defines a navigation layout (Stack, Drawer, Tab) | layout Auth type(Stack) | | page | Defines a screen/page inside a layout | page SplashScreen | | type | Specifies the navigation type for a layout | type(Stack), type(Drawer) |

📌 Supported Navigation Types:

  • Stack
  • Drawer
  • Tab

You can nest layouts and pages to build multi-level navigation structures.


🌐 .api Example

module User

section Auth {
  api login(POST) "/login" {
    input(email: string, password: string)
    output(string)
  }

  api logout(POST) "/logout" {
    authenticated
    output(string)
  }
}

📚 .api Grammar Highlights

| Keyword | Description | |------------------|--------------------------------------------| | module | Declares an API module | | section | Groups related APIs | | api | Declares an API with method and path | | authenticated | Marks API as needing auth token | | input | Defines expected request payload fields | | output | Defines expected response structure |

✅ You can use types, optional fields (?), arrays ([]), and relational mappings (TypeA -> TypeB).


🗃️ .data Example

module UserData

data User(id: string, name: string, email: string)
data Profile(userId: string -> User, bio: string?)

📚 .data Grammar Highlights

| Keyword | Description | |-----------|----------------------------------------| | module | Declares a data module | | data | Defines a data structure | | -> | Declares a reference/relation type | | ? | Makes a field optional | | [] | Declares an array of a type |


🛠️ Blend RN CLI Commands

Blend RN provides a simple CLI interface to process grammar files and generate your app’s codebase.

1️⃣ blend-rn chop

Purpose:
Parses the grammar files (.rnbasic, .api, .data) and converts them into intermediate JSON representations.

Usage:

blend-rn chop

2️⃣ blend-rn prepare

Purpose:
Reads the intermediate JSON files generated by chop and creates the necessary React Native components, API services, data types, and navigation structure.

Usage:

blend-rn prepare

3️⃣ blend-rn serve

Purpose:
Starts the React Native Metro bundler and runs the application on the configured emulator or connected device.

Usage:

blend-rn serve

📂 Example Workflow

Example Files:

📁 project/app.rnbasic

layout Auth type(Stack) {
  page LandingScreen
  page SplashScreen
}

📁 project/spec/api/user.api

module User

section Auth {
  api login(POST) "/login" {
    input(email: string, password: string)
    output(string)
  }
}

📁 project/spec/data/user.data

module UserData

data User(id: string, name: string, email: string)

Run the commands:

blend-rn chop
blend-rn prepare
blend-rn serve

✅ This will:

  • Parse the grammar files
  • Generate screens and layout components
  • Generate API services and types
  • Build a working React Native app

📦 Project Structure (After prepare)

src-gen/
 └── router/
     └── config/
         └── LayoutConfig.tsx
 └── redux/
     ├── ApiModuleSection/
         └── ApiSection/     
             └── Api/     
                  └── action.ts/     
                  └── slice.ts/     
                  └── selector.ts/     
                  └── data.ts/     
 └── data/
     └── data.ts

📞 Support

For issues, improvements, or suggestions — feel free to raise a ticket or contact the project maintainer.


📃 License

This project is licensed under the MIT License.