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

@theokit/codemod-sdk-2-0

v1.0.0

Published

Downstream consumer migration tool for the @theokit/sdk → @theokit/sdk-core rename (SDK 2.0). Walks the project + rewrites package.json + source imports.

Downloads

106

Readme

@theokit/codemod-sdk-2-0

Migration codemod for the @theokit/sdk@theokit/sdk-core rename (SDK 2.0 cohort cutover).

What it does

Walks your project + rewrites:

  • package.json: renames @theokit/sdk key in dependencies / devDependencies / peerDependencies / optionalDependencies (preserves the version constraint). Also renames peerDependenciesMeta key when present. If the package.json's own name field is @theokit/sdk, renames that too.

  • Source imports: rewrites @theokit/sdk@theokit/sdk-core in *.ts, *.tsx, *.mts, *.cts, *.js, *.mjs, *.cjs files. Uses negative-lookahead so sub-packages (@theokit/sdk-memory, -budget, -cache, -handoff, -tools) are NEVER touched.

  • Documentation: rewrites @theokit/sdk in *.md files with the same negative-lookahead invariant.

Skips: node_modules, dist, build, .next, .git, coverage, .turbo, .vitest-cache, .pnpm-store. Files > 1 MB skipped.

Usage

# Dry-run (default) — reports what would change without modifying
npx @theokit/codemod-sdk-2-0

# Apply changes
npx @theokit/codemod-sdk-2-0 --write

# Apply + preserve .bak per modified file
npx @theokit/codemod-sdk-2-0 --write --backup

# Target a different directory
npx @theokit/codemod-sdk-2-0 --root path/to/project

Recommended flow

  1. Commit any uncommitted work.
  2. Run dry-run + inspect the report:
    npx @theokit/codemod-sdk-2-0
  3. Apply with backup:
    npx @theokit/codemod-sdk-2-0 --write --backup
  4. Update your peerDep version constraint manually if you pinned @theokit/sdk to a 1.x version:
    - "@theokit/sdk-core": ">=1.7.0"
    + "@theokit/sdk-core": "^2.0.0"
  5. Reinstall:
    pnpm install   # or npm install / yarn install
  6. Run your test suite. If everything passes, commit + drop the .bak files:
    find . -name "*.bak" -delete
    git add -A
    git commit -m "migrate to @theokit/sdk-core (SDK 2.0)"

What changed in SDK 2.0

  • Package renamed @theokit/sdk@theokit/sdk-core.
  • Major bumped to 2.0.0.
  • Memory subsystem extracted to @theokit/sdk-memory (Stage 3 source-move). sdk-core's public Memory class + migrateSqliteToLance wrapper routes through it when installed; falls back to legacy internal copy when absent (Stage 4 optional-peer routing).
  • Budget / cache / handoff / tools subsystems were extracted earlier (Phases 2-5) — no code change needed in this rename.

Behavioral invariants the codemod preserves

The codemod does not:

  • Touch sub-package specifiers (@theokit/sdk-memory, etc.).
  • Modify lockfiles (run your package manager's install command after migration).
  • Bump the version constraint (operator step — needed only if you previously pinned @theokit/sdk@^1.x.x).
  • Run tests (you run them after).

License

MIT.