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

react-native-template-mtechub-app

v1.0.0

Published

MTechub universal React Native app template (NativeWind, Redux, navigation, auth)

Readme

React Native Template – MTechub App Template

Universal React Native template by MTechub (company: mtechub, template: app-template).


Step-by-step: Publish the template to npm

Do this from the main app repo (the one that contains template-package/ and scripts/).

1. Build the template

From the repo root (not inside template-package/):

node scripts/build-template.js

This fills template-package/template/ with the app code and placeholders (AppTemplate, com.mtechub.apptemplate).

2. Create an npm account (if you don’t have one)

3. Log in to npm from the terminal

npm login

Enter your npm username, password, and email when asked.

4. Publish from the template package folder

cd template-package
npm publish --access public
  • --access public is required for unscoped packages so others can install it.
  • If the package name is taken, change name in template-package/package.json (e.g. to react-native-template-mtechub-app-[yourname] or use a scoped name like @mtechub/react-native-template-app).

5. Check that it’s on npm

Open:

https://www.npmjs.com/package/react-native-template-mtechub-app

(Replace with your actual package name if you changed it.)

If you get: 403 Forbidden - Two-factor authentication or granular access token...

npm requires two-factor authentication (2FA) or a granular access token to publish.

Option A – Enable 2FA (recommended)

  1. Go to https://www.npmjs.com/ → your profile (avatar) → Account.
  2. Under Security, turn on Two-factor authentication (auth-only or auth-and-writes).
  3. Run npm publish --access public again from template-package/. When prompted, enter the one-time password from your authenticator app.

Option B – Use a granular access token

  1. On npm: ProfileAccess TokensGenerate New Token.
  2. Choose Granular Access Token; set scope to PackagesRead and write for this (or all) packages.
  3. If your org requires 2FA, ensure the token type allows publishing (e.g. “Automation” or token with “bypass 2FA” if available in your plan).
  4. Use the token when publishing:
    cd template-package
    npm publish --access public
    When npm asks for a password, paste the token (not your account password).

Step-by-step: Download and use the template (create a new app)

Anyone can create a new app from your template after it’s published.

1. Install React Native CLI (if needed)

You need Node.js and the React Native CLI. If you’ve never created a React Native app:

npx react-native --version

If that works, you’re fine. Otherwise follow React Native environment setup.

2. Create a new app from the template

Replace MyApp with your desired app/project name (no spaces):

npx react-native init MyApp --template react-native-template-mtechub-app

This will:

  • Create a folder MyApp/
  • Copy the template into it
  • Replace AppTemplate with MyApp in names and configs
  • Use default package ID: Android com.mtechub.apptemplate, iOS com.mtechub.apptemplate

3. (Optional) Use a custom package name

To set your own Android applicationId and iOS bundle ID:

npx react-native init MyApp --template react-native-template-mtechub-app --package-name com.yourcompany.myapp

Use a valid package id (e.g. com.companyname.appname).

4. Go into the project and install dependencies

cd MyApp
yarn
# or: npm install

5. iOS: install CocoaPods

cd ios && pod install && cd ..
# or from repo root: npx pod-install

6. Run the app

# Start Metro (in one terminal)
yarn start

# Run on device/simulator (in another terminal)
yarn ios
# or
yarn android

Quick reference

| Goal | Command | |------|--------| | Build template (before publish) | node scripts/build-template.js (from repo root) | | Publish to npm | cd template-package && npm publish --access public | | Create app (default package) | npx react-native init MyApp --template react-native-template-mtechub-app | | Create app (custom package) | npx react-native init MyApp --template react-native-template-mtechub-app --package-name com.yourcompany.myapp | | Test template locally (no publish) | npx react-native init MyApp --template file:///absolute/path/to/eventopiaapp/template-package |


Default package name

  • Android: com.mtechub.apptemplate
  • iOS: com.mtechub.apptemplate

Override with --package-name when running react-native init if you need a different bundle/application ID.