monosecret_builder 0.3.5 copy "monosecret_builder: ^0.3.5" to clipboard
monosecret_builder: ^0.3.5 copied to clipboard

Build runner generator for typed Dart access to Monosecret manifests.

monosecret_builder #

Build runner generator for typed Dart access to monosecret.toml manifests.

What it does #

monosecret_builder reads your monosecret.toml at build time and generates:

  • A typed secrets class (e.g. AppSecrets) with fields matching your secret names
  • A Profile enum for profile-specific loading
  • Extension methods on MonosecretClient for single-secret access

Generated code contains no secret values — only configuration metadata. Values are resolved at runtime through the monosecret CLI.

Quick start #

@MonosecretConfig(className: 'AppSecrets')
library app_secrets;

import 'package:monosecret/monosecret.dart';

part 'app_secrets.g.dart';

Run:

dart run build_runner build --delete-conflicting-outputs

Learn more #

0
likes
140
points
438
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Build runner generator for typed Dart access to Monosecret manifests.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

analyzer, build, monosecret, source_gen, toml

More

Packages that depend on monosecret_builder