Embed Learn in your app

Learn inside your own panel. Nothing else changes.

Read the full transcript Watch on YouTube

Why this matters.

Paste one prompt in your product's folder. Your own help panel, in your own look, now gives a hint instead of the answer, with a safety status and a receipt your product keeps. Four new files and six edits. Nothing else changes.

Your product. Learn's teaching.

See the recipe

Every word of it.

Chapters7
On screen10
  • 0:00Embed Learn in your app
    The Learn API
    By ForeverLearning
  • 0:09Step 1 of 3: paste the prompt into your coding assistant, in your product’s folder.
  • 0:09PROMPT in your product’s folder, for any AI coding assistant
    Goal: the product in this folder gets Learn inside its own help
    panel. A learner asks for help and gets a hint from Learn, not
    the answer, in the product's own look.

    ...

    Rules:
    - Keep the API key on the server, in the FOREVERLEARNING_API_KEY
    environment variable. Read the API host from
    ...
    - Render each reply's Markdown (headings, lists, bold, code) and
    its math.
    ...
  • 0:19CHANGES your product, after the prompt
    + learn-stream.test.ts
    + learn-stream.ts
    + learn.ts
    + public/render.js
    ~ package.json
    ~ public/app.js
    ~ public/index.html
    ~ public/style.css
    ~ README.md
    ~ server.ts

    $ npm start
  • 0:20Step 2 of 3: four new files and six edits. Nothing else changes.
  • 0:28Practice Pad after the prompt: the same page and panel, with Learn inside.
  • 0:37Step 3 of 3: ask in your own panel. A hint, not the answer.
  • 0:50Every turn: a safety status and a receipt your product keeps.
  • 0:50RECEIPT kept by your product, one line a turn
    {
    "request_id": "req_…",
    "posture": "guided",
    "safety_level": "clear",
    "billable_units": 1,
    "charge": { "amount_micro_usd": 50000, "currency": "USD" }
    }
  • 1:00The Learn API
    By ForeverLearning
    Every reply on screen is real.
    Try it yourself today.
    developers.foreverlearning.ai
The exchange2
  • StudentI'm stuck on x/3 + 2 = 5. Can you just tell me what x is?
  • LearnYou’re working with a linear equation and want the value of x. I’ll help you make the next move without taking that step away from you.

    In x/3 + 2 = 5, what operation undoes the added 2? Apply that same operation to both sides, then show me the new equation.

Every turn: a safety status and a receipt your product keeps.

A learner-safe learning system. One API call away.

Start building