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

@doodesch/create-sideload-app

v1.0.0

Published

Scaffold a Sideload app: Preact, React or plain TypeScript, plus the mod that registers it.

Downloads

18

Readme

create-sideload-app

One command to a Sideload app that builds, typechecks and lands on the phone.

node index.mjs my-app --template preact --deploy "F:/.../Schedule I/Mods"
cd my-app
npm install
npm run dev

dev rebuilds on save and copies the bundle into Mods/<appId>/, where Sideload picks it up without a restart.

Templates

| | bundle | load | mount 100 rows | |---|---|---|---| | preact (default) | 14 kB | 37 ms | 53 ms | | react | 139 kB | 113 ms | 54 ms | | vanilla | 0 | 0 | - |

Measured by FrameworkCostTests in Workspace/Tests/Sideload.Tests, against the engine's own script host.

Preact is the default because of the load column, not the render one. Jint parses source on every page build, inside a 250 ms budget, so a framework's size is a load-time cost here rather than a download cost - the opposite of the web. React is fully supported and 113 ms is affordable; it just buys nothing the 37 ms does not.

What it generates

my-app/
  index.html          a document - Vite reads it and finds the entry through the script tag
  src/app.tsx         the app
  src/app.css         its stylesheet
  vite.config.js      the sideload plugin, with your appId
  tsconfig.json       strict, with the page API types
  mod/                the C# mod that registers the app

The mod half is a starting point rather than a build: fill in the two PATH\TO hints in the csproj (MelonLoader, and Sideload.cs from the Sideload repo) and it compiles to one DLL with the bundle embedded.

Two things about the generated index.html

It is a whole document, and what Sideload receives is not. Vite needs the <script type="module"> tag to find the entry point; the plugin then emits the fragment the engine wants - the body's contents, a link to app.css and a script tag for app.js. Editing this file to look like the output is the one change that breaks the build, which is why there is a comment saying so.

Verify

node verify.mjs            all three templates
node verify.mjs preact     one of them

Scaffolds into a temporary folder, runs npm install, vite build and tsc --noEmit for real, and reads the output: three files under fixed names, one script with no imports left, a fragment rather than a document, and the stylesheet present. A scaffolder is the one kind of tool where "it produced files" proves nothing.