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

@memohai/desktop

v0.8.0

Published

Memoh Electron desktop application (self-managed bootstrap reusing @memohai/web components)

Downloads

192

Readme

@memohai/desktop

Memoh desktop application built with electron-vite.

The renderer owns its own src/renderer/src/main.ts — it imports the reusable building blocks from @memohai/web (App.vue, router, i18n, api-client, style.css) but assembles the Vue app locally. Desktop-only customization (extra Pinia plugins, Electron-specific stores / providers, alternate routers, etc.) belongs in this main.ts, not in @memohai/web.

How the reuse is wired

  • @memohai/web/package.json exposes App.vue, router, i18n, api-client, and style.css through its exports field.
  • Vite (via electron.vite.config.ts) resolves those subpaths to the real files in apps/web/src/ at bundle time.
  • vue-tsc is pointed at local type stubs in src/renderer/types/web-stubs.d.ts via tsconfig paths, so desktop's typecheck does not descend into apps/web/src/ or packages/ui/src/ (those have their own CI).

Development

# from repo root
pnpm --filter @memohai/desktop dev
# or via mise
mise run desktop:dev

MEMOH_WEB_PROXY_TARGET overrides the backend that the renderer's /api proxy points at (defaults to whatever config.toml / conf/app.docker.toml declares).

Build

pnpm --filter @memohai/desktop build           # full platform installer
pnpm --filter @memohai/desktop build:dir       # unpacked app dir (CI smoke test)

Output goes to apps/desktop/dist/.

Icons

All app icons are generated from apps/web/public/logo.svg (the brand mark) by scripts/build-icons.mjs. Re-run after the logo changes:

pnpm --filter @memohai/desktop icons

Outputs:

| File | Purpose | |---|---| | build/icon.icns | macOS bundle icon (16…1024 + @2x) — packaged into .app/Contents/Resources/ | | build/icon.ico | Windows installer / .exe icon (16/24/32/48/64/128/256) | | build/icon.png | Linux .deb/.rpm/.AppImage icon (1024×1024) | | resources/icon.png | Runtime BrowserWindow.icon + macOS dev app.dock.setIcon (512×512); bundled via asarUnpack |

build/icon.icns requires macOS (iconutil); the script skips it on other platforms.