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

@aashirjaved/alchemy-infra

v0.1.1

Published

Claude/agent skill that scaffolds Alchemy (Infrastructure-as-TypeScript) into any codebase with strict secret hygiene.

Downloads

253

Readme

alchemy-infra

Infrastructure-as-Code for agents. No dashboards, no clicking, no leaked secrets.

A drop-in skill that lets any AI agent provision real cloud infrastructure (Cloudflare Workers, KV, R2, D1, Queues, Durable Objects, AWS Lambda, DynamoDB) by writing TypeScript instead of navigating a UI.

License: MIT Pass rate vs baseline SKILL.md skills.sh

Install · Demo · Benchmark · Security · FAQ

demo


Why this exists

TL;DR. Cloud UIs are click-prisons. Alchemy escapes them with TypeScript. Alchemy itself takes 30+ correct decisions to set up safely. This skill encodes those decisions so any agent ships in one prompt.

The pipeline

  🖱️  Cloud UIs   ──▶   📜  Alchemy (IaC-as-TS)  ──▶   🤖  alchemy-infra
  click-prison         escapes the UI                  makes setup safe
  agents can't use     setup is 30+ decisions          for any agent

Stage by stage

🖱️ Cloud UIs are broken for agents

  • 40 clicks per resource
  • Dashboard drift on team edits
  • Copy-pasted IDs go stale
  • Agents physically can't navigate
  • Humans don't want to

📜 Alchemy fixes that

  • Pure TypeScript, no DSL
  • Resources are await-ed
  • No YAML, no codegen
  • One file as source of truth
  • Cleanest IaC story today

🤖 But setup is a minefield

  • Template? PM? File layout?
  • Bindings per framework?
  • ALCHEMY_PASSWORD rotation?
  • .gitignore coverage?
  • CI stage naming, state backend, SSO…

Where naive agents fail

| Footgun | Consequence | Baseline rate | |---|---|---:| | Inline a secret in alchemy.run.ts | Token shipped to GitHub | common | | Skip await app.finalize() | Orphan resources, surprise bill | common | | Forget to gitignore .env / .alchemy/ | Secrets in git history | 3/3 baselines | | No ALCHEMY_PASSWORD generated | Future encryption silently breaks | 3/3 baselines | | Miss AWS SSO instructions | Opaque "credentials not found" at deploy | 1/1 AWS baseline |

Baseline agents fail 15.5 percentage points of production-readiness checks. See § Benchmark.

What this skill is

alchemy-infra is the playbook the Alchemy core team would write for agents.

It encodes intake questions, security invariants, framework adapters, and state-backend selection into one SKILL.md. Any SKILL.md-aware agent (Claude Code, Cursor, Aider, Cline, Codex, custom GPTs) reads it once and scaffolds production-ready Alchemy projects without touching a cloud console.

One prompt → deployable project. Passwords generated, gitignore enforced, types wired, scripts ready.


✨ Demo

demo

One prompt drives the entire flow: intake, detection, writes, verify.


📊 Benchmark

Three scenarios. 32 assertions. Side-by-side runs with and without the skill.

benchmark

| Scenario | With skill | Baseline | Delta | |---|---:|---:|---:| | Cloudflare Worker + KV (new project) | 11/11 | 10/11 | +1 | | Next.js → Cloudflare (existing app) | 11/11 | 8/11 | +3 | | AWS Lambda + DynamoDB (SSO, strict security) | 10/10 | 9/10 | +1 | | Total | 32/32 (100%) | 27/32 (84.5%) | +15.5pp |

Where baselines failed:

  • ALCHEMY_PASSWORD never generated. Every secret persisted after this point becomes unrecoverable.
  • .gitignore missing .env and .alchemy/. One careless git add . ships your token to GitHub.
  • ❌ AWS SSO instructions missing. User hits "credentials not found" at deploy with no guidance.

Trade-off: +67% tokens, +75% wall time for production-ready output.

Re-run the benchmark:

bash alchemy-infra-workspace/iteration-1/grade.sh
python3 alchemy-infra-workspace/iteration-1/aggregate.py
open alchemy-infra-workspace/iteration-1/review.html

🔄 The 10-step flow

flow

Every install runs steps 1 through 9. Step 10 (CI/CD) is opt-in.

The skill does not mutate files until step 3 confirms the plan with the user. No surprises.


🔐 Security

security

Full ruleset in references/security.md. Highlights:

  • ALCHEMY_PASSWORD generated via openssl rand -base64 32 (or Node crypto.randomBytes fallback). 32 bytes, base64. Written to .env with chmod 600. Never echoed to stdout.
  • .gitignore updated idempotently. The script runs git ls-files to surface anything already tracked that shouldn't be.
  • Cloudflare API tokens minted with least-privilege scopes: Workers Scripts:Edit, KV/R2/D1/Queue:Edit, Account:Read. Global API Key is refused unless the user insists.
  • AWS auth defaults to SSO via AWS_PROFILE. Long-lived AKIA... keys are never written to disk.
  • Pre-commit safety: scans for .env, *.pem, *.key, credentials.json, and common token regexes (sk-, xoxb-, ghp_, AKIA...) before any git add.

