Search packages, repositories and app categories

Package detailsv0.2.2

nenuphar_cli

An openapi generation CLI for Dart Frog created by Very Good CLI.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
61
Likes
29
Pub points
130

Install package

flutter pub add nenuphar_cli

Package Overview

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

Nenuphar CLI is a command-line tool for generating OpenAPI specifications and Dart code from API definitions, specifically designed to integrate with Dart Frog. Built by Very Good CLI, it streamlines backend-to-frontend development by automating the creation of type-safe client code based on OpenAPI schemas. The tool supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for full-stack Dart applications. It enhances developer productivity by reducing manual boilerplate and ensuring consistency between API contracts and implementation.

Use cases

  • Generating client code from OpenAPI specs
  • Automating API contract synchronization
  • Integrating OpenAPI with Dart Frog projects
  • Streamlining full-stack Dart development
  • Enabling type-safe API calls in Flutter apps

Key features

  • OpenAPI spec generation
  • Dart code generation for clients
  • Seamless Dart Frog integration
  • Multi-platform support
  • Command-line interface for automation
  • Supports REST API contracts

Suitable for

  • Dart Frog developers
  • Full-stack Dart teams
  • API-first development workflows
  • Teams using OpenAPI specifications
  • Developers seeking automated client generation

Considerations

  • Requires OpenAPI specification as input
  • Limited to Dart Frog ecosystem
  • Depends on external OpenAPI schema quality
  • May require configuration for complex APIs
  • Not suitable for non-Dart Frog projects

Original README

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

Nenuphar - Your OpenAPI generator CLI

nenuphar logo generated using Microsoft Designer

style: very good analysis License: MIT

Nenuphar is a CLI application to generate Swagger UI OpenAPI definition files for your Dart Frog Server.

https://github.com/PiotrFLEURY/nenuphar_cli/assets/25879276/1590e803-7888-4fa0-8555-2f29f2035bd1


Dart Frog

Dart Frog is a minimalistic backend framework for Dart.

Create a new Dart Frog project

To create a new Dart Frog backend project, run the following command:

dart pub global activate dart_frog_cli
dart_frog create <project name>

Nenuphar CLI

Installation

dart pub global activate nenuphar_cli

Initialize your project

First you need to initialize your project by running the following command in the root of your project:

nenuphar init

This will create new file public/index.html. This file will be served statically by your Dart Frog server to expose your Swagger UI documentation.

Generate openapi definition file

Nenuphar scans your Dart Frog project to generate an OpenAPI definition file. Each route will generate the CRUD operations documentation for the exposed resource.

First create a Dart Frog route:

dart_frog new route "/todos"

Then generate the OpenAPI definition file

nenuphar gen

The openapi specification will be written in the public/openapi.json file. This file is loaded by the public/index.html file to display the documentation.

Start your Dart Frog server

You're now ready to start your Dart Frog server

dart_frog dev

Visit http://localhost:8080/index.html to see your documentation.

open http://localhost:8080/index.html

Enjoy 🎉

Thanks for using Nenuphar!

Detailed documentation

Please visit https://piotrfleury.github.io/nenuphar_cli/ for detailed documentation.

Generated by the Very Good CLI 🤖


Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package

No data available yet.