Skip to content

Commit 015e983

Browse files
committed
chore: migrate from monorepo
1 parent 38ea2b3 commit 015e983

59 files changed

Lines changed: 3137 additions & 2968 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 22 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,36 @@
1-
# Turborepo starter
1+
# Formbricks Browser JS Library
22

3-
This Turborepo starter is maintained by the Turborepo core team.
3+
[![npm package](https://img.shields.io/npm/v/@formbricks/js?style=flat-square)](https://www.npmjs.com/package/@formbricks/js)
4+
[![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)
45

5-
## Using this example
6+
Please see [Formbricks Docs](https://formbricks.com/docs).
7+
Specifically, [Quickstart/Implementation details](https://formbricks.com/docs/getting-started/quickstart-in-app-survey).
68

7-
Run the following command:
9+
## What is Formbricks
810

9-
```sh
10-
npx create-turbo@latest
11-
```
12-
13-
## What's inside?
14-
15-
This Turborepo includes the following packages/apps:
16-
17-
### Apps and Packages
18-
19-
- `docs`: a [Next.js](https://nextjs.org/) app
20-
- `web`: another [Next.js](https://nextjs.org/) app
21-
- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications
22-
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
23-
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
24-
25-
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
26-
27-
### Utilities
28-
29-
This Turborepo has some additional tools already setup for you:
30-
31-
- [TypeScript](https://www.typescriptlang.org/) for static type checking
32-
- [ESLint](https://eslint.org/) for code linting
33-
- [Prettier](https://prettier.io) for code formatting
34-
35-
### Build
36-
37-
To build all apps and packages, run the following command:
38-
39-
```
40-
cd my-turborepo
41-
pnpm build
42-
```
43-
44-
### Develop
45-
46-
To develop all apps and packages, run the following command:
47-
48-
```
49-
cd my-turborepo
50-
pnpm dev
51-
```
52-
53-
### Remote Caching
54-
55-
> [!TIP]
56-
> Vercel Remote Cache is free for all plans. Get started today at [vercel.com](https://vercel.com/signup?/signup?utm_source=remote-cache-sdk&utm_campaign=free_remote_cache).
11+
Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out [formbricks.com](https://formbricks.com).
5712

58-
Turborepo can use a technique known as [Remote Caching](https://turborepo.com/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
13+
## How to use this library
5914

60-
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup?utm_source=turborepo-examples), then enter the following commands:
15+
1. Install the Formbricks package inside your project using npm:
6116

62-
```
63-
cd my-turborepo
64-
npx turbo login
17+
```bash
18+
npm install @formbricks/js
6519
```
6620

67-
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
21+
1. Import Formbricks and initialize the widget in your main component (e.g., App.tsx or App.js):
6822

69-
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
23+
```javascript
24+
import formbricks from "@formbricks/js";
7025

26+
if (typeof window !== "undefined") {
27+
formbricks.setup({
28+
environmentId: "your-environment-id",
29+
appUrl: "https://app.formbricks.com",
30+
});
31+
}
7132
```
72-
npx turbo link
73-
```
74-
75-
## Useful Links
7633

77-
Learn more about the power of Turborepo:
34+
Replace your-environment-id with your actual environment ID. You can find your environment ID in the **Setup Checklist** in the Formbricks settings. If you want to use the user identification feature, please check out [our docs for details](https://formbricks.com/docs/app-surveys/user-identification).
7835

79-
- [Tasks](https://turborepo.com/docs/crafting-your-repository/running-tasks)
80-
- [Caching](https://turborepo.com/docs/crafting-your-repository/caching)
81-
- [Remote Caching](https://turborepo.com/docs/core-concepts/remote-caching)
82-
- [Filtering](https://turborepo.com/docs/crafting-your-repository/running-tasks#using-filters)
83-
- [Configuration Options](https://turborepo.com/docs/reference/configuration)
84-
- [CLI Usage](https://turborepo.com/docs/reference/command-line-reference)
36+
For more detailed guides for different frameworks, check out our [Framework Guides](https://formbricks.com/docs/getting-started/framework-guides).

apps/docs/.gitignore

Lines changed: 0 additions & 36 deletions
This file was deleted.

apps/docs/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

apps/docs/app/favicon.ico

-25.3 KB
Binary file not shown.
-66.3 KB
Binary file not shown.

apps/docs/app/fonts/GeistVF.woff

-64.7 KB
Binary file not shown.

apps/docs/app/globals.css

Lines changed: 0 additions & 50 deletions
This file was deleted.

apps/docs/app/layout.tsx

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)