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

annie-cli

v0.1.10

Published

Command line HTTP client.

Readme

Annie Command Line HTTP Client

The annie-cli package provides the annie CLI script. This script can be used to make an HTTP request or series of requests and parse the responses. The goal is to be a competitor to cURL, offering a better interface for web developers who prefer to work with HTTP methods and terms instead of quirky cURL arguments.

This should be of special use to developers working with REST services. annie maps much more closely to the way RESTful services are documented, developed, and used than does curl. Fans of shell scripting should also find they can easily work with complex REST applications.

Must Haves

Though usable, the following features are needed before annie-cli can be released as a version 1.0.

  • ~~TLS support~~
  • ~~multiline entry for message body~~
  • automatically pipe STDIN to message body
  • session support

Basic Usage

Usage: annie [OPTS] [METHOD] URL

Make an HTTP request and display the result.  METHOD can be any valid HTTP
method or anything that *looks* like a valid HTTP method.  The default is
GET.

The following OPTS are recognized
  -H --head=HEADER      Send a request header
  -D --data=DATA        Send request body data; with -j DATA can be in form
                        foo:bar or {"foo":"bar"}; with -f DATA can be
                        foo=bar&baz=boo; else DATA is unparsed and sent raw
  -j --json             Enable JSON data (q.v., -D)
  -f --form             Enable HTML form data (q.v., -D)
  -o --output=FORMAT    One of: auto,body,full,head,headers,stat,status
     --session=FILE     Maintain session (enables cookies, defaults to
                        /tmp/annie.session.$UID) [not implemented]
  -                     read input from console (CTRL+D to end)

Usage Examples

Make a GET request against a URL

Make a GET request to http://example.com/ and display the response. By default, annie displays only the response body if one is present.

$ annie http://example.com/

{"status":"ok"}

Specify the HTTP request method

Make a HEAD request to check the status and headers. Since the response to a HEAD request does not have a body, annie will display the status and headers.

$ annie head http://example.com/

HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 15
Etag: ad5cb2e79b8f789

Send a request header

Make a conditional GET using the If-None-Match header and the resource ETag.

$ annie http://example.com/ -HIf-None-Match:ad5cb2e79b8f789

HTTP/1.0 304 Not Modified

Send raw request data

PUT a new plain text document containing the text "foo" at the specified URL.

$ annie put http://example.com/foo -HContent-Type:text/plain -Dfoo

HTTP/1.0 201 Created

Send JSON request data

The --json option sets the Content-Type header and enables JSON parsing of any data arguments. The following examples are equivalent.

$ annie post $URL -HContent-Type:application/json -D'{"action":"add","id":23}'

$ annie post $URL --json -Daction:add -Did:23

HTTP/1.0 303 See Other
Location: http://example.com/svc/23

Send HTML form request data

The --form option sets the Content-Type header and enables form-encoded parsing of any data arguments. The following examples are equivalent.

$ annie post $URL -HContent-Type:application/x-www-form-urlencoded -D'a=1&b=2'

$ annie post $URL --form -Da=1 -Db=2

HTTP/1.0 303 See Other
Location: http://example.com/svc/23