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

@tynd/core

v0.3.1

Published

Tynd framework core — backend API (app.start, createEmitter) and typed frontend client

Readme

@tynd/core

The backend API and frontend client for Tynd — desktop apps in TypeScript.

Prerequisites

Bun is required during development. Tynd's backend runs on Bun (full mode) or an embedded JS engine via @tynd/cli's bundler (lite mode); Node.js is not a supported substitute. Install Bun once:

# macOS / Linux / WSL
curl -fsSL https://bun.sh/install | bash

# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"

End users of built apps need nothing — the runtime ships inside the binary.

Install

bun add @tynd/core @tynd/host

Two entrypoints

// backend/main.ts  (Bun process)
import { app, createEmitter } from "@tynd/core"

// src/App.tsx  (WebView)
import { createBackend, fs, dialog, sql /* …and more */ } from "@tynd/core/client"

Backend — app.start() + typed emitters

import { app, createEmitter } from "@tynd/core"

export const events = createEmitter<{ ready: { message: string } }>()

export async function greet(name: string): Promise<string> {
  return `Hello, ${name}!`
}

app.onReady(() => events.emit("ready", { message: "app is up" }))

app.start({
  frontendDir: import.meta.dir + "/../dist",
  window: { title: "My App", width: 1200, height: 800, center: true },
})

Every exported function becomes callable from the frontend. No codegen.

Frontend — zero-codegen typed RPC

import { createBackend, fs, dialog } from "@tynd/core/client"
import type * as backend from "../backend/main"

const api = createBackend<typeof backend>()
const msg = await api.greet("Alice")   // string ✅ — types flow from backend
api.on("ready", ({ message }) => console.log(message))

// Direct OS APIs — bypass the backend
const file = await dialog.openFile()
const bytes = await fs.readBinary(file!)

OS APIs (@tynd/core/client)

Native integrations — identical surface in both full and lite modes:

app, dialog, tyndWindow, monitors, menu, clipboard, shell, notification, tray, process, fs (+ watcher, handles, symlinks), shortcuts, keyring, autolaunch, store, updater, log, power, security, os, path, http, websocket, sql, sidecar, terminal, compute, workers, singleInstance.

Plus Web-standard re-exports (fetch, WebSocket, crypto, URL, Blob, AbortController, TextEncoder, …) so import * as tynd from "@tynd/core/client" gives you the whole namespace at once.

Full reference: API.md.

Runtime modes

@tynd/core runs on either of Tynd's two native hosts:

| | lite | full | |---|---|---| | JS runtime | embedded interpreter, in-process | Bun, packed into the binary | | Binary size | ~6.5 MB + assets | ~44 MB (Bun compressed) | | Best for | most desktop apps | CPU-bound JS / npm native bindings |

The CLI's bundler swaps in the right module at build time via a define-based dead-code-elimination trick — only one runtime ships in any given binary.

See RUNTIMES.md.

Related packages

  • @tynd/clitynd create / dev / build / start
  • @tynd/host — prebuilt native binaries (downloaded by postinstall)

License

Apache-2.0