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

@mohsp-99/mizito-core

v0.2.0

Published

Typed client library for the Mizito (office.mizito.ir) API — tasks, chat, letters, projects, workspaces. No browser, no server: log in with a saved session or credentials and call the API directly.

Readme

@mohsp-99/mizito-core

Typed client library for the Mizito API — tasks, chat, letters (correspondence), projects, workspaces. Mizito has no public API; this library speaks the same API the web app itself uses (unofficial, version-pinned) so you can read and write your account from any Node ≥ 20 script. No browser, no server, zero dependencies — just fetch and crypto.

Unofficial. Not affiliated with Mizito. Endpoints track app version 1.0.4-589; a Mizito update can change them. Use it on your own account and respect Mizito's terms.

Install

npm install @mohsp-99/mizito-core

Sign in

The library authenticates with Mizito's session token, obtained through the app's own password login (the password is sent exactly as the web app sends it: md5(pw)|sha256(pw), verified byte-for-byte).

The simplest setup — environment variables:

export MIZITO_USERNAME=09xxxxxxxxx      # your phone number
export MIZITO_PASSWORD='your-password'

With those set, the default provider logs in on first use, saves the session to <data root>/auth/session.json, and re-logs-in automatically whenever the token expires (Mizito sessions last a few days). The data root is the current working directory, or MIZITO_DATA_DIR when set.

MIZITO_PASSWORD and auth/ contents are password-equivalent secrets — never commit them. Password-only accounts work headless; OTP/SSO accounts need a browser login (see the mizito-bridge repo) to mint the session.

Use it

The client — typed resource namespaces

import { createClient } from '@mohsp-99/mizito-core';

const client = createClient();                    // token via the default diskSession()
const tasks = await client.tasks.getAll();        // every task in the active workspace
const { dialogs } = await client.chat.getDialogs();
const letters = await client.letters.getInbox('inbox');

// Read another workspace without touching your active one:
const scoped = await client.workspaces.switch(workspaceId);
await scoped.tasks.getAll();

Namespaces map 1:1 to confirmed endpoints: tasks, chat, projects, labels, workspaces, letters, dashboard, files (CDN attachment download).

Feeds — cross-workspace reads and name-resolving writes

import { buildContext, overview, myTasks, unreadMessages, createTask, sendMessage } from '@mohsp-99/mizito-core';

const ctx = await buildContext();                 // identity + workspaces, self-healing
console.log(await overview(ctx));                 // per-workspace counters
console.log(await myTasks(ctx));                  // my open tasks, all workspaces

// Writes resolve human names (project / board / member / task title) to ids and fail
// loudly on ambiguity — these MUTATE your account:
await createTask(ctx, { project: 'Ops', title: 'Ship it', deadline: null });
await sendMessage(ctx, { project: 'Ops', text: 'Shipped ✅' });

Token providers — bring your own session handling

The transport never reads disk or env itself; it asks an injected provider:

import { createClient, staticToken, diskSession, passwordSession } from '@mohsp-99/mizito-core';

createClient({ token: 'raw-session-token' });                       // fixed token
createClient({ tokens: diskSession({ path: '/srv/mizito/session.json' }) });
createClient({ tokens: passwordSession({ username: '09…', password: '…' }) }); // memory-only

// Or implement TokenProvider yourself:
//   { getToken(): string | Promise<string>, onAuthExpired?(): string | null | Promise<...> }
// On a 401/403 the transport calls onAuthExpired() once and retries with the fresh token.

Errors

Every failure is a MizitoApiError with a code you can branch on: auth (expired/invalid session) · rate_limit · server · api (the {status,data,msg} envelope rejected the call) · network · not_found.

Related packages

  • @mohsp-99/mizito-mcp — MCP server exposing these reads/writes to Claude Desktop / Claude Code.
  • mizito-bridge repo — the monorepo, incl. the browser login, workspace crawler, SQLite loader, and data viewer, plus the API notes (docs/API_NOTES.md, docs/MIZITO_INTERNALS.md).

License

MIT