fpx 0.1.0 copy "fpx: ^0.1.0" to clipboard
fpx: ^0.1.0 copied to clipboard

A lean CLI tool to scaffold Flutter components using Mason.

๐Ÿงฉ Flutter Paste eXpress - a fast way to clone compatible templated bricks into your flutter project #

fpx is a lightweit developer-first CLI tool that helps you install, scaffold, and customize Flutter components from any source โ€” instantly. Pull mason bricks from anywhere. It works like npx for Flutter: you run a single command and get ready-to-edit code in your project.

โœจ fpx = Flutter Paste eXpress
Drop-in Flutter components. Local, editable, and fast.


๐Ÿš€ Developer Experience (User View) #

As a Flutter developer, you can use fpx to scaffold buttons, cards, modals, layouts โ€” from open-source UI kits, internal design systems, or community bricks.

๐Ÿ”ง Getting Started #

dart pub global activate fpx

Then in your Flutter project:

fpx add button --name=LoginButton

Or use a specific component from GitHub:

fpx add card --source=github.com/my-org/ui-bricks

โœ… What Happens? #

  • Downloads the template (from local, Git, or registry)
  • Runs prompts or accepts flags (--name, --variant)
  • Copies fully editable code into your project (e.g. lib/components/)
  • Optionally hooks into your theme, design tokens, or folder structure

๐Ÿ’ก Examples #

fpx add modal --variant=fullscreen
fpx add form --fields=email,password --name=LoginForm
fpx list
fpx search card

๐Ÿงฑ Usage for Component Creators - Provide your components #

You can publish your own components that developers can install using fpx. Compatible with Mason templates under the hood.

๐Ÿ”ง Project Structure for fpx Compatibility #

Create a Git repo like:

my-ui-kit/
โ”œโ”€โ”€ bricks/
โ”‚   โ””โ”€โ”€ button/
โ”‚       โ”œโ”€โ”€ brick.yaml
โ”‚       โ””โ”€โ”€ __brick__/          # Mason template files
โ”‚           โ”œโ”€โ”€ button.dart
โ”‚           โ””โ”€โ”€ README.md
โ”œโ”€โ”€ meta/
โ”‚   โ””โ”€โ”€ component_index.yaml    # fpx registry metadata (optional)
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md

๐Ÿ“ brick.yaml Example #

name: button
description: A customizable button component
vars:
  name:
    type: string
    description: The name of the button widget
  variant:
    type: string
    description: Button style (primary, secondary, ghost)

๐Ÿงฉ Optional: component_index.yaml #

Used by fpx list, fpx search, or hosted registries:

components:
  - name: button
    description: A basic button with variant support
    tags: [button, ui, widget]
    source: ./bricks/button
  - name: card
    source: github.com/my-org/ui-bricks/card

๐ŸŒ Component Sources Supported #

  • โœ… Local paths
  • โœ… Git repositories (public or private)
  • ๐Ÿงช (Planned) Hosted registries
  • ๐Ÿงช (Planned) Component preview sandbox (web)

๐Ÿงฐ CLI Reference #

fpx add <component> [--name=...] [--variant=...]
fpx list                         # List available components
fpx search <term>                # Search compatible components
fpx config                       # View or edit config
fpx update                       # Pull latest bricks from source

โœ๏ธ Authoring & Publishing #

Build Mason templates for each component

Follow the brick.yaml and folder conventions

Host them on GitHub or internal Git

(Optional) Submit to the fpx registry

๐Ÿ“ฆ Coming soon: fpx publish to share your components with the community #

๐Ÿ›  Example Repos example-ui-kit

internal-team/bricks

โค๏ธ Why fpx? ๐Ÿง  Local-first: no hidden magic, fully editable code

๐Ÿงฑ Component-driven: scaffold exactly what you need

โš™๏ธ Mason-powered: works with existing Dart tools

๐Ÿš€ Fast and flexible: from Git or from a growing ecosystem

๐Ÿ“ฎ Feedback, Issues, Contributions Weโ€™d love your help evolving the Flutter component ecosystem.

File issues or feature requests

Publish your own components

Contribute improvements to fpx

0
likes
0
points
68
downloads

Publisher

verified publisherjdde.de

Weekly Downloads

A lean CLI tool to scaffold Flutter components using Mason.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, mason, path, yaml

More

Packages that depend on fpx