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

repogen

v0.2.1

Published

Generate repo manifests from github, gitlab and gitea

Readme

repogen

npm @latest npm downloads dependencies Status GitHub issues GitHub license

Repogen is meant as an utility for Repo project. It generates repo-manifests from several Git hosts, like GitHub, GitLab and Gitea.

About repo:

Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git.

Repogen generates manifests that wrap multiple Git repositories and allow them for example to get edited/pulled/pushed all at once. See Google's Repo command reference and Android Development Environment for help and a more detailed example.

Table of contents

Installation

$ npm install repogen -g

Execution

Commands

$ repogen -h

    Usage: repogen [options] [command]

    Options:

        -V, --version               output the version number
        -h, --help                  output usage information

    Commands:

        gitea [options]             Generate manifest from the authenticated gitea user
        github [options] <profile>  Generate manifest from github a given profile
        gitlab [options] <profile>  Generate manifest from a given gitlab profile

Example

The following example shows the process of generating a manifest from my public github profile.

$ repogen github dotwee -o manifest-dotwee.xml
$ cat manifest-dotwee.xml

<manifest>
    <remote 
        name="origin" 
        fetch="https://github.com/dotWee"/>

    <default 
        remote="origin" 
        revision="refs/heads/master" 
        sync-j="4"/>

    <project name="repogen" path="repogen" remote="origin"/>
    ...

</manifest>

Repohosts

Currently there are three different git-hosts supported:

GitHub

$ repogen github -h

    Usage: github [options] <profile>

    Generate manifest from github a given profile

    Options:

        -o, --output-file [output_file]  name of the output file
        -t, --token [token]              optional auth-token to include private repositories
        -h, --help                       output usage information

GitLab

$ repogen gitlab -h

    Usage: gitlab [options] <profile>

    Generate manifest from a given gitlab profile

    Options:

        -t, --token [token]              optional auth-token to include private repositories
        -o, --output-file [output_file]  name of the output file
        -u, --url [url]                  optional url or ip address of running gitlab instance
        -h, --help                       output usage information

Gitea

$ repogen gitea -h

    Usage: gitea [options]

    Generate manifest from the authenticated gitea user

    Options:

        -a, --access_token <access_token>  required access-token to allow api calls
        -o, --output-file [output_file]    name of the output file
        -u, --url <url>                    required url or ip address of the host
        -h, --help                         output usage information

Configuration

Standard manifest elements like remote and default can be set using the default.json file inside ./config.

For details and information about their use and possible values, see the official manifest-format document.

The following attributes for the standard remote and default element are supported:

{
  "_remote": {
    "name": "",
    "alias": "",
    "fetch": "",
    "pushurl": "",
    "review": "",
    "revision": ""
  },

  "_default": {
    "remote": "",
    "revision": "",
    "dest-branch": "",
    "upstream": "",
    "sync-j": "",
    "sync-c": "",
    "sync-s": "",
    "sync-tags": ""
  }
}

Also, a default output file can be declared using the key outputFile.

Todo

  • [ ] (Unit-) Testing
  • [ ] Generate manifest from url
  • [ ] Implement ssh configuration for remotes

License

Copyright (c) 2018 Lukas 'dotwee' Wolfsteiner

Licensed under the Do What The Fuck You Want To public license