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

@asksoma/muhurat-embed

v1.1.2

Published

Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.

Readme

@asksoma/muhurat-embed

Host-agnostic building blocks for white-label Muhurat Finder UIs (subhmuhurat.ai + third parties).

| Export | Use | |--------|-----| | MuhuratFinder | Full Finder UI — AskSoma section order: location → activity → priorities → mode → range presets / compare clocks → factor-in → availability | | mapIntention / mapPrioritiesToHouses / defaultPrioritiesForActivity | Free-text / chip priorities → target_houses; activity → suggested priorities | | findMuhuratViaProxy / findMuhuratDailyViaProxy | POST helpers for your /api/muhurat (+ /daily) proxy | | access | Teaser gate (guest/free/pro) — display only; engine is full-fidelity | | theme | CSS tokens (SUBHMUHURAT_THEME, DEFAULT_PARTNER_THEME) | | proxy | createMuhuratProxyHandler / proxyMuhuratFindserver-side only (also forwards /daily) | | iframeProtocol | postMessage types for iframe embeds | | MuhuratResultsList | Results-only React chrome |

Never put sk_live_ in the browser. Call AskSoma Partner API from your backend proxy.

Partner kit upgrade

npm i @asksoma/partner@latest

AskSoma dogfoods MuhuratFinder on /embed/muhurat-finder and apps/subhmuhurat (same package partners install), including priorities → target_houses, range presets, compare Time A/B (onResults meta compareTimes), moon signs, extra charts, time slots, and daily frames. First-party-only chrome remains Cosmic Contacts sync, doctor/gated flows, and logged-in primary chart. See docs/PARTNER_API_SDK_UPGRADE.md.

onResults meta (v1.1+)

onResults={(result, meta) => {
  // meta.mode, meta.onlyDates, meta.compareTimes, meta.intentionLabels, meta.request
}}

compareTimes is for Kundli side-by-side only — not a Brain ranking field. Ranking uses only_dates + optional time_window.

Install (monorepo)

cd packages/muhurat-embed && npm install && npm run build

Proxy (Node / Cloudflare Worker)

import { createMuhuratProxyHandler } from '@asksoma/muhurat-embed/proxy';

export default {
  fetch: createMuhuratProxyHandler({
    getApiKey: () => process.env.ASKSOMA_API_KEY,
    resolveAccess: () => 'guest', // or read session → free/pro
  }),
};

See examples/cloudflare-worker.mjs and docs/PARTNER_API_EMBED.md.

iframe

Host page:

<iframe id="muhurat" src="https://embed.subhmuhurat.ai/v1/finder" style="width:100%;border:0;min-height:640px"></iframe>
<script type="module">
  import { MUHURAT_EMBED_PROTOCOL, isMuhuratEmbedMessage } from '@asksoma/muhurat-embed/iframe';
  window.addEventListener('message', (e) => {
    if (!isMuhuratEmbedMessage(e.data)) return;
    if (e.data.type === 'resize') document.getElementById('muhurat').style.height = e.data.height + 'px';
  });
</script>

Security

  • Secret keys stay on the server.
  • Teaser gating is a rendering decision on the same computed result.
  • Partners own their paywall; AskSoma meters by API call quota.