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

create-fn-code-blocks

v0.1.5

Published

Scaffold a new [Fn-Code-Blocks](https://www.npmjs.com/package/@fn-code-blocks/core) project. One command gets you a working project with typed, language-agnostic function composition — TypeScript and Python out of the box.

Readme

create-fn-code-blocks

Scaffold a new Fn-Code-Blocks project. One command gets you a working project with typed, language-agnostic function composition — TypeScript and Python out of the box.

Usage

npx create-fn-code-blocks my-project

This creates a new directory with everything wired up:

my-project/
├── fn-code-blocks.config.ts         # Configuration
├── package.json                      # Single dependency: @fn-code-blocks/core
├── .devcontainer/                    # Dev Container config
├── .vscode/launch.json               # Debug configurations
├── src/
│   ├── functions/
│   │   ├── ts_hello_world/           # TypeScript example function + test
│   │   ├── py_hello_world/           # Python example function + test
│   │   └── shared/                   # Cross-function utilities
│   └── routes/
│       └── hello.ts                  # Example route composing both functions
└── .gitignore

Prerequisites

Your local machine needs:

  • Docker Desktop — runs the development environment
  • VS Code — editor
  • VS Code extension: Dev Containers (ID: ms-vscode-remote.remote-containers)
  • Node.js — only for this initial scaffold command

After scaffolding

code my-project                      # Open in VS Code
# Click "Reopen in Container"       # Dev Container builds, setup runs automatically
npm run dev                          # All services start
# Visit http://localhost:3000/hello  # Working

The Dev Container installs Node 24 and Python 3.12 — matching production exactly. Dependencies install automatically via postCreateCommand. No manual setup needed.

What it generates

| File | Purpose | |---|---| | fn-code-blocks.config.ts | Project configuration (env, logging, runtimes) | | package.json | Scripts and @fn-code-blocks/core dependency | | .devcontainer/ | Dev Container with TypeScript and Python runtimes | | .vscode/launch.json | Debug configs for orchestrator, runtimes, and tests | | src/functions/*/ | Two hello world functions (TS, Python) with tests | | src/routes/hello.ts | Example route calling both functions in parallel | | README.md | Getting started guide | | FRAMEWORK.md files | In-place documentation for functions, routes, and shared utilities | | pyproject.toml | Pytest configuration | | .gitignore | Ignores node_modules/, .venv/, .fn-code-blocks/, etc. |

Next steps after scaffolding

  1. Add a function: create src/functions/my_function/index.ts (or .py)
  2. Add a route: create src/routes/my_route.ts
  3. Run tests: npm test
  4. See src/functions/FRAMEWORK.md for templates and rules

Full documentation: @fn-code-blocks/core

License

MIT