{"_id":"@asksoma/muhurat-embed","_rev":"5-23299f7643b8630e660cdb4d8f61fc4c","name":"@asksoma/muhurat-embed","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.4":{"name":"@asksoma/muhurat-embed","version":"1.0.4","license":"UNLICENSED","_id":"@asksoma/muhurat-embed@1.0.4","maintainers":[{"name":"asksoma","email":"asksoma.ai@gmail.com"}],"dist":{"shasum":"bb88d9219a222dc8fc82fdbd019e4b50edcd48bd","tarball":"https://registry.npmjs.org/@asksoma/muhurat-embed/-/muhurat-embed-1.0.4.tgz","fileCount":43,"integrity":"sha512-B1C6Mqvm1QDuJU3ZZpwLTFmX2e1/gD+8TH0QAPwAdMrftx4SZv7atjM2st4QJqw8pPwrI7phGm4guyfvjrCTuA==","signatures":[{"sig":"MEUCIQDq5fH1oGCA3//dh3XfOkG1KTbmGtbsiysQwg6xteX8kAIgdcaIiU1h9IfNpkLJKuaFk5lBaHh+Y4Zoct+jSLPMB0A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":146177},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./proxy":{"types":"./dist/proxy.d.ts","import":"./dist/proxy.js"},"./iframe":{"types":"./dist/iframeProtocol.d.ts","import":"./dist/iframeProtocol.js"}},"gitHead":"c4966a991748653e6437d7e87eed0ec9a71e2213","private":false,"scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"asksoma","email":"asksoma.ai@gmail.com"},"_npmVersion":"10.9.7","description":"Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/muhurat-embed_1.0.4_1784890461720_0.3826567502821421","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@asksoma/muhurat-embed","version":"1.0.6","license":"UNLICENSED","_id":"@asksoma/muhurat-embed@1.0.6","maintainers":[{"name":"asksoma","email":"asksoma.ai@gmail.com"}],"dist":{"shasum":"e01160ff168d33c4ab13d7435eb2f22300245f53","tarball":"https://registry.npmjs.org/@asksoma/muhurat-embed/-/muhurat-embed-1.0.6.tgz","fileCount":43,"integrity":"sha512-LslyEXG9t2NBcUv7XrqT8Bu5bp/J431rfi5RnIJ+rFOJQPt2+sAH+3CN9ZVuomwFnQZ2GL4cgUz16pJnfPo3aw==","signatures":[{"sig":"MEYCIQCStZvou2mFYaY0xWG4OXaaAvQb6+heSbIBTJAKV3YD6wIhAPdNwMq81DIh8EHf3ofMcsvGIP+jwhqAUTPtxRx9SMGu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":146177},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./proxy":{"types":"./dist/proxy.d.ts","import":"./dist/proxy.js"},"./iframe":{"types":"./dist/iframeProtocol.d.ts","import":"./dist/iframeProtocol.js"}},"gitHead":"f93211cb0ad9ea27e415c6d195438cfea837edc9","private":false,"scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"asksoma","email":"asksoma.ai@gmail.com"},"_npmVersion":"10.9.7","description":"Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/muhurat-embed_1.0.6_1784912523661_0.8670945395465577","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@asksoma/muhurat-embed","version":"1.1.0","license":"UNLICENSED","_id":"@asksoma/muhurat-embed@1.1.0","maintainers":[{"name":"asksoma","email":"asksoma.ai@gmail.com"}],"dist":{"shasum":"e69748d3ddc9652a65e3eeeed23dd6c7c28da835","tarball":"https://registry.npmjs.org/@asksoma/muhurat-embed/-/muhurat-embed-1.1.0.tgz","fileCount":46,"integrity":"sha512-QJQaCVS9fwKDylYW24g1fJ/Buw0HFhlWhICdHJUWQrWpZXqjHO9kDX2/HhseNvzOP09hgIeuHOaw5C6+nBoPcw==","signatures":[{"sig":"MEUCIA8gAIgBJ8+s/VPD1eVlilCq/uDNJfVxFdVYBdoZOAg2AiEAkVGjlY0RssC17YeBus3pouGzkR3kgXwfhmwKCkNbCf8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180777},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./proxy":{"types":"./dist/proxy.d.ts","import":"./dist/proxy.js"},"./iframe":{"types":"./dist/iframeProtocol.d.ts","import":"./dist/iframeProtocol.js"}},"gitHead":"1bab1afa7942b5d3a9dbae1e26c81c1aa62c439a","private":false,"scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"asksoma","email":"asksoma.ai@gmail.com"},"_npmVersion":"10.9.7","description":"Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/muhurat-embed_1.1.0_1784933394232_0.34674128077450805","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@asksoma/muhurat-embed","version":"1.1.1","license":"UNLICENSED","_id":"@asksoma/muhurat-embed@1.1.1","maintainers":[{"name":"asksoma","email":"asksoma.ai@gmail.com"}],"dist":{"shasum":"0ad944fd3f868b1db73a5573c726f167b1deda9e","tarball":"https://registry.npmjs.org/@asksoma/muhurat-embed/-/muhurat-embed-1.1.1.tgz","fileCount":46,"integrity":"sha512-3lu1s8wOW1ka4vSx9V9zNzD1UH7gABLQVJ9I/YlXBLwL8U6vVdxLntUUkYDhic60YSPIai5xE3+/uxaR5dSuKg==","signatures":[{"sig":"MEYCIQCoxso7uXm4AFXTtAHnwXnBR8D6rswUZTPUmGxmOMM4NgIhAMUvQxDD18LszKCb0xrJC0TgRzBzRZBYNM+ZrTwR2F01","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":189399},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./proxy":{"types":"./dist/proxy.d.ts","import":"./dist/proxy.js"},"./iframe":{"types":"./dist/iframeProtocol.d.ts","import":"./dist/iframeProtocol.js"}},"gitHead":"1bab1afa7942b5d3a9dbae1e26c81c1aa62c439a","private":false,"scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"asksoma","email":"asksoma.ai@gmail.com"},"_npmVersion":"10.9.7","description":"Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/muhurat-embed_1.1.1_1784933964648_0.9896097479257335","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@asksoma/muhurat-embed","version":"1.1.2","private":false,"description":"Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./proxy":{"types":"./dist/proxy.d.ts","import":"./dist/proxy.js"},"./iframe":{"types":"./dist/iframeProtocol.d.ts","import":"./dist/iframeProtocol.js"}},"scripts":{"build":"tsc -p tsconfig.json"},"license":"UNLICENSED","peerDependencies":{"react":">=18"},"peerDependenciesMeta":{"react":{"optional":true}},"devDependencies":{"typescript":"^5.6.0","@types/react":"^18.3.0"},"_id":"@asksoma/muhurat-embed@1.1.2","gitHead":"1bab1afa7942b5d3a9dbae1e26c81c1aa62c439a","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-f8vyjAAe/O3nevwQgMjYDIo3GK5vA1rXi8us1mvUyOjaYrQNtYXP2XKeTqWAM34dgDHV09sZYuIFXFKV8vRvtg==","shasum":"c155d36f73a5966b28fa1630544fcb313705eb64","tarball":"https://registry.npmjs.org/@asksoma/muhurat-embed/-/muhurat-embed-1.1.2.tgz","fileCount":46,"unpackedSize":189399,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEbtH6+ifkPl5xMKwGsBO76KTgg1uRoEV/1YKoO13MGaAiEAlyijAPH2IWpcclgqTcZpsEEYVK2RdAxlxoX+zoZN9B8="}]},"_npmUser":{"name":"asksoma","email":"asksoma.ai@gmail.com"},"directories":{},"maintainers":[{"name":"asksoma","email":"asksoma.ai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/muhurat-embed_1.1.2_1784934717722_0.7146179551764653"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-24T10:54:21.603Z","modified":"2026-07-24T23:11:58.098Z","1.0.4":"2026-07-24T10:54:21.847Z","1.0.6":"2026-07-24T17:02:03.796Z","1.1.0":"2026-07-24T22:49:54.375Z","1.1.1":"2026-07-24T22:59:24.831Z","1.1.2":"2026-07-24T23:11:57.937Z"},"license":"UNLICENSED","description":"Host-agnostic Muhurat Finder access helpers, theme tokens, proxy recipe, and iframe postMessage protocol for sub-brands and third parties.","maintainers":[{"name":"asksoma","email":"asksoma.ai@gmail.com"}],"readme":"# @asksoma/muhurat-embed\n\nHost-agnostic building blocks for **white-label Muhurat Finder** UIs (subhmuhurat.ai + third parties).\n\n| Export | Use |\n|--------|-----|\n| `MuhuratFinder` | **Full Finder UI** — AskSoma section order: location → activity → priorities → mode → range presets / compare clocks → factor-in → availability |\n| `mapIntention` / `mapPrioritiesToHouses` / `defaultPrioritiesForActivity` | Free-text / chip priorities → `target_houses`; activity → suggested priorities |\n| `findMuhuratViaProxy` / `findMuhuratDailyViaProxy` | POST helpers for your `/api/muhurat` (+ `/daily`) proxy |\n| `access` | Teaser gate (`guest`/`free`/`pro`) — display only; engine is full-fidelity |\n| `theme` | CSS tokens (`SUBHMUHURAT_THEME`, `DEFAULT_PARTNER_THEME`) |\n| `proxy` | `createMuhuratProxyHandler` / `proxyMuhuratFind` — **server-side only** (also forwards `/daily`) |\n| `iframeProtocol` | postMessage types for iframe embeds |\n| `MuhuratResultsList` | Results-only React chrome |\n\n> **Never put `sk_live_` in the browser.** Call AskSoma Partner API from your backend proxy.\n\n## Partner kit upgrade\n\n```bash\nnpm i @asksoma/partner@latest\n```\n\nAskSoma 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`.\n\n### `onResults` meta (v1.1+)\n\n```ts\nonResults={(result, meta) => {\n  // meta.mode, meta.onlyDates, meta.compareTimes, meta.intentionLabels, meta.request\n}}\n```\n\n`compareTimes` is for Kundli side-by-side only — not a Brain ranking field. Ranking uses `only_dates` + optional `time_window`.\n\n## Install (monorepo)\n\n```bash\ncd packages/muhurat-embed && npm install && npm run build\n```\n\n## Proxy (Node / Cloudflare Worker)\n\n```ts\nimport { createMuhuratProxyHandler } from '@asksoma/muhurat-embed/proxy';\n\nexport default {\n  fetch: createMuhuratProxyHandler({\n    getApiKey: () => process.env.ASKSOMA_API_KEY,\n    resolveAccess: () => 'guest', // or read session → free/pro\n  }),\n};\n```\n\nSee `examples/cloudflare-worker.mjs` and `docs/PARTNER_API_EMBED.md`.\n\n## iframe\n\nHost page:\n\n```html\n<iframe id=\"muhurat\" src=\"https://embed.subhmuhurat.ai/v1/finder\" style=\"width:100%;border:0;min-height:640px\"></iframe>\n<script type=\"module\">\n  import { MUHURAT_EMBED_PROTOCOL, isMuhuratEmbedMessage } from '@asksoma/muhurat-embed/iframe';\n  window.addEventListener('message', (e) => {\n    if (!isMuhuratEmbedMessage(e.data)) return;\n    if (e.data.type === 'resize') document.getElementById('muhurat').style.height = e.data.height + 'px';\n  });\n</script>\n```\n\n## Security\n\n- Secret keys stay on the server.\n- Teaser gating is a **rendering** decision on the same computed result.\n- Partners own their paywall; AskSoma meters by API call quota.\n","readmeFilename":"README.md"}