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

@remotehost/apps

v0.1.0

Published

The RemoteHost App SDK: schemas, validators, declared views and their engine, and actions in TypeScript, built to Wasm components against wit/app.wit.

Downloads

273

Readme

RemoteHost App SDK

@remotehost/apps is how a RemoteHost app is written, built and tested: its schema, validators, declared views and actions in TypeScript, built to WebAssembly components against the app contract (wit/app.wit, package remotehost:[email protected]). Licensed under the Apache License, Version 2.0 (LICENSE.md, NOTICE).

The guide is docs.remotehost.ai/docs/apps.

Install

In the app's folder:

npm install --save-dev @remotehost/apps

It needs Node.js 22.18 or newer, and nothing else: no Rust and no WebAssembly toolchain. npm installs the two programs the build runs (esbuild and componentize-qjs) with the SDK, each as an optional dependency for your platform (both publish builds for macOS, Linux and Windows, on x64 and arm64), so do not install with --omit=optional. If one is missing, remotehost-app build says which.

Build and test

npx @remotehost/apps build [dir]              # the app in dir (default ".") to dir/dist
npx @remotehost/apps test [dir] [-t pattern]  # build, then run test/*.test.ts on a fake host
npx @remotehost/apps --version
npx @remotehost/apps --help

npx @remotehost/apps runs remotehost-app, this package's one command, so a package.json script can name it: "build": "remotehost-app build". It was remote app in the remote CLI.

An app is a folder:

checklist/
  schema.ts     the backend: types, fields, rules, seed
  rules.ts      validators and afterWrite (optional)
  views.ts      declared views: lists, boards, detail pages (optional)
  client.ts     actions a declaration cannot say (optional)
  app.toml      the install manifest
  test/*.test.ts

build writes dist/backend/backend.json, dist/backend/backend.wasm (when there is a rules.ts), dist/views.json (when there is a views.ts), dist/client.wasm (when client.ts has an action or an onEvent) and dist/app.toml.

Use

// schema.ts
import { bool, defineSchema, text } from "@remotehost/apps";

export default defineSchema({
  backend: "checklist",
  title: "Checklist",
  types: {
    item: { fields: { text: text({ max: 280 }), done: bool().default(false) } },
  },
});
// test/checklist.test.ts
import assert from "node:assert/strict";
import { test } from "node:test";
import { loadApp, refusal } from "@remotehost/apps/testing";

test("a blank item is refused", async () => {
  const app = await loadApp(new URL("..", import.meta.url));
  assert.throws(() => app.person("ann").put("item", { text: " " }), refusal("blank_text", "text"));
});

| Import | Holds | |---|---| | @remotehost/apps | defineSchema and the field types, defineRules, defineClient, defineView and defineViews | | @remotehost/apps/testing | loadApp, the fake host an app's tests run on, and refusal | | @remotehost/apps/tooling | build and test, for a script that builds or tests an app itself | | @remotehost/apps/view | the declared views' spec | | @remotehost/apps/wit/app.wit | the app contract |