📦 Install

Claude Code via skills.sh

claude skill install https://github.com/aashirjaved/alchemy-infra

Direct clone (Claude Code, Cursor, Aider, Cline, Codex)

# user-global
git clone https://github.com/aashirjaved/alchemy-infra.git \
  ~/.claude/skills/alchemy-infra

# project-local
git clone https://github.com/aashirjaved/alchemy-infra.git \
  ./.claude/skills/alchemy-infra

npx (no Claude required)

npx @aashirjaved/alchemy-infra install         # ~/.claude/skills/alchemy-infra
npx @aashirjaved/alchemy-infra install --here  # ./.claude/skills/alchemy-infra
npx @aashirjaved/alchemy-infra install --to ./agents/skills

The installer is a single dependency-free Node script. It copies the skill, preserves executable bits on shell scripts, and strips its own bin/ and package.json from the installed copy.

.skill archive (31 KB)

Download from Releases, then in Claude Code:

/skills install alchemy-infra.skill

💬 Use

Once installed, the skill triggers automatically on prompts like:

"Set up Alchemy in this Next.js repo with a KV binding." "Deploy a Cloudflare Worker with D1 in pure TypeScript." "Migrate this SST project to Alchemy." "Configure AWS Lambda + DynamoDB via Alchemy using my SSO profile." "Add a Cloudflare Queue and worker consumer to my existing alchemy.run.ts."

The agent asks 8 intake questions, confirms the plan in 3 to 5 bullets, then executes.


🛠 What's inside

alchemy-infra/
├── SKILL.md                      # 232 lines · decision flow + invariants
├── README.md                     # this file
├── LICENSE                       # MIT
├── package.json                  # npx entry
├── bin/
│   └── install.js                # zero-dep installer
├── assets/                       # README diagrams (SVG)
├── references/                   # progressive disclosure
│   ├── cloudflare.md             # 97 lines · resource catalog
│   ├── aws.md                    # 70 lines · curated + aws-control
│   ├── frameworks.md             # 107 lines · Vite/Next/SvelteKit/Astro/Nuxt/TanStack
│   ├── security.md               # 76 lines · strict ruleset
│   ├── cicd.md                   # 97 lines · GH Actions templates
│   ├── custom-resources.md       # 80 lines · authoring your own Resource
│   └── troubleshooting.md        # 62 lines · failure modes + fixes
├── scripts/                      # safe shell helpers
│   ├── gen_password.sh           # openssl rand → .env
│   ├── gitignore_check.sh        # enforce + audit tracked secrets
│   └── detect_project.sh         # read-only JSON probe of repo state
└── evals/
    └── evals.json                # benchmark prompts

SKILL.md stays under 500 lines. Every reference stays under 300 lines.


🤝 Compatibility

| Tool / runtime | Status | How | |---|---|---| | Claude Code (CLI, IDE) | ✓ first-class | autoload from ~/.claude/skills/ | | Claude.ai | ✓ | upload skill folder or .skill archive | | Cursor | ✓ | point Cursor Rules at SKILL.md | | Aider | ✓ | /read SKILL.md then chat | | Cline / Continue | ✓ | reference SKILL.md from custom instructions | | Codex CLI | ✓ | include SKILL.md in workspace | | OpenAI Custom GPTs | ✓ | paste SKILL.md as system prompt; attach references/ | | skills.sh registry | ✓ | frontmatter compliant |


❓ FAQ

No. Step 1 reads any existing alchemy.run.ts, wrangler.toml, sst.config.ts, etc. If found, the skill switches to "modify in place" mode and confirms before any destructive change.

Encrypted secrets in state become unrecoverable. There is no documented rotation procedure. The skill treats the password as permanent and refuses to silently overwrite an existing one. You'd have to remove the line manually first.

All four. Bun is recommended by Alchemy upstream; everything else works. The skill reads your lockfile to detect package manager.

Yes. SKILL.md is plain Markdown. Paste it as system prompt for any LLM, or load it as instructions in Cursor, Aider, Continue, Cline, or Codex. Shell scripts and helper files are vanilla bash and Node. No Claude APIs.

Yes. The skill is cloud-agnostic. It asks during intake and loads references/<provider>.md if present. Cloudflare and AWS ship today. Neon, PlanetScale, Stripe, Vercel, GitHub, etc. are documented in references/cloudflare.md and the upstream Alchemy docs.

PRs welcome. Constraints: SKILL.md stays under 500 lines, every reference under 300 lines. Add new evals to evals/evals.json and re-run the benchmark before submitting.


📜 License

MIT. See LICENSE.


Built by @aashirjaved · Powered by Alchemy · Distributed via skills.sh

Install now →