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

dxfl

v0.3.1

Published

A CLI tool to manage your Deuxfleurs account.

Downloads

54

Readme

dxfl

A CLI tool to manage your Deuxfleurs account.

Install

npm install -g dxfl

Usage

Start by logging in with your username, for example for john:

dxfl login john

Then you can list your websites:

dxfl list

And then to deploy your _public folder on example.com:

dxfl deploy example.com _public

To deploy without confirmation, use the --yes option:

dxfl deploy example.com _public --yes

Or only display the changes without applying them, with the --dry-run option:

dxfl deploy example.com _public --dry-run

Use the empty command to delete all files from a website (required before deleting it):

dxfl empty example.com

Use the inspect command to show more detailed informations about a website

dxfl inspect example.com

Website configuration

dxfl deploy reads a deuxfleurs.toml configuration file (if it exists in the current directory). This file can be used to specify website configuration metadata such as redirections.

Your deuxfleurs.toml should follow the following structure:

# Filename added after URLs that point to directories.
# Default value: "index.html"
index_page = "index.html"
# Path to the file to serve in case of 404 error.
# Default value: "error.html"
error_page = "error.html"

# A redirect entry. There can be as many as desired.
[[redirects]]
# Source of the redirection.
from = "old/path"
# Target of the redirection.
to = "new/path"

# Redirects can also match multiple paths, by specifying
# a prefix followed by *
[[redirects]]
# Source of the redirection: all paths that match the prefix
# foobar/
from = "foobar/*"
# Target: redirect all foobar/XXX to baz/XXX.
# The target can also be an URL outside of the website, or a
# single path.
to = "baz/*"
# Optional: custom HTTP status code for the redirection.
# Default value: 302
status = 301
# Optional: always apply the redirect.
# By default, redirections that match multiple paths do not apply
# if a file that matches the requested path could be served instead.
# Setting this option to true overrides this behavior and always
# applies the redirection.
# Default value: false
force = true

# Configuration to allow cross-origin requests.
# Multiple rules can be specified and will be matched in order.
# Each rule is defined in its own `[[cors]]` block
[[cors]]
# Origins that you want to allow cross-origin requests from.
allowed_origins = "https://www.example.com"
# Possible values:
# - allowed_origins = "*" : wildcard to allow all origins
# - allowed_origins = "https://www.example.com" : string of origin (protocol+domain)
# - allowed_origins = ["https://example1.com", "https://example2.com"] : array of origins
# Required parameter.

# HTTP methods allowed in a cross-origin request (in response to a preflight request).
allowed_method = "GET"
# Possible values:
# - allowed_method = "*" : wild card to allow all methods (only GET/HEAD are currently supported by the server)
# - allowed_method = "GET" : string of http method ("GET" or "HEAD")
# - allowed_method = ["GET", "HEAD"] : array of string http methods
# Optional parameter. Default value: ["GET", "HEAD"]

# Request headers allowed in a preflight request.
allowed_header = "Authorization"
# Possible values:
# - allowed_header = "*" : wildcard to allow all headers
# - allowed_header = "Authorization" : string of http header
# - allowed_header = ["Authorization", "Age"] : array of string http header
# Optional parameter. Default value : []

# Response headers you want to make available to JavaScript in response to a cross-origin request.
expose_header = "Content-Encoding"
# Possible values:
# - expose_header = "Content-Encoding" : string of http header
# - expose_header = ["Content-Encoding", "Kuma-Revision"] : array of string http header
# Optional Parameter. Default value : []

Using dxfl in automated deployments

dxfl login is designed for interactive use, where you type the password in your local computer. For automated deployments (e.g. deploying your website in a continuous integration workflows), you can instead directly call dxfl deploy (or dxfl empty) and pass website credentials using environment variables:

  • AWS_ACCESS_KEY_ID for the S3 key id;
  • AWS_SECRET_ACCESS_KEY for the S3 secret key.

The values for these variables can be found in the Guichet web interface for your website in the "S3" tab.

Config examples for Woodpecker CI and GitHub Actions are also available to help you get started.

Development

git clone https://git.deuxfleurs.fr/Deuxfleurs/dxfl
cd dxfl
npm install
# build and install the tool as the `dxfl` command
npm link
dxfl
# alternatively, run the tool from the sources directly
npx dxfl

Code formatting

Prettier is used to assure a certain consistency in style (and accessibility) through the codebase. An EditorConfig file is also here with a similar goal.

You can format your changes with the dedicated npm command lines:

npm run prettier-check # check formatting without making change
npm run prettier # fix formatting
npm run prettier-watch # watch upcoming changes to fix

Release

First you need an account on npmjs.com and be a maintainer of the dxfl package (ask quentin). Do not forget also to run npm login to bind your account with the CLI.

Then to publish a release:

vim CHANGELOG.md # update the version and its content in this file
vim package.json # update the version in this file
vim index.ts # update the version in this file
npm install # update the version in the package-lock.json
npm run prettier # fix potential coding style problem
git commit -a -m 'set version 0.1.5' # commit your change
git push # send update
git tag -m 'v0.1.5' v0.1.5 # create associated tag
git push --tags # push tag
npm publish # build and push the package

License

This software is distributed under the EUPL-1.2 license.