Artificial Intelligence for Frontend Devs

Step 1: Declare a function prototype with a good comment.
Step 2: There is no step 2.

extractNamesOfPeopleFromEmail.jsx
App.jsx
/** 
 * This function extracts all of the names of people from an 
 * email text and returns them as structured information. 
 * 
 * @param emailText - the text of an email from which to 
 * extract names of people 
 * @returns an array of objects with optional firstName 
 * and lastName properties representing the first and last 
 * names of people mentioned in the email.
 * @imaginary
 */ 
export declare function extractNamesOfPeopleFromEmail(
    emailText: string 
): Promise< { firstName?: string; lastName?: string } [] >;

Are you a frontend developer?
Surprise, now you're an AI developer too.

Imaginary Programming lets you use OpenAI's GPT engine as a runtime to accomplish things you've never been able to do before in your code. All you do is define a function prototype in TypeScript (without an implementation!), and Imaginary Programming uses GPT to take care of the rest.

Imaginary Programming is TypeScript-based, so it's easy to add GPT's intelligence to your existing node, next.js, and React projects.

What can Imaginary Programming do?

Use Imaginary programming for any task where human-like intelligence around text is needed. Here are a few examples.

Generate

Generate useful titles and text for your user.

Any time you need to generate a useful title, summary, or text for your user. For example:

"What's a good name for this user's playlist?"

Classify

Classify data using human-like intelligence.

Use Imaginary Programming to classify whether text has a particular semantic intent or emotion to it. For example:

"How angry is this customer email?"

Parse

Extract structured data out of messy, unstructured language.

Tell an imaginary function what kind of data you're looking for, and the function will find the structure inside the mess. For example:

"What are the proper names in this email text?"

Want to see how easy it is?

Watch this livecoding screencast where we use imaginary programming to add a ton of smart new features to a webapp in under 10 minutes:

Try out Imaginary Programming Today

You can install imaginary programming into your current JavaScript and TypeScript projects, or you can try the online Playground to experiment with Imaginary Programming.

Add to my projectTry it out in the Playground
Sign up for our mailing list to stay up to date on the project as we add features and functionality.