Please refer to Veganify API Documentation for a full documentation.
There is an official Wrapper for React, Vue, Svelte, and more available on npm.
The OpenAPI.yml is automatically available in this Swagger UI.
The following endpoints are available within the Veganify API:
- POST: https://api.veganify.app/v0/product/{barcode}
- GET: https://api.veganify.app/v0/ingredients/{ingredientslist}
- GET: https://api.veganify.app/v0/peta/crueltyfree
Use Bun 1.4.4 (the version pinned in package.json) for installation and scripts. Node-based tooling requires Node 22.22.3+, 24.15+, or 26+; these are the versions supported by the Nest 12 schematics.
TypeScript is pinned to 7.0.2. bun run build uses the TypeScript compiler to emit the production CommonJS output.
Ultracite provides the Oxlint ruleset. Bun's built-in formatter is configured to match Ultracite's formatting defaults.
Dependency updates preserve the 48-hour minimum release age configured in bunfig.toml. A newer release shown by bun outdated may therefore be intentionally held back.
To run the API locally, you first need to set up the environment variables. You can do this by creating a .env file based on the .env.example file.
Here, you need to set DEEPL_AUTH to a valid DeepL API key (you can get one here for free), PUSHOVER_TOKEN and PUSHOVER_USER can be left blank, and USER_ID_OEANDB to your OpenEANDB user key.
For Development purposes, you can just provide a dummy value for the USER_ID_OEANDB key.
After setting up the .env file, you can run the following commands to get everything up and running:
bun install --frozen-lockfile
bun run start:devBefore committing changes, run bun run check (lint, typecheck, and tests) and bun run build.
Before committing changes to the isnotvegan.json and isvegan.json lists, format and process them by running the following command:
bun run process:vegan
bun run process:notvegan
