Skip to content

Commit

Permalink
Switch to monorepo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-menjivar committed Nov 16, 2023
1 parent e15fa46 commit bf5d47b
Show file tree
Hide file tree
Showing 415 changed files with 3,099 additions and 12,911 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ pnpm-lock.yaml
# ide
.vscode/

*.json
*.json

+ .turbo
*/.turbo
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.cache-loader
.DS_Store
.pnpm-debug.log
.turbo
.vscode/generated*
/_work
/actions-runner
node_modules
patches
pnpm-lock.yaml
*.d.ts
*.d.ts.map

.next

.docusaurus
build
docs/docs/reference/core
docs/docs/reference/sveltekit
static
docs/manifest.mjs
158 changes: 2 additions & 156 deletions README.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
25 changes: 25 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# unSAGED Documentation

The documentation site is built using [Docusaurus 3](https://docusaurus.io/).

## Installation

```sh
npm install
```

## Local Development

```sh
npm start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

## Build

```sh
npm build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
3 changes: 3 additions & 0 deletions docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
12 changes: 12 additions & 0 deletions docs/blog/2019-05-28-first-blog-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
slug: first-blog-post
title: First Blog Post
authors:
name: Gao Wei
title: Docusaurus Core Team
url: https://github.com/wgao19
image_url: https://github.com/wgao19.png
tags: [hola, docusaurus]
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
44 changes: 44 additions & 0 deletions docs/blog/2019-05-29-long-blog-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
slug: long-blog-post
title: Long Blog Post
authors: endi
tags: [hello, docusaurus]
---

This is the summary of a very long blog post,

Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.

<!--truncate-->

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
20 changes: 20 additions & 0 deletions docs/blog/2021-08-01-mdx-blog-post.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
slug: mdx-blog-post
title: MDX Blog Post
authors: [slorber]
tags: [docusaurus]
---

Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).

:::tip

Use the power of React to create interactive blog posts.

```js
<button onClick={() => alert('button clicked!')}>Click me!</button>
```

<button onClick={() => alert('button clicked!')}>Click me!</button>

:::
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions docs/blog/2021-08-26-welcome/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
slug: welcome
title: Welcome
authors: [slorber, yangshun]
tags: [facebook, hello, docusaurus]
---

[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).

Simply add Markdown files (or folders) to the `blog` directory.

Regular blog authors can be added to `authors.yml`.

The blog post date can be extracted from filenames, such as:

- `2019-05-30-welcome.md`
- `2019-05-30-welcome/index.md`

A blog post folder can be convenient to co-locate blog post images:

![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)

The blog supports tags as well!

**And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.
17 changes: 17 additions & 0 deletions docs/blog/authors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
endi:
name: Endilie Yacop Sucipto
title: Maintainer of Docusaurus
url: https://github.com/endiliey
image_url: https://github.com/endiliey.png

yangshun:
name: Yangshun Tay
title: Front End Engineer @ Facebook
url: https://github.com/yangshun
image_url: https://github.com/yangshun.png

slorber:
name: Sébastien Lorber
title: Docusaurus maintainer
url: https://sebastienlorber.com
image_url: https://github.com/slorber.png
13 changes: 13 additions & 0 deletions docs/docs/auth-providers/auth0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Auth0

You can use Auth0 as an authentication provider for your app. Create an Auth0 account and follow the instructions below to set up Auth0 authentication.

The callback URL should be set to `http://localhost:3000/api/auth/callback/auth0`. Replace `http://localhost:3000` with your domain if you are running in production.

You can enable Auth0 authentication by setting the following environment variables:

```sh
AUTH0_CLIENT_ID=xxxxxxxxxxxxx
AUTH0_CLIENT_SECRET=xxxxxxxxxxxxx
AUTH0_ISSUER=https://mydomain.us.auth0.com
```
8 changes: 8 additions & 0 deletions docs/docs/auth-providers/email.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Email

To set up email authentication, you'll need to set the following environment variables:

```sh
EMAIL_SERVER=smtp://username:[email protected]:587
[email protected]
```
12 changes: 12 additions & 0 deletions docs/docs/auth-providers/github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# GitHub

To set up GitHub authentication, you need to [register a new OAuth application](https://github.com/settings/applications/new) in your GitHub settings.

In the github settings, the callback URL should be set to `http://localhost:3000/api/auth/callback/github`. Replace `http://localhost:3000` with your domain if you are running in production.

You can enable GitHub authentication by setting the following environment variables:

```sh
GITHUB_CLIENT_ID=xxxxxxxxxxxxx
GITHUB_CLIENT_SECRET=xxxxxxxxxxxxx
```
12 changes: 12 additions & 0 deletions docs/docs/auth-providers/google.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Google

To set up Google authentication, you will need to create a Google Cloud project. You will also need to create a Google OAuth 2.0 client ID and secret. You can do all of this from the [Google Cloud Console](https://console.cloud.google.com/).

In the cloud console, the callback URL should be set to `http://localhost:3000/api/auth/callback/google`. Replace `http://localhost:3000` with your domain if you are running in production.

You can enable Google authentication by setting the following environment variables:

```sh
GOOGLE_CLIENT_ID="xxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET=xxxxxxxxxxxxx
```
37 changes: 37 additions & 0 deletions docs/docs/auth-providers/other-providers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Other Providers

In general, you can use the same pattern for all supported authentication providers:

1. Create an account with the provider.
2. Create an app with the provider.
3. Configure the app with the appropriate callback URL.
4. Set the appropriate environment variables.

```sh
<PROVIDER>_CLIENT_ID=xxxxxxxxxxxxx
<PROVIDER>_CLIENT_SECRET=xxxxxxxxxxxxx
```

You may need to include the issuer environment variable for some providers:

```sh
<PROVIDER>_ISSUER=https://mydomain.us.myprovider.com
```

## Supported Providers

- APPLE
- AUTH0
- COGNITO
- DISCORD
- FACEBOOK
- GITHUB
- GITLAB
- GOOGLE
- OKTA
- REDDIT
- SALESFORCE
- SLACK
- SPOTIFY
- TWITCH
- TWITTER
17 changes: 17 additions & 0 deletions docs/docs/configuration/anthropic-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
sidebar_position: 7
---

# Anthropic Configuration

## Global Access Configuration

To give everyone using your instance of unSAGED access to Anthropic models like Claude 2, set the following environment variables:

```sh title="apps/unsaged/.env.local"
ANTHROPIC_API_KEY=your_anthropic_api_key
```

## Advanced Configuration

See [Anthropic Environment Variables](/docs/model-providers/anthropic#environment-variables) for a full list of environment variables that can be set to configure Anthropic models.
19 changes: 19 additions & 0 deletions docs/docs/configuration/azure-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
sidebar_position: 6
---

# Azure Configuration

To give everyone using your instance of unSAGED access to OpenAI models hosted on Azure set the following environment variables.

## Global Access Configuration

```sh title="apps/unsaged/.env.local"
OPENAI_API_URL=the_url_of_your_azure_api
OPENAI_API_KEY=your_api_key
OPENAI_API_TYPE=azure
```

## Advanced Configuration

See [OpenAI Environment Variables](/docs/model-providers/openai#environment-variables) for a full list of environment variables that can be set to configure OpenAI models, including the models accessed through Azure.
Loading

0 comments on commit bf5d47b

Please sign in to comment.