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

@foodashi/api-client

v0.1.1

Published

Official TypeScript and JavaScript client for the Foodashi recipe and nutrition API.

Readme

@foodashi/api-client

Official TypeScript and JavaScript client for the Foodashi recipe and nutrition API. Fully typed, generated directly from the live OpenAPI spec.

Foodashi gives you thousands of recipes across 78 world cuisines, each with a food photo, per-serving and per-100g nutrition computed from 11 official government food composition databases (any AI-estimated value is flagged at lower confidence), EU 1169/2011 allergen declarations, dietary tags, taste profiles, beverage pairings, and a NutriMetric health score. Over 70 endpoints.

Install

npm install @foodashi/api-client

Quick start

import { client, getRecipes } from '@foodashi/api-client';

// Configure once
client.setConfig({
  baseUrl: 'https://api.foodashi.com',
  headers: { 'X-Api-Key': process.env.FOODASHI_API_KEY },
});

// Every endpoint is a typed function
const { data, error } = await getRecipes({ query: { limit: 10 } });
if (data) console.log(data);

Get a free API key at foodashi.com/console. The Hobby tier includes 10,000 calls a month, no card required.

What you get

Typed functions for all 70+ endpoints, with full request and response types, so your editor autocompletes every field. A few examples:

  • Recipe discovery: getRecipes, filterRecipes, getRecipeById, getSimilarRecipes, and browse-by-cuisine, diet, time, difficulty, season, occasion, and more
  • Per-recipe data: getRecipeNutrition, getRecipeAllergens, getRecipeTaste, getRecipeSustainability, scaleRecipeServings
  • Ingredients: searchIngredients, getIngredientDetails, getIngredientSubstitutes, convertIngredientUnit
  • Pro AI endpoints: generateMealPlan, recognizeDish, recognizeIngredients, analyzeRecipeUrl, getBeveragePairing, semanticRecipeSearch

Regenerate from the latest spec

npm run generate   # pulls https://foodashi.com/openapi.json
npm run build

Links

  • Documentation: https://foodashi.com/api-recipe-documentation/
  • Interactive Test Kitchen: https://foodashi.com/test-kitchen/
  • OpenAPI spec: https://foodashi.com/openapi.json

License

MIT