Search packages, repositories and app categories

Package detailsv0.1.2

mason_api

A Dart API client used by the Mason CLI (package:mason_cli).

AndroidiOSmacOSWindowsLinux
30-day downloads
214K
Likes
7
Pub points
160

Install package

flutter pub add mason_api

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

mason_api is a Dart-based API client designed to support the Mason CLI, enabling seamless interaction with APIs during code generation and project scaffolding. Built for integration within the Mason ecosystem, it simplifies HTTP requests and response handling, making it ideal for developers automating workflows. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, ensuring cross-platform compatibility. It is lightweight and focused on CLI use cases, emphasizing reliability and ease of use in development tooling.

Use cases

  • Automating code generation
  • Integrating external APIs in CLI tools
  • Scaffolding projects with remote templates
  • Handling HTTP requests in CLI workflows
  • Fetching configuration from remote sources

Key features

  • Lightweight API client
  • Built for CLI environments
  • Cross-platform support
  • Simple HTTP request handling
  • Designed for integration with Mason CLI

Suitable for

  • CLI tool developers
  • Code generation automation
  • Mason CLI users
  • DevTool integrators
  • Remote template fetching

Considerations

  • Primarily intended for CLI use
  • Limited standalone functionality
  • Dependent on Mason CLI ecosystem
  • Not optimized for UI applications
  • Best used within a larger tooling pipeline

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

mason logo

mason coverage License: MIT Powered by Mason


A collection of packages that enable developers to create and consume reusable templates called bricks.

Mason Demo

Packages

Package Pub
mason pub package
mason_api pub package
mason_cli pub package
mason_logger pub package

Quick Start

# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli

# 🚀 Initialize mason
mason init

# 📦 Install your first brick
mason add hello

# 🧱 Use your first brick
mason make hello

Documentation

View the full documentation here.

Video Tutorials

Package of the Week by Flutter Observable Flutter: Building a Mason brick by Flutter
mason (Package of the Week) Observable Flutter: Building a Mason brick
Meet Mason: Flutter Vikings 2022 by Flutter Community Felix Angelov Demos Mason by Very Good Ventures
Meet Mason: Intro to Templating and Custom Code Generation Mason Video Tutorial

Badge

Add a markdown badge to indicate your project is powered by mason → Powered by Mason

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package

No data available yet.

Rankings