@flek-ai/flektest-sdk

0.5.0 • Public • Published

A FlekTestWidget component allows your ⚛️ React Native application to import a widget on the flek platform and then test and deploy the widget instantly.

🎬 Watch the Demo!

🚀 Getting Started

  1. Create a new app on the flek platform, an app id will be generated
  2. Connect the github repo to the flek platform
  3. Create a new widget, a widget id will be generated
  4. Copy paste the code of the widget into the widget code editor and replace the widget code with <FlekTestWidget />
  5. Modify the widget using AI prompts and generate the code
  6. Instant deploy the widget

Using Yarn:

yarn add @flek-ai/flektest-sdk

app/page.jsx:

import * as React from 'react';
import { createFlekTestWidget } from '@flek-ai/flektest-sdk';

const { FlekTestWidget } = createFlekTestWidget({
  widgetId: yourWidgetId,
  appId: yourAppId,
  verify: async () => true,
});

export default function App() {
  return <FlekTestWidget />;
}

That is it! It just takes 2 minutes to get started.

/@flek-ai/flektest-sdk/

    Package Sidebar

    Install

    npm i @flek-ai/flektest-sdk

    Weekly Downloads

    195

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    21

    Last publish

    Collaborators

    • ishan-flek-ai