
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
sunergy-calc
Advanced tools
TypeScript library for geometry-based solar potential, irradiance, and solar PV energy calculations without external APIs.
TypeScript library for geometry-based solar potential, irradiance, and solar PV energy calculations — no external APIs, only math and physics.
| Step | Equation |
|---|---|
| Declination | δ = 23.45 × sin[(360/365) × (n − 81)] |
| Hour angle | H = 15 × (solar-time-hours − 12) |
| Altitude | sin(α) = sin(δ) sin(φ) + cos(δ) cos(φ) cos(H) |
| Azimuth | sin(Az) = cos(δ) sin(H) / cos(α) |
| Irradiance | I = I₀ × sin(α) (for horizontal surface, clear sky) |
npm install sunergy-calc
# or
yarn add sunergy-calc
import {
computeSolarPotential,
computePanelPower,
estimateEnergyProduced
} from "sunergy-calc";
// Example 1: Sun position and irradiance at NY, August 15, 2025, 16:00 UTC
const sun = computeSolarPotential(
40.7128, // latitude
-74.0060, // longitude
new Date(Date.UTC(2025, 7, 15, 16, 0, 0)) // UTC date/time
);
console.log(sun);
{
declination: ...,
hourAngle: ...,
altitude: ...,
azimuth: ...,
zenith: ...,
irradiance: ... // W/m² on horizontal
}
// Example 2: Compute actual panel output at this moment
const area = 1.6; // m² (single panel)
const efficiency = 0.20; // 20%
const powerW = computePanelPower(area, efficiency, sun.irradiance);
// Example 3: Estimate daily energy (kWh) for your panel
const averageIrradiance = 5 \* 1000 / 24; // e.g., 5kWh/m²/day avg = ~208 W/m² avg
const kWh = estimateEnergyProduced(
area,
efficiency,
averageIrradiance,
24, // hours in day
0.75 // typical performance ratio (losses)
);
computeSolarPotential(lat, lon, date): SolarPositioncomputePanelPower(area, efficiency, irradiance): numberarea: Panel area (m²)efficiency: PV efficiency (0...1)irradiance: Solar irradiance (W/m²)area * efficiency * irradianceestimateEnergyProduced(area, efficiency, averageIrradiance, periodHours, performanceRatio=0.75): numbernpm install
npx jest
MIT © Abdullah Waqar
Sunergy-calc is not affiliated with or endorsed by pveducation.org, palmetto.com, Sunbase, or EcoFlow. Reference links are for documentation and scientific transparency only.
FAQs
TypeScript library for geometry-based solar potential, irradiance, and solar PV energy calculations without external APIs.
We found that sunergy-calc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.