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

@bear1210/create-flutter-template

v0.1.1

Published

Business-free Flutter project scaffold CLI (architecture from production Flutter apps)

Readme

@bear1210/create-flutter-template

Business-free Flutter scaffold CLI. Bootstraps a new Android + iOS app with a layered lib/ layout and shared infrastructure (network, logging, theme, i18n, routing), without any product/business domain code.

Version in this package.json is the npm package version. Monorepo overview: repo README.

Requirements

  • Node.js >= 20
  • Flutter SDK on PATH (flutter must resolve)
  • For iOS builds: Xcode + CocoaPods (macOS)

Check the machine first:

npx -p @bear1210/create-rn-template check-mobile-env --strict-flutter

Quick start

npx @bear1210/create-flutter-template myFlutterApp --org=com.example
cd myFlutterApp
flutter run

From this monorepo:

npm install
npm run create-flutter-template -- myFlutterApp --org=com.example

CLI

create-flutter-template <project-name> [--org=com.example] [--skip-install]

| Argument / flag | Description | | --------------- | ----------- | | <project-name> | Output directory name. Also used to derive the Dart package name (snake_case) and display name. | | --org=<reverse-domain> | Organization for Android applicationId / iOS bundle id prefix. Default: com.example. | | --skip-install | Skip flutter pub get, flutter gen-l10n, and npm install (husky / commitlint). |

What the CLI does

  1. Runs flutter create --org … --project-name … --platforms android,ios
  2. Overlays the business-free template/ (lib, pubspec, tooling, Cursor rules, fonts)
  3. Rewrites the placeholder package name flutter_template_app → your Dart package name
  4. Injects camera / photo usage strings (iOS) and camera-related permissions (Android)
  5. Unless --skip-install: flutter pub get → flutter gen-l10n → npm install

What the scaffold includes

App shell

  • Minimal Home page (sample list + counter) and Logs page
  • GoRouter + Provider
  • Shake-to-open logs in debug builds

Infrastructure (lib/core/)

  • Dio client + auth token store / 401 refresh interceptor hook
  • sqflite-backed LocalLogger (query / export JSON·CSV)
  • Material 3 theme (Poppins) + ScreenUtil (390×844 design size)
  • Camera / photo-library permission helpers

Engineering

  • analysis_options.yaml (flutter_lints)
  • ARB i18n (l10n.yaml + lib/l10n/)
  • package.json scripts for run / analyze / format / build / gen:l10n
  • commitlint + husky (commit-msg)
  • Cursor rules: architecture, Dart style, l10n, no private iOS APIs

Not included (intentionally)

  • Product/business screens, APIs, Firebase / IAP / OAuth credentials

Included by default

  • zippy_flutter probe (debug only via ZippyProbe.start(); path dep under packages/zippy_flutter)

Generated layout

myFlutterApp/
├── lib/
│   ├── main.dart, app.dart
│   ├── pages/              # Home, Logs
│   ├── router/             # GoRouter
│   ├── widgets/common/
│   ├── providers/
│   ├── datasources/local/
│   ├── repositories/ / entities/ / services/
│   ├── core/               # network, theme, logging, permissions
│   └── l10n/
├── packages/zippy_flutter/ # Zippy debug probe
├── assets/fonts/           # Poppins
├── android/ / ios/         # from flutter create (+ permission patches)
├── pubspec.yaml
├── package.json            # npm scripts + husky/commitlint
└── .cursor/rules/

After generate

cd myFlutterApp
flutter run

# optional API base override
flutter run --dart-define=API_BASE_URL=https://your-host

# after editing ARB strings
flutter gen-l10n   # or: npm run gen:l10n

Useful npm scripts (Node tooling; Flutter commands still need the SDK):

| Script | Action | | ------ | ------ | | npm run setup | flutter pub get | | npm run analyze | flutter analyze | | npm run format | dart format lib test | | npm run run / dev | flutter run | | npm run build:apk | release APK (split ABI) | | npm run build:appbundle | Play App Bundle | | npm run build:ipa | iOS IPA | | npm run gen:l10n | regenerate localizations |

Default API base URL lives in lib/core/constants/app_constants.dart (API_BASE_URL).

Local package development

# from repo root
npm install
npm run create-flutter-template -- demoApp --org=com.example --skip-install

Bump / publish version from this package only:

npm version patch -w @bear1210/create-flutter-template

License

MIT