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

lanadoc-cli

v0.0.3

Published

project-lana cli tool

Readme

lanadoc-cli

A command-line tool that seamlessly integrates with Project-Lana.

Key Features

  • Effortless API doc generation: Automatically generate comprehensive API documentation directly from your source code.
  • Interactive local server: Instantly view and interact with your API documentation using the built-in local server.
  • Cross-Platform compatibility: Works seamlessly on Windows, macOS, and Linux, ensuring flexibility across different development environments.
  • Fully Themeable: Customize your API documentation by adjusting settings and themes to suit your specific needs.
  • Streamlined Project Setup: Initialize your API documentation project quickly with a single command.

Installation

To install lanadoc-cli globally, use npm:

npm install -g lanadoc-cli

Getting Started

Let's get your documentation project up and running.

Step 1: Initialize a Project

Use the following command to create a new lanadoc-cli project:

lanadoc init

This command initializes your project and generates a lana.config.json file in docs/ directory. This file contains essential meta info about your API doc and some customization like theme.

Configuration

lanadoc uses environment variables and is very easy to setup, you just need to pass the various values below using the lanadoc config --set <KEY>=VALUE

LANA_OPENAI_API_KEY=<your OpenAI API token>
LANA_MODEL=<either 'gpt-4', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo', 'lana-7b (will be default local model)'>

Example:

lanadoc config --set LANA_OPENAI_API_KEY=xxxxxx

List configs

lanadoc config --list

Reset configs

lanadoc config --reset

Available themes: 'alternate' | 'default' | 'moon' | 'purple' | 'solarized'

** More themes coming soon...

Step 2: Generate Documentation

Once your project is initialized, cd to docs/ directory and generate documentation with:

lanadoc generate

This command processes your source code etc, turning your code into comprehensive documentation.

🚨Important Note: routes files and implementation to your endpoints are required in your lana.config.json to be able to generate the doc spec.

Example:

// other configs
 "sourcePaths": {
    "routes": ["./routes/quote_route.js"],
    "implementation": ["./controllers/quote_controller.js"]
  },
// other configs

You should provide all the endpoint routes files paths in the routes array and their corresponding implementations in the implementation array as seen in the example code above.

Step 3: View Your Documentation

To view your generated documentation locally, start the lanadoc-cli server:

In the docs/ directory run...

npm run serve

This will launch a local dev server, allowing you to explore and interact with your doc site through your web browser.

Note: you need to have vue-cli installed globally

License

lanadoc-cli is licensed under the MIT License. See LICENSE for more information.