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

@flisk-sh/flisk-export

v0.10.0

Published

Write a Render Blueprint (render.yaml), a Cloudflare wrangler.toml or a standalone docker-compose.yml from Flisk service.json files. Never deploys.

Readme

flisk-export

Write a Render Blueprint (render.yaml) or a Cloudflare wrangler.toml from the service.json files of a Flisk project.

It writes files only. It never deploys, never creates DNS records, never calls a cloud API, and writes environment variable names, never values. The Flisk CLI runs it at a pinned version as flisk export.

Use

npx @flisk-sh/flisk-export render [dir] [--resource <name>] [--out <dir>] [--dry-run] [--force]
npx @flisk-sh/flisk-export wrangler [dir] --resource <name> [--route <host>] [--out <dir>] [--allow-non-worker] [--dry-run] [--force]

Or, from a Flisk project: flisk export render --dry-run.

render

  • Exports every resource whose appType is backend, frontend, agent, mcp or bring-your-own (a resource with no appType is not exported), or one with --resource.
  • A resource with a Dockerfile becomes runtime: docker; one with a package.json becomes runtime: node.
  • The service.json port is written as PORT, because Render routes traffic to $PORT.
  • Every other env name is written with sync: false, so Render asks for the value. Names that are not valid variable names are left out with a warning.
  • healthCheckPath comes from service.json (default /health).
  • Paths are relative to the git repository root, which is where Render reads them, and the file is written there by default. --out moves the file but not the paths.
  • Two resources that become the same service name (api_v1 and api-v1) are refused.

wrangler

  • One resource. main comes from package.json main, or the first of src/index.ts, src/index.js, src/worker.ts, src/worker.js, index.ts, index.js.
  • A resource with a Dockerfile, or without a wrangler, @cloudflare/workers-types or hono dependency, is refused unless --allow-non-worker.
  • --route api.example.com writes a Custom Domain route. Wildcards are refused: Custom Domains do not accept them.
  • Env names are listed in a comment for wrangler secret put.

Develop

npm install
npm run typecheck && npm run lint && npm run build && npm test

Compose

flisk-export compose            # writes .autogenerated/docker-compose.yml
flisk-export compose --check    # exit 1 when that file is out of date (for CI)

Writes a standalone docker-compose.yml from the bring-your-own service.json files (image or dockerfile, env, secrets.required, envFile, profiles, models, volumes, extraPorts, dependsOn, healthCheck, sidecarOf, container). It runs without Flisk (docker compose --env-file .env -f .autogenerated/docker-compose.yml up -d from the project root, since Compose looks for .env next to the file it reads): no external networks, no FLISK_* variables, no generated secrets. ${VAR} references in env, and every name in secrets.required, pass through as ${NAME} for Compose to read from .env. A volume's name (the Docker volume an install already has) is kept, and the project is named after its stack (or, when .flisk/project.json has composeProjectNames.<stack> from flisk-import, the Compose project name it had before, such as pl_mail), so docker compose up finds the same data as before. An image with Compose variables (postgres:${POSTGRES_VERSION:-18}-alpine) is written as it is, for Compose to resolve; restart: "on-failure:N" keeps N. From container: stopGracePeriod becomes stop_grace_period, networkAliases become networks: { default: { aliases } } (not on a sidecarOf service, which has no network of its own), extraHosts become extra_hosts and ulimits stay ulimits. Each value is checked so it cannot add YAML keys; one that does not fit is an error. healthCheck.command becomes a Compose healthcheck (with startPeriod as start_period); a service that lists a checked service in dependsOn waits for service_healthy (only when that healthcheck is written: a service with only healthCheckPath, or enabled: false, is waited for with service_started), and a dependsOn entry written as { name, condition } (flisk#2983) keeps its condition. buildArgs become build.args, logging stays logging, a bind source ${NAME:-./path} keeps reading NAME with its default rewritten for this file, selinux becomes the :z/:Z mount option, and an image may use ${NAME:?message} (Flisk 1.4.28 fields). container.command and container.entrypoint (Flisk 1.4.31) become Compose command: and entrypoint: lists as written ($$ and ${VAR} stay, an empty entrypoint drops the image's ENTRYPOINT). A service with no restart gets none (Compose's default), as the project's own Compose file had it. and one that lists a restart: "no" job waits for service_completed_successfully. Other resource types and command (native) services are not exported. The file is generated: change service.json and run it again with --force. It never starts a container or calls an API.

License

MIT