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

avena-score

v1.0.0

Published

Open-source European property scoring engine. 0–100 Avena Score with full auditable component breakdown.

Readme

avena-score

The Avena Score Engine — open-source property scoring for European new-build real estate.

S = 100 × (0.40·V + 0.25·Y + 0.20·L + 0.10·Q + 0.05·R)

Given any property's price, size, location, and basic characteristics, avena-score returns a 0–100 Avena Score with a full, auditable component breakdown. The same engine powering avenaterminal.com.

Install

npm install @avena/score

Or use the CLI:

npx @avena/score --price 385000 --built 176 --region "costa blanca" --beach 0.8

Node.js API

import { scoreProperty } from '@avena/score';

const result = scoreProperty({
  price_eur: 385_000,
  built_m2: 176,
  bedrooms: 3,
  bathrooms: 2,
  beach_km: 0.8,
  property_type: 'villa',
  town: 'Torrevieja',
  region: 'Costa Blanca',
  town_median_m2: 2543,
});

console.log(result.score);        // → 78
console.log(result.components);   // → [{ code: 'V', value: 0.82, ... }, ...]
console.log(result.verdict);      // → 'High conviction. Multiple components above market...'

Methodology

Each sub-score maps to a weighted 0–1 value:

| Code | Weight | Meaning | |------|--------|-------------------------------------------------| | V | 40% | Valuation — discount vs town/regional €/m² | | Y | 25% | Yield — gross rental yield, 0–8% scale | | L | 20% | Location — region tier × beach proximity | | Q | 10% | Quality — property type + beds + size band | | R | 5% | Risk — macro + liquidity (public default: 0.6) |

Full methodology + hedonic regression details: avenaterminal.com/research/avena-score.

Reproduce

All data used to tune V and Y is public:

  • Live Spanish new-build comps: GET https://avenaterminal.com/api/v1/properties
  • Town medians: GET https://avenaterminal.com/api/v1/market
  • Bubble/regime signals: GET https://avenaterminal.com/api/v1/bubble-scanner

To reproduce the 1,881-property backtest:

git clone https://github.com/avenaterminal/avena-score
cd avena-score
npm install
npm test

Challenge

Beat our scoring accuracy on the 2026 holdout set and enter the public leaderboard at avenaterminal.com/challenge/score-2026.

License

  • Engine code: MIT
  • Training data: CC BY 4.0
  • Cite as: AVENA Score Engine · Avena Terminal (avenaterminal.com)
  • DOI: 10.5281/zenodo.19520064

Contributing

Open issues, PRs, backtest results welcome. The engine is versioned — v1.0 is frozen. Proposed improvements land in v2.x branches with published evaluation numbers.

Who's using it


Built in public, open in principle. Put us on your README:

![Avena Score](https://avenaterminal.com/badge/YOUR-REF.svg)