Skip to content

ai-provider-for-jev

WordPress plugin connecting sites to Jev, with PHP helpers for choice, score and yes/no decisions plus a REST proxy and JS client.

Projectbeta

Overview

AI Provider for Jev connects WordPress to TypeSafe's Jev so site code can get structured decisions instead of generated text. It exposes the three primitives: Choice returns a choice with probabilities and confidence, Score returns a score, legend, probabilities and confidence, and Noul returns a 0 to 1 value.

PHP helpers include ask_noul, ask_choice, ask_score and evaluate (many questions at once), a JevClient class, an authenticated REST proxy and a JavaScript client. Settings are read from the settings page first and fall back to constants or environment variables, with secrets best kept in wp-config.php. It requires WordPress 6.8+, PHP 8.3+ and a TypeSafe API key.

What the decision model decides

TypeQuestionAnswers
Yes / noDoes this express urgency?yes · no
ChoiceChoose one option from a list—
ScoreRate the state on a rubric—

How it works

  1. Install and activate the plugin, then enter the API key
  2. Call ask_noul / ask_choice / ask_score from PHP or the JS client
  3. Plugin sends state and questions to Jev
  4. Use the typed answer in site logic

Strengths

  • Native WordPress integration with test-connection button
  • Server-side REST proxy keeps the key off the client
  • Config via constants keeps secrets out of the database

Caveats

  • Requires recent WordPress and PHP
  • Needs a TypeSafe key

Getting started

Upload ai-provider-for-jev.zip under Plugins > Add New, activate, then enter your key under Settings > Jev (TypeSafe).

At a glance

Type
Project
Status
beta
Language
PHP
Runtime
WordPress plugin
Has code
yes
Stars
5

Use cases and integrations

How curated lists describe it

  • Connect WordPress to TypeSafe's Jev System One model for structured decisions (choice, score, noul).

    wh000wh000/awesome-jev-live
  • Connect WordPress to TypeSafe's Jev System One model for structured decisions (choice, score, noul).

    hellogumbo/awesome-jev

Frequently asked questions

What can I call from PHP?

ask_noul, ask_choice, ask_score and evaluate for several questions at once.

Where should I store the key?

In wp-config.php via TYPESAFE_API_KEY, to keep it out of the database.

What are the requirements?

WordPress 6.8+, PHP 8.3+ and a TypeSafe API key.

Related projects

  • WordPress connector that lets themes and plugins ask Jev typed questions and branch on probabilities, choices or scores.

    ServicebetaPHP
  • Ax, a DSPy-style multi-language LLM framework, listed with a native TypeSafe provider for Boolean, Choice, Score and raw Jev questions.

    PluginproductionTypeScript
  • Effect TypeScript library whose @effect/ai-typesafe package maps classify, probability and rating operations to Jev questions.

    ProjectproductionTypeScript
  • PHP monorepo whose Polyglot module adds a TypeSafe driver for typed Noul, Choice and Score decisions alongside LLM inference.

    ProjectproductionPHP
  • Elixir library for unified LLM calls across providers, with an evaluate interface that calls Jev via TypeSafe or OpenRouter.

    ProjectproductionElixir
  • Self-hosted multi-tenant AI agent platform listed as including optional TypeSafe client tools for classification, scoring and yes/no.

    LibraryproductionPython