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 🙏

© 2024 – Pkg Stats / Ryan Hefner

coframe-ai-test

v0.0.38

Published

Coframe optimizes your website using generative AI to deliver maximum impact to your audience and allow your site to improve itself as you sleep. Learn more at coframe.ai.

Downloads

11

Readme

Coframe

Bring your UX to life with AI-powered optimization and personalization

Coframe Banner

Coframe brings the content of your app or website to life through AI-powered optimization, personalization, and overall self-improvement. It takes minutes to integrate, and the ROI is clear to measure.

Table of Contents

  1. Getting Started
  2. Coframe Configuration
  3. Deploying with a Script Tag
  4. Upcoming Features

Getting Started

Step 1: Sign Up for a Coframe Account

Visit coframe.ai to sign up for a Coframe account.

Step 2: Access the Dashboard

Once you've signed up and logged in, you'll be directed to the dashboard, where you can manage your coframes.

Step 3: Create a New Coframe

Click the "New Coframe" button to start optimizing a section of text or images on your website.

Full documentation can be found at https://docs.coframe.ai/.

Coframe Configuration

After clicking "New Coframe", you'll need to provide the necessary information and configure the settings:

  1. Enter the URL for the page you want to optimize and click "Next". Please note that you'll need to enter the full URL, including the protocol (e.g. https://). The easiest way to do this is to visit the page in your browser and copy the URL from the address bar.
  2. Configure the coframe settings:
    • Original Text: Provide the original text you want to optimize. Again, you'll want to copy and paste this directly from your website.
    • Context (optional): Add any context or background information that may be helpful for generating improved variants. You can add information about your target audience, the purpose/objectives of the text, or any other relevant information about what it's describing.
    • Active: Toggle this button (default is ON) to control whether the coframe is actively testing new variants and measuring conversion rates.
    • Optimize Automatically: Toggle this switch (default is OFF) to allow the coframe to generate variants to automatically optimize the copy.
    • Personalized: Toggle this switch (default is OFF) to allow the coframe to ingest user data and personalize the element for each visitor. This is currently not released but is coming soon.
    • Preview: This is a clickable screenshot taken of your website target for easy checking.
    • Save/Delete: Click "Save" to save your coframe settings or "Delete" to remove the coframe.
  3. Click "Save" to save your coframe settings or "Delete" to remove the coframe.
  4. A table will appear with a "Generate Variants" button on top of it. Click this button to generate variants of the original text. A modal will appear with a slider which will allow you to select the number of variants to generate. Click "Generate" to generate the variants.

The top variant will always be your original, which will be kept as a control. The following variants are generated through our platform and will be ranked based upon engagement rate. The more variants you generate, the more likely you are to find a variant that outperforms your original.

You can also remove variants. Through this process of removing and adding variants, you can gradually optimize the copy presented on the website. Note that selecting "Optimize Automatically" will automatically do this for you.

Copy the provided script tag into your website head:

Deploying with a Script Tag

To implement the optimization, paste the copied script tags into the head section of your website's page. You'll be able to copy it from the Coframe dashboard, or you can copy it from here and replace the page ID accordingly:

<script>window.COFRAME_PAGE_ID="{{page ID}}";</script>
<script src='https://cdn.jsdelivr.net/npm/coframe-ai/dist/cf.min.js'></script>

If using a Next project, you can use a Script from next/script at the root of your project:

<Script strategy="afterInteractive">
   {`
      window.COFRAME_PAGE_ID="{{page ID}}";
      var s = document.createElement('script');
      s.src = 'https://cdn.jsdelivr.net/npm/coframe-ai/dist/cf.min.js';
      s.async = 1;
      document.head.appendChild(s);
   `}
</Script>

Alternatively, add it in a useEffect on a single page:

useEffect(() => {
    const coframeId = document.createElement('script')
    coframeId.innerHTML =
      'window.COFRAME_PAGE_ID="{{page ID}}";'
    document.head.appendChild(coframeId)

    const coframeScript = document.createElement('script')
    coframeScript.src = 'https://cdn.jsdelivr.net/npm/coframe-ai/dist/cf.min.js'
    coframeScript.async = true
    document.head.appendChild(coframeScript)
},[])

The script will perform the following tasks:

  1. Search for matches of the "original" copy for each coframe associated with the page.
  2. Replace the original content with a variant to test.
  3. Gather information on user engagement, such as session duration and conversions.
  4. Send the data back to Coframe, where it will be processed to create relevant metrics.
  5. Use the processed data to optimize the variants further and improve your website's overall performance.

If you're on the same page, Coframe is a window variable, and you can track specific events with the following code snippet:

// Replace the name with something that makes sense for your product
window.Coframe.logCoframeConversion('Pressed Pricing Button')

These events will be sent to the dashboard, and can be set as conversion events to help further optimize your experiments.

You can specify any label name as a parameter, such as "Sign Up", or "Try Demo Button", if you want to track multiple different events. Tracking these can help you answer questions about your product like 'What % of users that land on the demo page acutally sign up for a demo?'

Upcoming Features

Coframe will soon support image optimization and other website elements, providing even more versatility in optimizing your website's content. Stay tuned for updates and enhancements to the platform.