diff --git a/examples/child-workflows/.env.example b/child-workflows/.env.example similarity index 100% rename from examples/child-workflows/.env.example rename to child-workflows/.env.example diff --git a/examples/child-workflows/.prettierrc b/child-workflows/.prettierrc similarity index 100% rename from examples/child-workflows/.prettierrc rename to child-workflows/.prettierrc diff --git a/examples/child-workflows/Dockerfile b/child-workflows/Dockerfile similarity index 100% rename from examples/child-workflows/Dockerfile rename to child-workflows/Dockerfile diff --git a/examples/child-workflows/package.json b/child-workflows/package.json similarity index 100% rename from examples/child-workflows/package.json rename to child-workflows/package.json diff --git a/examples/child-workflows/pnpm-lock.yaml b/child-workflows/pnpm-lock.yaml similarity index 100% rename from examples/child-workflows/pnpm-lock.yaml rename to child-workflows/pnpm-lock.yaml diff --git a/examples/child-workflows/readme.md b/child-workflows/readme.md similarity index 89% rename from examples/child-workflows/readme.md rename to child-workflows/readme.md index e1e83c6..ac718e5 100644 --- a/examples/child-workflows/readme.md +++ b/child-workflows/readme.md @@ -22,7 +22,7 @@ This will start Node.js app with two Restack Services. Your code will be running To start the Restack Studio, you can use Docker. ```bash -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` ## Schedule the parent workflow @@ -46,7 +46,7 @@ RESTACK_ENGINE_API_KEY= RESTACK_CLOUD_TOKEN= ``` -5. Now run the following command at the root of the folder `examples/childworkflows` +5. Now run the following command at the root of the folder `childworkflows` ``` bash pnpm restack-up diff --git a/examples/child-workflows/restack_up.mjs b/child-workflows/restack_up.mjs similarity index 92% rename from examples/child-workflows/restack_up.mjs rename to child-workflows/restack_up.mjs index 35c3c28..a819f26 100644 --- a/examples/child-workflows/restack_up.mjs +++ b/child-workflows/restack_up.mjs @@ -17,8 +17,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/child-workflows/Dockerfile", - dockerBuildContext: "examples/child-workflows", + dockerFilePath: "child-workflows/Dockerfile", + dockerBuildContext: "child-workflows", environmentVariables: [ ...restackEngineEnvs, { diff --git a/examples/child-workflows/scheduleWorkflow.ts b/child-workflows/scheduleWorkflow.ts similarity index 100% rename from examples/child-workflows/scheduleWorkflow.ts rename to child-workflows/scheduleWorkflow.ts diff --git a/examples/child-workflows/src/client.ts b/child-workflows/src/client.ts similarity index 100% rename from examples/child-workflows/src/client.ts rename to child-workflows/src/client.ts diff --git a/examples/child-workflows/src/functions/hello.ts b/child-workflows/src/functions/hello.ts similarity index 100% rename from examples/child-workflows/src/functions/hello.ts rename to child-workflows/src/functions/hello.ts diff --git a/examples/child-workflows/src/functions/index.ts b/child-workflows/src/functions/index.ts similarity index 100% rename from examples/child-workflows/src/functions/index.ts rename to child-workflows/src/functions/index.ts diff --git a/examples/child-workflows/src/services.ts b/child-workflows/src/services.ts similarity index 100% rename from examples/child-workflows/src/services.ts rename to child-workflows/src/services.ts diff --git a/examples/child-workflows/src/workflows/child.ts b/child-workflows/src/workflows/child.ts similarity index 100% rename from examples/child-workflows/src/workflows/child.ts rename to child-workflows/src/workflows/child.ts diff --git a/examples/child-workflows/src/workflows/index.ts b/child-workflows/src/workflows/index.ts similarity index 100% rename from examples/child-workflows/src/workflows/index.ts rename to child-workflows/src/workflows/index.ts diff --git a/examples/child-workflows/src/workflows/parent.ts b/child-workflows/src/workflows/parent.ts similarity index 100% rename from examples/child-workflows/src/workflows/parent.ts rename to child-workflows/src/workflows/parent.ts diff --git a/examples/child-workflows/tsconfig.json b/child-workflows/tsconfig.json similarity index 100% rename from examples/child-workflows/tsconfig.json rename to child-workflows/tsconfig.json diff --git a/examples/composio/.env.example b/composio/.env.example similarity index 100% rename from examples/composio/.env.example rename to composio/.env.example diff --git a/examples/composio/Dockerfile b/composio/Dockerfile similarity index 100% rename from examples/composio/Dockerfile rename to composio/Dockerfile diff --git a/examples/composio/package.json b/composio/package.json similarity index 100% rename from examples/composio/package.json rename to composio/package.json diff --git a/examples/composio/pnpm-lock.yaml b/composio/pnpm-lock.yaml similarity index 100% rename from examples/composio/pnpm-lock.yaml rename to composio/pnpm-lock.yaml diff --git a/examples/composio/readme.md b/composio/readme.md similarity index 93% rename from examples/composio/readme.md rename to composio/readme.md index 02b7044..8bc5838 100644 --- a/examples/composio/readme.md +++ b/composio/readme.md @@ -22,7 +22,7 @@ brew install pnpm To install the Restack Web UI, you can use Docker. ```bash -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Start services diff --git a/examples/composio/restack_up.mjs b/composio/restack_up.mjs similarity index 90% rename from examples/composio/restack_up.mjs rename to composio/restack_up.mjs index 97cb560..45db051 100644 --- a/examples/composio/restack_up.mjs +++ b/composio/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/composio/Dockerfile", - dockerBuildContext: "examples/composio", + dockerFilePath: "composio/Dockerfile", + dockerBuildContext: "composio", environmentVariables: [ { name: "COMPOSIO_API_KEY", diff --git a/examples/composio/scheduleWorkflow.ts b/composio/scheduleWorkflow.ts similarity index 100% rename from examples/composio/scheduleWorkflow.ts rename to composio/scheduleWorkflow.ts diff --git a/examples/composio/src/client.ts b/composio/src/client.ts similarity index 100% rename from examples/composio/src/client.ts rename to composio/src/client.ts diff --git a/examples/composio/src/services.ts b/composio/src/services.ts similarity index 100% rename from examples/composio/src/services.ts rename to composio/src/services.ts diff --git a/examples/composio/src/workflows/createCalendarEvent.ts b/composio/src/workflows/createCalendarEvent.ts similarity index 100% rename from examples/composio/src/workflows/createCalendarEvent.ts rename to composio/src/workflows/createCalendarEvent.ts diff --git a/examples/composio/src/workflows/index.ts b/composio/src/workflows/index.ts similarity index 100% rename from examples/composio/src/workflows/index.ts rename to composio/src/workflows/index.ts diff --git a/examples/composio/tsconfig.json b/composio/tsconfig.json similarity index 100% rename from examples/composio/tsconfig.json rename to composio/tsconfig.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/.env.Example b/defense_quickstart_news_scraper_summarizer/.env.Example similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/.env.Example rename to defense_quickstart_news_scraper_summarizer/.env.Example diff --git a/examples/defense_quickstart_news_scraper_summarizer/.gitignore b/defense_quickstart_news_scraper_summarizer/.gitignore similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/.gitignore rename to defense_quickstart_news_scraper_summarizer/.gitignore diff --git a/examples/defense_quickstart_news_scraper_summarizer/README.md b/defense_quickstart_news_scraper_summarizer/README.md similarity index 98% rename from examples/defense_quickstart_news_scraper_summarizer/README.md rename to defense_quickstart_news_scraper_summarizer/README.md index f6c6b83..37bd058 100644 --- a/examples/defense_quickstart_news_scraper_summarizer/README.md +++ b/defense_quickstart_news_scraper_summarizer/README.md @@ -59,7 +59,7 @@ Functions can be executed as steps in a [workflow](https://docs.restack.io/featu First, install the Restack Web UI and Engine using Docker: ```bash -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` - Required for any function and workflow execution as the orchestration layer diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/.env.Example b/defense_quickstart_news_scraper_summarizer/backend/.env.Example similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/.env.Example rename to defense_quickstart_news_scraper_summarizer/backend/.env.Example diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/.prettierrc b/defense_quickstart_news_scraper_summarizer/backend/.prettierrc similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/.prettierrc rename to defense_quickstart_news_scraper_summarizer/backend/.prettierrc diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/Dockerfile b/defense_quickstart_news_scraper_summarizer/backend/Dockerfile similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/Dockerfile rename to defense_quickstart_news_scraper_summarizer/backend/Dockerfile diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/package.json b/defense_quickstart_news_scraper_summarizer/backend/package.json similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/package.json rename to defense_quickstart_news_scraper_summarizer/backend/package.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/pnpm-lock.yaml b/defense_quickstart_news_scraper_summarizer/backend/pnpm-lock.yaml similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/pnpm-lock.yaml rename to defense_quickstart_news_scraper_summarizer/backend/pnpm-lock.yaml diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/client.ts b/defense_quickstart_news_scraper_summarizer/backend/src/client.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/client.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/client.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/index.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/index.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/index.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/index.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/website.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/website.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/website.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/crawl/website.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/index.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/index.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/index.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/index.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/chat.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/chat.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/chat.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/chat.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/client.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/client.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/client.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/client.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/index.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/index.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/index.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/llm/index.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/index.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/index.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/index.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/index.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/pull.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/pull.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/pull.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/rss/pull.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/index.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/index.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/index.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/index.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/splitText.ts b/defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/splitText.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/splitText.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/functions/utils/splitText.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/services.ts b/defense_quickstart_news_scraper_summarizer/backend/src/services.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/services.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/services.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/workflows/index.ts b/defense_quickstart_news_scraper_summarizer/backend/src/workflows/index.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/workflows/index.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/workflows/index.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/src/workflows/rssDigest.ts b/defense_quickstart_news_scraper_summarizer/backend/src/workflows/rssDigest.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/src/workflows/rssDigest.ts rename to defense_quickstart_news_scraper_summarizer/backend/src/workflows/rssDigest.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/backend/tsconfig.json b/defense_quickstart_news_scraper_summarizer/backend/tsconfig.json similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/backend/tsconfig.json rename to defense_quickstart_news_scraper_summarizer/backend/tsconfig.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/docker-compose.yml b/defense_quickstart_news_scraper_summarizer/docker-compose.yml similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/docker-compose.yml rename to defense_quickstart_news_scraper_summarizer/docker-compose.yml diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend.png b/defense_quickstart_news_scraper_summarizer/frontend.png similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend.png rename to defense_quickstart_news_scraper_summarizer/frontend.png diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/.dockerignore b/defense_quickstart_news_scraper_summarizer/frontend/.dockerignore similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/.dockerignore rename to defense_quickstart_news_scraper_summarizer/frontend/.dockerignore diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/.env.Example b/defense_quickstart_news_scraper_summarizer/frontend/.env.Example similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/.env.Example rename to defense_quickstart_news_scraper_summarizer/frontend/.env.Example diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/.eslintrc.json b/defense_quickstart_news_scraper_summarizer/frontend/.eslintrc.json similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/.eslintrc.json rename to defense_quickstart_news_scraper_summarizer/frontend/.eslintrc.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/.gitignore b/defense_quickstart_news_scraper_summarizer/frontend/.gitignore similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/.gitignore rename to defense_quickstart_news_scraper_summarizer/frontend/.gitignore diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/Dockerfile b/defense_quickstart_news_scraper_summarizer/frontend/Dockerfile similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/Dockerfile rename to defense_quickstart_news_scraper_summarizer/frontend/Dockerfile diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/next.config.mjs b/defense_quickstart_news_scraper_summarizer/frontend/next.config.mjs similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/next.config.mjs rename to defense_quickstart_news_scraper_summarizer/frontend/next.config.mjs diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/package.json b/defense_quickstart_news_scraper_summarizer/frontend/package.json similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/package.json rename to defense_quickstart_news_scraper_summarizer/frontend/package.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/pnpm-lock.yaml b/defense_quickstart_news_scraper_summarizer/frontend/pnpm-lock.yaml similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/pnpm-lock.yaml rename to defense_quickstart_news_scraper_summarizer/frontend/pnpm-lock.yaml diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/postcss.config.mjs b/defense_quickstart_news_scraper_summarizer/frontend/postcss.config.mjs similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/postcss.config.mjs rename to defense_quickstart_news_scraper_summarizer/frontend/postcss.config.mjs diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/actions/schedule.ts b/defense_quickstart_news_scraper_summarizer/frontend/src/app/actions/schedule.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/actions/schedule.ts rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/actions/schedule.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/components/Examples.tsx b/defense_quickstart_news_scraper_summarizer/frontend/src/app/components/Examples.tsx similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/components/Examples.tsx rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/components/Examples.tsx diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/components/examplesList.tsx b/defense_quickstart_news_scraper_summarizer/frontend/src/app/components/examplesList.tsx similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/components/examplesList.tsx rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/components/examplesList.tsx diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/favicon.ico b/defense_quickstart_news_scraper_summarizer/frontend/src/app/favicon.ico similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/favicon.ico rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/favicon.ico diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistMonoVF.woff b/defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistMonoVF.woff similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistMonoVF.woff rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistMonoVF.woff diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistVF.woff b/defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistVF.woff similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistVF.woff rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/fonts/GeistVF.woff diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/globals.css b/defense_quickstart_news_scraper_summarizer/frontend/src/app/globals.css similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/globals.css rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/globals.css diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/layout.tsx b/defense_quickstart_news_scraper_summarizer/frontend/src/app/layout.tsx similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/layout.tsx rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/layout.tsx diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/page.tsx b/defense_quickstart_news_scraper_summarizer/frontend/src/app/page.tsx similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/src/app/page.tsx rename to defense_quickstart_news_scraper_summarizer/frontend/src/app/page.tsx diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/tailwind.config.ts b/defense_quickstart_news_scraper_summarizer/frontend/tailwind.config.ts similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/tailwind.config.ts rename to defense_quickstart_news_scraper_summarizer/frontend/tailwind.config.ts diff --git a/examples/defense_quickstart_news_scraper_summarizer/frontend/tsconfig.json b/defense_quickstart_news_scraper_summarizer/frontend/tsconfig.json similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/frontend/tsconfig.json rename to defense_quickstart_news_scraper_summarizer/frontend/tsconfig.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/package.json b/defense_quickstart_news_scraper_summarizer/package.json similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/package.json rename to defense_quickstart_news_scraper_summarizer/package.json diff --git a/examples/defense_quickstart_news_scraper_summarizer/pnpm-lock.yaml b/defense_quickstart_news_scraper_summarizer/pnpm-lock.yaml similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/pnpm-lock.yaml rename to defense_quickstart_news_scraper_summarizer/pnpm-lock.yaml diff --git a/examples/defense_quickstart_news_scraper_summarizer/restack-cloud-overview.png b/defense_quickstart_news_scraper_summarizer/restack-cloud-overview.png similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/restack-cloud-overview.png rename to defense_quickstart_news_scraper_summarizer/restack-cloud-overview.png diff --git a/examples/defense_quickstart_news_scraper_summarizer/restack-engine-ui.png b/defense_quickstart_news_scraper_summarizer/restack-engine-ui.png similarity index 100% rename from examples/defense_quickstart_news_scraper_summarizer/restack-engine-ui.png rename to defense_quickstart_news_scraper_summarizer/restack-engine-ui.png diff --git a/examples/defense_quickstart_news_scraper_summarizer/restack_up.js b/defense_quickstart_news_scraper_summarizer/restack_up.js similarity index 87% rename from examples/defense_quickstart_news_scraper_summarizer/restack_up.js rename to defense_quickstart_news_scraper_summarizer/restack_up.js index 1533404..eb0834d 100644 --- a/examples/defense_quickstart_news_scraper_summarizer/restack_up.js +++ b/defense_quickstart_news_scraper_summarizer/restack_up.js @@ -53,9 +53,9 @@ const main = async () => { const frontend = { name: 'frontend', dockerFilePath: - 'examples/defense_quickstart_news_scraper_summarizer/frontend/Dockerfile', + 'defense_quickstart_news_scraper_summarizer/frontend/Dockerfile', dockerBuildContext: - 'examples/defense_quickstart_news_scraper_summarizer/frontend', + 'defense_quickstart_news_scraper_summarizer/frontend', environmentVariables: [...restackEngineEnvs], portMapping: [ { @@ -69,9 +69,9 @@ const main = async () => { const backend = { name: 'backend', dockerFilePath: - 'examples/defense_quickstart_news_scraper_summarizer/backend/Dockerfile', + 'defense_quickstart_news_scraper_summarizer/backend/Dockerfile', dockerBuildContext: - 'examples/defense_quickstart_news_scraper_summarizer/backend', + 'defense_quickstart_news_scraper_summarizer/backend', environmentVariables: [ ...restackEngineEnvs, { diff --git a/examples/encryption/.env.example b/encryption/.env.example similarity index 100% rename from examples/encryption/.env.example rename to encryption/.env.example diff --git a/examples/encryption/package.json b/encryption/package.json similarity index 100% rename from examples/encryption/package.json rename to encryption/package.json diff --git a/examples/encryption/pnpm-lock.yaml b/encryption/pnpm-lock.yaml similarity index 100% rename from examples/encryption/pnpm-lock.yaml rename to encryption/pnpm-lock.yaml diff --git a/examples/openai/readme.md b/encryption/readme.md similarity index 93% rename from examples/openai/readme.md rename to encryption/readme.md index 94dadf3..6c026fd 100644 --- a/examples/openai/readme.md +++ b/encryption/readme.md @@ -13,7 +13,7 @@ brew install pnpm To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Start services diff --git a/examples/encryption/scheduleWorkflow.ts b/encryption/scheduleWorkflow.ts similarity index 100% rename from examples/encryption/scheduleWorkflow.ts rename to encryption/scheduleWorkflow.ts diff --git a/examples/encryption/src/client.ts b/encryption/src/client.ts similarity index 100% rename from examples/encryption/src/client.ts rename to encryption/src/client.ts diff --git a/examples/encryption/src/codec-server.ts b/encryption/src/codec-server.ts similarity index 100% rename from examples/encryption/src/codec-server.ts rename to encryption/src/codec-server.ts diff --git a/examples/encryption/src/crypto.ts b/encryption/src/crypto.ts similarity index 100% rename from examples/encryption/src/crypto.ts rename to encryption/src/crypto.ts diff --git a/examples/encryption/src/data-converter.ts b/encryption/src/data-converter.ts similarity index 100% rename from examples/encryption/src/data-converter.ts rename to encryption/src/data-converter.ts diff --git a/examples/encryption/src/encryption-codec.ts b/encryption/src/encryption-codec.ts similarity index 100% rename from examples/encryption/src/encryption-codec.ts rename to encryption/src/encryption-codec.ts diff --git a/examples/encryption/src/functions/goodbye.ts b/encryption/src/functions/goodbye.ts similarity index 100% rename from examples/encryption/src/functions/goodbye.ts rename to encryption/src/functions/goodbye.ts diff --git a/examples/encryption/src/functions/index.ts b/encryption/src/functions/index.ts similarity index 100% rename from examples/encryption/src/functions/index.ts rename to encryption/src/functions/index.ts diff --git a/examples/encryption/src/functions/openai/chat/completionsBase.ts b/encryption/src/functions/openai/chat/completionsBase.ts similarity index 100% rename from examples/encryption/src/functions/openai/chat/completionsBase.ts rename to encryption/src/functions/openai/chat/completionsBase.ts diff --git a/examples/encryption/src/functions/openai/chat/completionsStream.ts b/encryption/src/functions/openai/chat/completionsStream.ts similarity index 100% rename from examples/encryption/src/functions/openai/chat/completionsStream.ts rename to encryption/src/functions/openai/chat/completionsStream.ts diff --git a/examples/encryption/src/functions/openai/chat/index.ts b/encryption/src/functions/openai/chat/index.ts similarity index 100% rename from examples/encryption/src/functions/openai/chat/index.ts rename to encryption/src/functions/openai/chat/index.ts diff --git a/examples/encryption/src/functions/openai/index.ts b/encryption/src/functions/openai/index.ts similarity index 100% rename from examples/encryption/src/functions/openai/index.ts rename to encryption/src/functions/openai/index.ts diff --git a/examples/encryption/src/functions/openai/thread/createAssistant.ts b/encryption/src/functions/openai/thread/createAssistant.ts similarity index 100% rename from examples/encryption/src/functions/openai/thread/createAssistant.ts rename to encryption/src/functions/openai/thread/createAssistant.ts diff --git a/examples/encryption/src/functions/openai/thread/createMessageOnThread.ts b/encryption/src/functions/openai/thread/createMessageOnThread.ts similarity index 100% rename from examples/encryption/src/functions/openai/thread/createMessageOnThread.ts rename to encryption/src/functions/openai/thread/createMessageOnThread.ts diff --git a/examples/encryption/src/functions/openai/thread/createThread.ts b/encryption/src/functions/openai/thread/createThread.ts similarity index 100% rename from examples/encryption/src/functions/openai/thread/createThread.ts rename to encryption/src/functions/openai/thread/createThread.ts diff --git a/examples/encryption/src/functions/openai/thread/index.ts b/encryption/src/functions/openai/thread/index.ts similarity index 100% rename from examples/encryption/src/functions/openai/thread/index.ts rename to encryption/src/functions/openai/thread/index.ts diff --git a/examples/encryption/src/functions/openai/thread/runThread.ts b/encryption/src/functions/openai/thread/runThread.ts similarity index 100% rename from examples/encryption/src/functions/openai/thread/runThread.ts rename to encryption/src/functions/openai/thread/runThread.ts diff --git a/examples/encryption/src/functions/openai/types/events.ts b/encryption/src/functions/openai/types/events.ts similarity index 100% rename from examples/encryption/src/functions/openai/types/events.ts rename to encryption/src/functions/openai/types/events.ts diff --git a/examples/encryption/src/functions/openai/types/index.ts b/encryption/src/functions/openai/types/index.ts similarity index 100% rename from examples/encryption/src/functions/openai/types/index.ts rename to encryption/src/functions/openai/types/index.ts diff --git a/examples/encryption/src/functions/openai/utils/aggregateStream.ts b/encryption/src/functions/openai/utils/aggregateStream.ts similarity index 100% rename from examples/encryption/src/functions/openai/utils/aggregateStream.ts rename to encryption/src/functions/openai/utils/aggregateStream.ts diff --git a/examples/encryption/src/functions/openai/utils/client.ts b/encryption/src/functions/openai/utils/client.ts similarity index 100% rename from examples/encryption/src/functions/openai/utils/client.ts rename to encryption/src/functions/openai/utils/client.ts diff --git a/examples/encryption/src/functions/openai/utils/cost.ts b/encryption/src/functions/openai/utils/cost.ts similarity index 100% rename from examples/encryption/src/functions/openai/utils/cost.ts rename to encryption/src/functions/openai/utils/cost.ts diff --git a/examples/encryption/src/functions/openai/utils/index.ts b/encryption/src/functions/openai/utils/index.ts similarity index 100% rename from examples/encryption/src/functions/openai/utils/index.ts rename to encryption/src/functions/openai/utils/index.ts diff --git a/examples/encryption/src/functions/openai/utils/mergeToolCalls.ts b/encryption/src/functions/openai/utils/mergeToolCalls.ts similarity index 100% rename from examples/encryption/src/functions/openai/utils/mergeToolCalls.ts rename to encryption/src/functions/openai/utils/mergeToolCalls.ts diff --git a/examples/encryption/src/services.ts b/encryption/src/services.ts similarity index 100% rename from examples/encryption/src/services.ts rename to encryption/src/services.ts diff --git a/examples/encryption/src/workflows/hello.ts b/encryption/src/workflows/hello.ts similarity index 100% rename from examples/encryption/src/workflows/hello.ts rename to encryption/src/workflows/hello.ts diff --git a/examples/encryption/src/workflows/index.ts b/encryption/src/workflows/index.ts similarity index 100% rename from examples/encryption/src/workflows/index.ts rename to encryption/src/workflows/index.ts diff --git a/examples/encryption/tsconfig.json b/encryption/tsconfig.json similarity index 100% rename from examples/encryption/tsconfig.json rename to encryption/tsconfig.json diff --git a/examples/voice/src/.DS_Store b/examples/voice/src/.DS_Store deleted file mode 100644 index cfe41ca..0000000 Binary files a/examples/voice/src/.DS_Store and /dev/null differ diff --git a/examples/voice/tsconfig.tsbuildinfo b/examples/voice/tsconfig.tsbuildinfo deleted file mode 100644 index a355597..0000000 --- a/examples/voice/tsconfig.tsbuildinfo +++ /dev/null @@ -1 +0,0 @@ -{"root":["./src/client.ts","./src/server.ts","./src/services.ts","./src/functions/index.ts","./src/functions/erp/checkinventory.ts","./src/functions/erp/checkprice.ts","./src/functions/erp/index.ts","./src/functions/erp/placeorder.ts","./src/functions/erp/tools.ts","./src/functions/openai/prompt.ts","./src/functions/utils/index.ts","./src/functions/utils/sendeventtoworkflow.ts","./src/workflows/index.ts","./src/workflows/twiliocall.ts","./src/workflows/conversation/conversation.ts","./src/workflows/conversation/events.ts","./src/workflows/room/events.ts","./src/workflows/room/room.ts"],"version":"5.6.2"} \ No newline at end of file diff --git a/examples/express-together-llamaindex/.env.Example b/express-together-llamaindex/.env.Example similarity index 100% rename from examples/express-together-llamaindex/.env.Example rename to express-together-llamaindex/.env.Example diff --git a/examples/express-together-llamaindex/.prettierrc b/express-together-llamaindex/.prettierrc similarity index 100% rename from examples/express-together-llamaindex/.prettierrc rename to express-together-llamaindex/.prettierrc diff --git a/examples/express-together-llamaindex/Dockerfile b/express-together-llamaindex/Dockerfile similarity index 100% rename from examples/express-together-llamaindex/Dockerfile rename to express-together-llamaindex/Dockerfile diff --git a/examples/express-together-llamaindex/package.json b/express-together-llamaindex/package.json similarity index 100% rename from examples/express-together-llamaindex/package.json rename to express-together-llamaindex/package.json diff --git a/examples/express-together-llamaindex/pnpm-lock.yaml b/express-together-llamaindex/pnpm-lock.yaml similarity index 100% rename from examples/express-together-llamaindex/pnpm-lock.yaml rename to express-together-llamaindex/pnpm-lock.yaml diff --git a/examples/express-together-llamaindex/readme.md b/express-together-llamaindex/readme.md similarity index 95% rename from examples/express-together-llamaindex/readme.md rename to express-together-llamaindex/readme.md index d528571..06b7687 100644 --- a/examples/express-together-llamaindex/readme.md +++ b/express-together-llamaindex/readme.md @@ -13,7 +13,7 @@ This project demonstrates how to build a simple Express application that integra # Run Restack in Docker -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main # Open the Desktop UI diff --git a/examples/express-together-llamaindex/restack_up.mjs b/express-together-llamaindex/restack_up.mjs similarity index 89% rename from examples/express-together-llamaindex/restack_up.mjs rename to express-together-llamaindex/restack_up.mjs index 18d3693..7e0e698 100644 --- a/examples/express-together-llamaindex/restack_up.mjs +++ b/express-together-llamaindex/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const expressServer = { name: "express", - dockerFilePath: "examples/express/Dockerfile", - dockerBuildContext: "examples/express", + dockerFilePath: "express/Dockerfile", + dockerBuildContext: "express", environmentVariables: [...restackEngineEnvs], }; diff --git a/examples/express-together-llamaindex/src/client.ts b/express-together-llamaindex/src/client.ts similarity index 100% rename from examples/express-together-llamaindex/src/client.ts rename to express-together-llamaindex/src/client.ts diff --git a/examples/express-together-llamaindex/src/functions/index.ts b/express-together-llamaindex/src/functions/index.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/index.ts rename to express-together-llamaindex/src/functions/index.ts diff --git a/examples/express-together-llamaindex/src/functions/llamaindex/index.ts b/express-together-llamaindex/src/functions/llamaindex/index.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/llamaindex/index.ts rename to express-together-llamaindex/src/functions/llamaindex/index.ts diff --git a/examples/express-together-llamaindex/src/functions/llamaindex/queryTogether.ts b/express-together-llamaindex/src/functions/llamaindex/queryTogether.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/llamaindex/queryTogether.ts rename to express-together-llamaindex/src/functions/llamaindex/queryTogether.ts diff --git a/examples/express-together-llamaindex/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts b/express-together-llamaindex/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts rename to express-together-llamaindex/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts diff --git a/examples/express-together-llamaindex/src/functions/together-ai/chatCompletionBasic.ts b/express-together-llamaindex/src/functions/together-ai/chatCompletionBasic.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/together-ai/chatCompletionBasic.ts rename to express-together-llamaindex/src/functions/together-ai/chatCompletionBasic.ts diff --git a/examples/express-together-llamaindex/src/functions/together-ai/index.ts b/express-together-llamaindex/src/functions/together-ai/index.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/together-ai/index.ts rename to express-together-llamaindex/src/functions/together-ai/index.ts diff --git a/examples/express-together-llamaindex/src/functions/together-ai/utils/client.ts b/express-together-llamaindex/src/functions/together-ai/utils/client.ts similarity index 100% rename from examples/express-together-llamaindex/src/functions/together-ai/utils/client.ts rename to express-together-llamaindex/src/functions/together-ai/utils/client.ts diff --git a/examples/express-together-llamaindex/src/server.ts b/express-together-llamaindex/src/server.ts similarity index 100% rename from examples/express-together-llamaindex/src/server.ts rename to express-together-llamaindex/src/server.ts diff --git a/examples/express-together-llamaindex/src/services.ts b/express-together-llamaindex/src/services.ts similarity index 100% rename from examples/express-together-llamaindex/src/services.ts rename to express-together-llamaindex/src/services.ts diff --git a/examples/express-together-llamaindex/src/workflows/chatCompletionBasic.ts b/express-together-llamaindex/src/workflows/chatCompletionBasic.ts similarity index 100% rename from examples/express-together-llamaindex/src/workflows/chatCompletionBasic.ts rename to express-together-llamaindex/src/workflows/chatCompletionBasic.ts diff --git a/examples/express-together-llamaindex/src/workflows/index.ts b/express-together-llamaindex/src/workflows/index.ts similarity index 100% rename from examples/express-together-llamaindex/src/workflows/index.ts rename to express-together-llamaindex/src/workflows/index.ts diff --git a/examples/express-together-llamaindex/src/workflows/llamaindexTogetherSimple.ts b/express-together-llamaindex/src/workflows/llamaindexTogetherSimple.ts similarity index 100% rename from examples/express-together-llamaindex/src/workflows/llamaindexTogetherSimple.ts rename to express-together-llamaindex/src/workflows/llamaindexTogetherSimple.ts diff --git a/examples/express-together-llamaindex/tsconfig.json b/express-together-llamaindex/tsconfig.json similarity index 100% rename from examples/express-together-llamaindex/tsconfig.json rename to express-together-llamaindex/tsconfig.json diff --git a/examples/express/.env.Example b/express/.env.Example similarity index 100% rename from examples/express/.env.Example rename to express/.env.Example diff --git a/examples/express/Dockerfile b/express/Dockerfile similarity index 100% rename from examples/express/Dockerfile rename to express/Dockerfile diff --git a/examples/express/package.json b/express/package.json similarity index 100% rename from examples/express/package.json rename to express/package.json diff --git a/examples/express/pnpm-lock.yaml b/express/pnpm-lock.yaml similarity index 100% rename from examples/express/pnpm-lock.yaml rename to express/pnpm-lock.yaml diff --git a/examples/express/readme.md b/express/readme.md similarity index 91% rename from examples/express/readme.md rename to express/readme.md index 9aff2d3..1c44070 100644 --- a/examples/express/readme.md +++ b/express/readme.md @@ -1,5 +1,5 @@ # Run Restack in Docker -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main # Open the Desktop UI http://localhost:5233 diff --git a/examples/swagger/restack_up.mjs b/express/restack_up.mjs similarity index 89% rename from examples/swagger/restack_up.mjs rename to express/restack_up.mjs index 18d3693..7e0e698 100644 --- a/examples/swagger/restack_up.mjs +++ b/express/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const expressServer = { name: "express", - dockerFilePath: "examples/express/Dockerfile", - dockerBuildContext: "examples/express", + dockerFilePath: "express/Dockerfile", + dockerBuildContext: "express", environmentVariables: [...restackEngineEnvs], }; diff --git a/examples/express/src/client.ts b/express/src/client.ts similarity index 100% rename from examples/express/src/client.ts rename to express/src/client.ts diff --git a/examples/express/src/server.ts b/express/src/server.ts similarity index 100% rename from examples/express/src/server.ts rename to express/src/server.ts diff --git a/examples/express/tsconfig.json b/express/tsconfig.json similarity index 100% rename from examples/express/tsconfig.json rename to express/tsconfig.json diff --git a/examples/get-started/.env.example b/get-started/.env.example similarity index 100% rename from examples/get-started/.env.example rename to get-started/.env.example diff --git a/examples/get-started/.prettierrc b/get-started/.prettierrc similarity index 100% rename from examples/get-started/.prettierrc rename to get-started/.prettierrc diff --git a/examples/get-started/Dockerfile b/get-started/Dockerfile similarity index 100% rename from examples/get-started/Dockerfile rename to get-started/Dockerfile diff --git a/examples/get-started/package.json b/get-started/package.json similarity index 83% rename from examples/get-started/package.json rename to get-started/package.json index 56ea668..fb80eb6 100644 --- a/examples/get-started/package.json +++ b/get-started/package.json @@ -7,7 +7,7 @@ "build": "tsc --build", "schedule-workflow": "tsx scheduleWorkflow.ts", "restack-up": "tsx restackUp.ts", - "restack-studio": "docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main" + "restack-studio": "docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main" }, "dependencies": { "@restackio/ai": "0.0.85", diff --git a/examples/get-started/pnpm-lock.yaml b/get-started/pnpm-lock.yaml similarity index 100% rename from examples/get-started/pnpm-lock.yaml rename to get-started/pnpm-lock.yaml diff --git a/examples/get-started/readme.md b/get-started/readme.md similarity index 93% rename from examples/get-started/readme.md rename to get-started/readme.md index 8644f77..3b47733 100644 --- a/examples/get-started/readme.md +++ b/get-started/readme.md @@ -22,7 +22,7 @@ This will start Node.js app with two Restack Services. Your code will be running To start the Restack Studio, you can use Docker. ```bash -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` ## Schedule a demo Workflow diff --git a/examples/get-started/restackUp.ts b/get-started/restackUp.ts similarity index 89% rename from examples/get-started/restackUp.ts rename to get-started/restackUp.ts index 3cb49f9..44d235e 100644 --- a/examples/get-started/restackUp.ts +++ b/get-started/restackUp.ts @@ -22,8 +22,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/get-started/Dockerfile", - dockerBuildContext: "examples/get-started", + dockerFilePath: "get-started/Dockerfile", + dockerBuildContext: "get-started", environmentVariables: [ { name: "OPENAI_API_KEY", diff --git a/examples/get-started/scheduleWorkflow.ts b/get-started/scheduleWorkflow.ts similarity index 100% rename from examples/get-started/scheduleWorkflow.ts rename to get-started/scheduleWorkflow.ts diff --git a/examples/get-started/src/client.ts b/get-started/src/client.ts similarity index 100% rename from examples/get-started/src/client.ts rename to get-started/src/client.ts diff --git a/examples/get-started/src/functions/hello.ts b/get-started/src/functions/hello.ts similarity index 100% rename from examples/get-started/src/functions/hello.ts rename to get-started/src/functions/hello.ts diff --git a/examples/get-started/src/functions/index.ts b/get-started/src/functions/index.ts similarity index 100% rename from examples/get-started/src/functions/index.ts rename to get-started/src/functions/index.ts diff --git a/examples/get-started/src/services.ts b/get-started/src/services.ts similarity index 100% rename from examples/get-started/src/services.ts rename to get-started/src/services.ts diff --git a/examples/get-started/src/workflows/hello.ts b/get-started/src/workflows/hello.ts similarity index 100% rename from examples/get-started/src/workflows/hello.ts rename to get-started/src/workflows/hello.ts diff --git a/examples/get-started/src/workflows/index.ts b/get-started/src/workflows/index.ts similarity index 100% rename from examples/get-started/src/workflows/index.ts rename to get-started/src/workflows/index.ts diff --git a/examples/get-started/tsconfig.json b/get-started/tsconfig.json similarity index 100% rename from examples/get-started/tsconfig.json rename to get-started/tsconfig.json diff --git a/examples/google-gemini/.env.example b/google-gemini/.env.example similarity index 100% rename from examples/google-gemini/.env.example rename to google-gemini/.env.example diff --git a/examples/google-gemini/Dockerfile b/google-gemini/Dockerfile similarity index 100% rename from examples/google-gemini/Dockerfile rename to google-gemini/Dockerfile diff --git a/examples/google-gemini/package.json b/google-gemini/package.json similarity index 100% rename from examples/google-gemini/package.json rename to google-gemini/package.json diff --git a/examples/google-gemini/pnpm-lock.yaml b/google-gemini/pnpm-lock.yaml similarity index 100% rename from examples/google-gemini/pnpm-lock.yaml rename to google-gemini/pnpm-lock.yaml diff --git a/examples/google-gemini/readme.md b/google-gemini/readme.md similarity index 93% rename from examples/google-gemini/readme.md rename to google-gemini/readme.md index cd9c62f..8d54480 100644 --- a/examples/google-gemini/readme.md +++ b/google-gemini/readme.md @@ -22,7 +22,7 @@ brew install pnpm To install the Restack Web UI, you can use Docker. ```bash -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Start services diff --git a/examples/google-gemini/restack_up.mjs b/google-gemini/restack_up.mjs similarity index 90% rename from examples/google-gemini/restack_up.mjs rename to google-gemini/restack_up.mjs index 8e198ec..5ecfa7a 100644 --- a/examples/google-gemini/restack_up.mjs +++ b/google-gemini/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/gemini/Dockerfile", - dockerBuildContext: "examples/gemini", + dockerFilePath: "gemini/Dockerfile", + dockerBuildContext: "gemini", environmentVariables: [ { name: "GEMINI_API_KEY", diff --git a/examples/google-gemini/scheduleWorkflow.ts b/google-gemini/scheduleWorkflow.ts similarity index 100% rename from examples/google-gemini/scheduleWorkflow.ts rename to google-gemini/scheduleWorkflow.ts diff --git a/examples/google-gemini/src/client.ts b/google-gemini/src/client.ts similarity index 100% rename from examples/google-gemini/src/client.ts rename to google-gemini/src/client.ts diff --git a/examples/google-gemini/src/functions/goodbye.ts b/google-gemini/src/functions/goodbye.ts similarity index 100% rename from examples/google-gemini/src/functions/goodbye.ts rename to google-gemini/src/functions/goodbye.ts diff --git a/examples/google-gemini/src/functions/google-gemini/index.ts b/google-gemini/src/functions/google-gemini/index.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/index.ts rename to google-gemini/src/functions/google-gemini/index.ts diff --git a/examples/google-gemini/src/functions/google-gemini/text/generateContent.ts b/google-gemini/src/functions/google-gemini/text/generateContent.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/text/generateContent.ts rename to google-gemini/src/functions/google-gemini/text/generateContent.ts diff --git a/examples/google-gemini/src/functions/google-gemini/text/generateContentStream.ts b/google-gemini/src/functions/google-gemini/text/generateContentStream.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/text/generateContentStream.ts rename to google-gemini/src/functions/google-gemini/text/generateContentStream.ts diff --git a/examples/google-gemini/src/functions/google-gemini/text/index.ts b/google-gemini/src/functions/google-gemini/text/index.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/text/index.ts rename to google-gemini/src/functions/google-gemini/text/index.ts diff --git a/examples/google-gemini/src/functions/google-gemini/types/index.ts b/google-gemini/src/functions/google-gemini/types/index.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/types/index.ts rename to google-gemini/src/functions/google-gemini/types/index.ts diff --git a/examples/google-gemini/src/functions/google-gemini/types/inputs.ts b/google-gemini/src/functions/google-gemini/types/inputs.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/types/inputs.ts rename to google-gemini/src/functions/google-gemini/types/inputs.ts diff --git a/examples/google-gemini/src/functions/google-gemini/utils/client.ts b/google-gemini/src/functions/google-gemini/utils/client.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/utils/client.ts rename to google-gemini/src/functions/google-gemini/utils/client.ts diff --git a/examples/google-gemini/src/functions/google-gemini/utils/index.ts b/google-gemini/src/functions/google-gemini/utils/index.ts similarity index 100% rename from examples/google-gemini/src/functions/google-gemini/utils/index.ts rename to google-gemini/src/functions/google-gemini/utils/index.ts diff --git a/examples/google-gemini/src/functions/index.ts b/google-gemini/src/functions/index.ts similarity index 100% rename from examples/google-gemini/src/functions/index.ts rename to google-gemini/src/functions/index.ts diff --git a/examples/google-gemini/src/services.ts b/google-gemini/src/services.ts similarity index 100% rename from examples/google-gemini/src/services.ts rename to google-gemini/src/services.ts diff --git a/examples/google-gemini/src/workflows/hello.ts b/google-gemini/src/workflows/hello.ts similarity index 100% rename from examples/google-gemini/src/workflows/hello.ts rename to google-gemini/src/workflows/hello.ts diff --git a/examples/google-gemini/src/workflows/index.ts b/google-gemini/src/workflows/index.ts similarity index 100% rename from examples/google-gemini/src/workflows/index.ts rename to google-gemini/src/workflows/index.ts diff --git a/examples/google-gemini/tsconfig.json b/google-gemini/tsconfig.json similarity index 100% rename from examples/google-gemini/tsconfig.json rename to google-gemini/tsconfig.json diff --git a/examples/gotohuman/.env.example b/gotohuman/.env.example similarity index 100% rename from examples/gotohuman/.env.example rename to gotohuman/.env.example diff --git a/examples/gotohuman/handleHumanResponse.ts b/gotohuman/handleHumanResponse.ts similarity index 100% rename from examples/gotohuman/handleHumanResponse.ts rename to gotohuman/handleHumanResponse.ts diff --git a/examples/gotohuman/package-lock.json b/gotohuman/package-lock.json similarity index 100% rename from examples/gotohuman/package-lock.json rename to gotohuman/package-lock.json diff --git a/examples/gotohuman/package.json b/gotohuman/package.json similarity index 100% rename from examples/gotohuman/package.json rename to gotohuman/package.json diff --git a/examples/gotohuman/pnpm-lock.yaml b/gotohuman/pnpm-lock.yaml similarity index 100% rename from examples/gotohuman/pnpm-lock.yaml rename to gotohuman/pnpm-lock.yaml diff --git a/examples/gotohuman/readme.md b/gotohuman/readme.md similarity index 96% rename from examples/gotohuman/readme.md rename to gotohuman/readme.md index c51e158..b3f50e6 100644 --- a/examples/gotohuman/readme.md +++ b/gotohuman/readme.md @@ -84,6 +84,6 @@ We are using a hard-coded topic here, but you could also trigger a workflow run To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` diff --git a/examples/gotohuman/scheduleWorkflow.ts b/gotohuman/scheduleWorkflow.ts similarity index 100% rename from examples/gotohuman/scheduleWorkflow.ts rename to gotohuman/scheduleWorkflow.ts diff --git a/examples/gotohuman/src/client.ts b/gotohuman/src/client.ts similarity index 100% rename from examples/gotohuman/src/client.ts rename to gotohuman/src/client.ts diff --git a/examples/gotohuman/src/events/humanResponseEvent.ts b/gotohuman/src/events/humanResponseEvent.ts similarity index 100% rename from examples/gotohuman/src/events/humanResponseEvent.ts rename to gotohuman/src/events/humanResponseEvent.ts diff --git a/examples/gotohuman/src/events/index.ts b/gotohuman/src/events/index.ts similarity index 100% rename from examples/gotohuman/src/events/index.ts rename to gotohuman/src/events/index.ts diff --git a/examples/gotohuman/src/functions/index.ts b/gotohuman/src/functions/index.ts similarity index 100% rename from examples/gotohuman/src/functions/index.ts rename to gotohuman/src/functions/index.ts diff --git a/examples/gotohuman/src/functions/openai/chat/completionsBase.ts b/gotohuman/src/functions/openai/chat/completionsBase.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/chat/completionsBase.ts rename to gotohuman/src/functions/openai/chat/completionsBase.ts diff --git a/examples/gotohuman/src/functions/openai/chat/completionsStream.ts b/gotohuman/src/functions/openai/chat/completionsStream.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/chat/completionsStream.ts rename to gotohuman/src/functions/openai/chat/completionsStream.ts diff --git a/examples/gotohuman/src/functions/openai/chat/index.ts b/gotohuman/src/functions/openai/chat/index.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/chat/index.ts rename to gotohuman/src/functions/openai/chat/index.ts diff --git a/examples/gotohuman/src/functions/openai/index.ts b/gotohuman/src/functions/openai/index.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/index.ts rename to gotohuman/src/functions/openai/index.ts diff --git a/examples/gotohuman/src/functions/openai/thread/createAssistant.ts b/gotohuman/src/functions/openai/thread/createAssistant.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/thread/createAssistant.ts rename to gotohuman/src/functions/openai/thread/createAssistant.ts diff --git a/examples/gotohuman/src/functions/openai/thread/createMessageOnThread.ts b/gotohuman/src/functions/openai/thread/createMessageOnThread.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/thread/createMessageOnThread.ts rename to gotohuman/src/functions/openai/thread/createMessageOnThread.ts diff --git a/examples/gotohuman/src/functions/openai/thread/createThread.ts b/gotohuman/src/functions/openai/thread/createThread.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/thread/createThread.ts rename to gotohuman/src/functions/openai/thread/createThread.ts diff --git a/examples/gotohuman/src/functions/openai/thread/index.ts b/gotohuman/src/functions/openai/thread/index.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/thread/index.ts rename to gotohuman/src/functions/openai/thread/index.ts diff --git a/examples/gotohuman/src/functions/openai/thread/runThread.ts b/gotohuman/src/functions/openai/thread/runThread.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/thread/runThread.ts rename to gotohuman/src/functions/openai/thread/runThread.ts diff --git a/examples/gotohuman/src/functions/openai/types/events.ts b/gotohuman/src/functions/openai/types/events.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/types/events.ts rename to gotohuman/src/functions/openai/types/events.ts diff --git a/examples/gotohuman/src/functions/openai/types/index.ts b/gotohuman/src/functions/openai/types/index.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/types/index.ts rename to gotohuman/src/functions/openai/types/index.ts diff --git a/examples/gotohuman/src/functions/openai/utils/aggregateStream.ts b/gotohuman/src/functions/openai/utils/aggregateStream.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/utils/aggregateStream.ts rename to gotohuman/src/functions/openai/utils/aggregateStream.ts diff --git a/examples/gotohuman/src/functions/openai/utils/client.ts b/gotohuman/src/functions/openai/utils/client.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/utils/client.ts rename to gotohuman/src/functions/openai/utils/client.ts diff --git a/examples/gotohuman/src/functions/openai/utils/cost.ts b/gotohuman/src/functions/openai/utils/cost.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/utils/cost.ts rename to gotohuman/src/functions/openai/utils/cost.ts diff --git a/examples/gotohuman/src/functions/openai/utils/index.ts b/gotohuman/src/functions/openai/utils/index.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/utils/index.ts rename to gotohuman/src/functions/openai/utils/index.ts diff --git a/examples/gotohuman/src/functions/openai/utils/mergeToolCalls.ts b/gotohuman/src/functions/openai/utils/mergeToolCalls.ts similarity index 100% rename from examples/gotohuman/src/functions/openai/utils/mergeToolCalls.ts rename to gotohuman/src/functions/openai/utils/mergeToolCalls.ts diff --git a/examples/gotohuman/src/functions/publishPost.ts b/gotohuman/src/functions/publishPost.ts similarity index 100% rename from examples/gotohuman/src/functions/publishPost.ts rename to gotohuman/src/functions/publishPost.ts diff --git a/examples/gotohuman/src/functions/requestReview.ts b/gotohuman/src/functions/requestReview.ts similarity index 100% rename from examples/gotohuman/src/functions/requestReview.ts rename to gotohuman/src/functions/requestReview.ts diff --git a/examples/gotohuman/src/functions/utils/client.ts b/gotohuman/src/functions/utils/client.ts similarity index 100% rename from examples/gotohuman/src/functions/utils/client.ts rename to gotohuman/src/functions/utils/client.ts diff --git a/examples/gotohuman/src/services.ts b/gotohuman/src/services.ts similarity index 100% rename from examples/gotohuman/src/services.ts rename to gotohuman/src/services.ts diff --git a/examples/gotohuman/src/workflows/index.ts b/gotohuman/src/workflows/index.ts similarity index 100% rename from examples/gotohuman/src/workflows/index.ts rename to gotohuman/src/workflows/index.ts diff --git a/examples/gotohuman/src/workflows/writePost.ts b/gotohuman/src/workflows/writePost.ts similarity index 100% rename from examples/gotohuman/src/workflows/writePost.ts rename to gotohuman/src/workflows/writePost.ts diff --git a/examples/gotohuman/tsconfig.json b/gotohuman/tsconfig.json similarity index 100% rename from examples/gotohuman/tsconfig.json rename to gotohuman/tsconfig.json diff --git a/examples/human-loop/package.json b/human-loop/package.json similarity index 100% rename from examples/human-loop/package.json rename to human-loop/package.json diff --git a/examples/human-loop/pnpm-lock.yaml b/human-loop/pnpm-lock.yaml similarity index 100% rename from examples/human-loop/pnpm-lock.yaml rename to human-loop/pnpm-lock.yaml diff --git a/examples/human-loop/readme.md b/human-loop/readme.md similarity index 93% rename from examples/human-loop/readme.md rename to human-loop/readme.md index af54527..d46aa0d 100644 --- a/examples/human-loop/readme.md +++ b/human-loop/readme.md @@ -24,7 +24,7 @@ brew install pnpm To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Start services diff --git a/examples/human-loop/scheduleWorkflow.ts b/human-loop/scheduleWorkflow.ts similarity index 100% rename from examples/human-loop/scheduleWorkflow.ts rename to human-loop/scheduleWorkflow.ts diff --git a/examples/human-loop/src/client.ts b/human-loop/src/client.ts similarity index 100% rename from examples/human-loop/src/client.ts rename to human-loop/src/client.ts diff --git a/examples/human-loop/src/events/endEvent.ts b/human-loop/src/events/endEvent.ts similarity index 100% rename from examples/human-loop/src/events/endEvent.ts rename to human-loop/src/events/endEvent.ts diff --git a/examples/human-loop/src/events/feedbackEvent.ts b/human-loop/src/events/feedbackEvent.ts similarity index 100% rename from examples/human-loop/src/events/feedbackEvent.ts rename to human-loop/src/events/feedbackEvent.ts diff --git a/examples/human-loop/src/events/index.ts b/human-loop/src/events/index.ts similarity index 100% rename from examples/human-loop/src/events/index.ts rename to human-loop/src/events/index.ts diff --git a/examples/human-loop/src/functions/feedback.ts b/human-loop/src/functions/feedback.ts similarity index 100% rename from examples/human-loop/src/functions/feedback.ts rename to human-loop/src/functions/feedback.ts diff --git a/examples/human-loop/src/functions/goodbye.ts b/human-loop/src/functions/goodbye.ts similarity index 100% rename from examples/human-loop/src/functions/goodbye.ts rename to human-loop/src/functions/goodbye.ts diff --git a/examples/human-loop/src/functions/index.ts b/human-loop/src/functions/index.ts similarity index 100% rename from examples/human-loop/src/functions/index.ts rename to human-loop/src/functions/index.ts diff --git a/examples/human-loop/src/services.ts b/human-loop/src/services.ts similarity index 100% rename from examples/human-loop/src/services.ts rename to human-loop/src/services.ts diff --git a/examples/human-loop/src/workflows/humanLoop.ts b/human-loop/src/workflows/humanLoop.ts similarity index 100% rename from examples/human-loop/src/workflows/humanLoop.ts rename to human-loop/src/workflows/humanLoop.ts diff --git a/examples/human-loop/src/workflows/index.ts b/human-loop/src/workflows/index.ts similarity index 100% rename from examples/human-loop/src/workflows/index.ts rename to human-loop/src/workflows/index.ts diff --git a/examples/human-loop/tsconfig.json b/human-loop/tsconfig.json similarity index 100% rename from examples/human-loop/tsconfig.json rename to human-loop/tsconfig.json diff --git a/examples/nextjs-together-llamaindex/README.md b/nextjs-together-llamaindex/README.md similarity index 96% rename from examples/nextjs-together-llamaindex/README.md rename to nextjs-together-llamaindex/README.md index bf10556..1c6cb96 100644 --- a/examples/nextjs-together-llamaindex/README.md +++ b/nextjs-together-llamaindex/README.md @@ -21,7 +21,7 @@ This project demonstrates how to build a Next.js application that integrates Tog First, install the Restack Web UI using Docker: ```bash -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` ### 2. Set Up Backend diff --git a/examples/nextjs-together-llamaindex/backend/.env.Example b/nextjs-together-llamaindex/backend/.env.Example similarity index 100% rename from examples/nextjs-together-llamaindex/backend/.env.Example rename to nextjs-together-llamaindex/backend/.env.Example diff --git a/examples/nextjs-together-llamaindex/backend/.prettierrc b/nextjs-together-llamaindex/backend/.prettierrc similarity index 100% rename from examples/nextjs-together-llamaindex/backend/.prettierrc rename to nextjs-together-llamaindex/backend/.prettierrc diff --git a/examples/nextjs-together-llamaindex/backend/Dockerfile b/nextjs-together-llamaindex/backend/Dockerfile similarity index 100% rename from examples/nextjs-together-llamaindex/backend/Dockerfile rename to nextjs-together-llamaindex/backend/Dockerfile diff --git a/examples/nextjs-together-llamaindex/backend/package.json b/nextjs-together-llamaindex/backend/package.json similarity index 100% rename from examples/nextjs-together-llamaindex/backend/package.json rename to nextjs-together-llamaindex/backend/package.json diff --git a/examples/nextjs-together-llamaindex/backend/pnpm-lock.yaml b/nextjs-together-llamaindex/backend/pnpm-lock.yaml similarity index 100% rename from examples/nextjs-together-llamaindex/backend/pnpm-lock.yaml rename to nextjs-together-llamaindex/backend/pnpm-lock.yaml diff --git a/examples/express/restack_up.mjs b/nextjs-together-llamaindex/backend/restack_up.mjs similarity index 89% rename from examples/express/restack_up.mjs rename to nextjs-together-llamaindex/backend/restack_up.mjs index 18d3693..7e0e698 100644 --- a/examples/express/restack_up.mjs +++ b/nextjs-together-llamaindex/backend/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const expressServer = { name: "express", - dockerFilePath: "examples/express/Dockerfile", - dockerBuildContext: "examples/express", + dockerFilePath: "express/Dockerfile", + dockerBuildContext: "express", environmentVariables: [...restackEngineEnvs], }; diff --git a/examples/nextjs-together-llamaindex/backend/src/client.ts b/nextjs-together-llamaindex/backend/src/client.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/client.ts rename to nextjs-together-llamaindex/backend/src/client.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/index.ts b/nextjs-together-llamaindex/backend/src/functions/index.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/index.ts rename to nextjs-together-llamaindex/backend/src/functions/index.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/llamaindex/index.ts b/nextjs-together-llamaindex/backend/src/functions/llamaindex/index.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/llamaindex/index.ts rename to nextjs-together-llamaindex/backend/src/functions/llamaindex/index.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/llamaindex/queryTogether.ts b/nextjs-together-llamaindex/backend/src/functions/llamaindex/queryTogether.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/llamaindex/queryTogether.ts rename to nextjs-together-llamaindex/backend/src/functions/llamaindex/queryTogether.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts b/nextjs-together-llamaindex/backend/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts rename to nextjs-together-llamaindex/backend/src/functions/llamaindex/utils/llamaIndexTogetherClient.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/together-ai/chatCompletionBasic.ts b/nextjs-together-llamaindex/backend/src/functions/together-ai/chatCompletionBasic.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/together-ai/chatCompletionBasic.ts rename to nextjs-together-llamaindex/backend/src/functions/together-ai/chatCompletionBasic.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/together-ai/index.ts b/nextjs-together-llamaindex/backend/src/functions/together-ai/index.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/together-ai/index.ts rename to nextjs-together-llamaindex/backend/src/functions/together-ai/index.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/functions/together-ai/utils/client.ts b/nextjs-together-llamaindex/backend/src/functions/together-ai/utils/client.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/functions/together-ai/utils/client.ts rename to nextjs-together-llamaindex/backend/src/functions/together-ai/utils/client.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/services.ts b/nextjs-together-llamaindex/backend/src/services.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/services.ts rename to nextjs-together-llamaindex/backend/src/services.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/workflows/chatCompletionBasic.ts b/nextjs-together-llamaindex/backend/src/workflows/chatCompletionBasic.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/workflows/chatCompletionBasic.ts rename to nextjs-together-llamaindex/backend/src/workflows/chatCompletionBasic.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/workflows/index.ts b/nextjs-together-llamaindex/backend/src/workflows/index.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/workflows/index.ts rename to nextjs-together-llamaindex/backend/src/workflows/index.ts diff --git a/examples/nextjs-together-llamaindex/backend/src/workflows/llamaindexTogetherSimple.ts b/nextjs-together-llamaindex/backend/src/workflows/llamaindexTogetherSimple.ts similarity index 100% rename from examples/nextjs-together-llamaindex/backend/src/workflows/llamaindexTogetherSimple.ts rename to nextjs-together-llamaindex/backend/src/workflows/llamaindexTogetherSimple.ts diff --git a/examples/nextjs-together-llamaindex/backend/tsconfig.json b/nextjs-together-llamaindex/backend/tsconfig.json similarity index 100% rename from examples/nextjs-together-llamaindex/backend/tsconfig.json rename to nextjs-together-llamaindex/backend/tsconfig.json diff --git a/examples/nextjs-together-llamaindex/docker-compose.yml b/nextjs-together-llamaindex/docker-compose.yml similarity index 100% rename from examples/nextjs-together-llamaindex/docker-compose.yml rename to nextjs-together-llamaindex/docker-compose.yml diff --git a/examples/nextjs-together-llamaindex/frontend/.dockerignore b/nextjs-together-llamaindex/frontend/.dockerignore similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/.dockerignore rename to nextjs-together-llamaindex/frontend/.dockerignore diff --git a/examples/nextjs-together-llamaindex/frontend/.env.Example b/nextjs-together-llamaindex/frontend/.env.Example similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/.env.Example rename to nextjs-together-llamaindex/frontend/.env.Example diff --git a/examples/nextjs-together-llamaindex/frontend/.eslintrc.json b/nextjs-together-llamaindex/frontend/.eslintrc.json similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/.eslintrc.json rename to nextjs-together-llamaindex/frontend/.eslintrc.json diff --git a/examples/nextjs-together-llamaindex/frontend/.gitignore b/nextjs-together-llamaindex/frontend/.gitignore similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/.gitignore rename to nextjs-together-llamaindex/frontend/.gitignore diff --git a/examples/nextjs-together-llamaindex/frontend/Dockerfile b/nextjs-together-llamaindex/frontend/Dockerfile similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/Dockerfile rename to nextjs-together-llamaindex/frontend/Dockerfile diff --git a/examples/nextjs-together-llamaindex/frontend/next.config.mjs b/nextjs-together-llamaindex/frontend/next.config.mjs similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/next.config.mjs rename to nextjs-together-llamaindex/frontend/next.config.mjs diff --git a/examples/nextjs-together-llamaindex/frontend/package.json b/nextjs-together-llamaindex/frontend/package.json similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/package.json rename to nextjs-together-llamaindex/frontend/package.json diff --git a/examples/nextjs-together-llamaindex/frontend/pnpm-lock.yaml b/nextjs-together-llamaindex/frontend/pnpm-lock.yaml similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/pnpm-lock.yaml rename to nextjs-together-llamaindex/frontend/pnpm-lock.yaml diff --git a/examples/nextjs-together-llamaindex/frontend/postcss.config.mjs b/nextjs-together-llamaindex/frontend/postcss.config.mjs similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/postcss.config.mjs rename to nextjs-together-llamaindex/frontend/postcss.config.mjs diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/actions/schedule.ts b/nextjs-together-llamaindex/frontend/src/app/actions/schedule.ts similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/actions/schedule.ts rename to nextjs-together-llamaindex/frontend/src/app/actions/schedule.ts diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/components/Examples.tsx b/nextjs-together-llamaindex/frontend/src/app/components/Examples.tsx similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/components/Examples.tsx rename to nextjs-together-llamaindex/frontend/src/app/components/Examples.tsx diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/components/examplesList.tsx b/nextjs-together-llamaindex/frontend/src/app/components/examplesList.tsx similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/components/examplesList.tsx rename to nextjs-together-llamaindex/frontend/src/app/components/examplesList.tsx diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/favicon.ico b/nextjs-together-llamaindex/frontend/src/app/favicon.ico similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/favicon.ico rename to nextjs-together-llamaindex/frontend/src/app/favicon.ico diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/fonts/GeistMonoVF.woff b/nextjs-together-llamaindex/frontend/src/app/fonts/GeistMonoVF.woff similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/fonts/GeistMonoVF.woff rename to nextjs-together-llamaindex/frontend/src/app/fonts/GeistMonoVF.woff diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/fonts/GeistVF.woff b/nextjs-together-llamaindex/frontend/src/app/fonts/GeistVF.woff similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/fonts/GeistVF.woff rename to nextjs-together-llamaindex/frontend/src/app/fonts/GeistVF.woff diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/globals.css b/nextjs-together-llamaindex/frontend/src/app/globals.css similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/globals.css rename to nextjs-together-llamaindex/frontend/src/app/globals.css diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/layout.tsx b/nextjs-together-llamaindex/frontend/src/app/layout.tsx similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/layout.tsx rename to nextjs-together-llamaindex/frontend/src/app/layout.tsx diff --git a/examples/nextjs-together-llamaindex/frontend/src/app/page.tsx b/nextjs-together-llamaindex/frontend/src/app/page.tsx similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/src/app/page.tsx rename to nextjs-together-llamaindex/frontend/src/app/page.tsx diff --git a/examples/nextjs-together-llamaindex/frontend/tailwind.config.ts b/nextjs-together-llamaindex/frontend/tailwind.config.ts similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/tailwind.config.ts rename to nextjs-together-llamaindex/frontend/tailwind.config.ts diff --git a/examples/nextjs-together-llamaindex/frontend/tsconfig.json b/nextjs-together-llamaindex/frontend/tsconfig.json similarity index 100% rename from examples/nextjs-together-llamaindex/frontend/tsconfig.json rename to nextjs-together-llamaindex/frontend/tsconfig.json diff --git a/examples/nextjs-together-llamaindex/restack-examples-ts-nextjs-web-ui.png b/nextjs-together-llamaindex/restack-examples-ts-nextjs-web-ui.png similarity index 100% rename from examples/nextjs-together-llamaindex/restack-examples-ts-nextjs-web-ui.png rename to nextjs-together-llamaindex/restack-examples-ts-nextjs-web-ui.png diff --git a/examples/nextjs-together-llamaindex/restack-examples-ts-nextjs.png b/nextjs-together-llamaindex/restack-examples-ts-nextjs.png similarity index 100% rename from examples/nextjs-together-llamaindex/restack-examples-ts-nextjs.png rename to nextjs-together-llamaindex/restack-examples-ts-nextjs.png diff --git a/examples/nextjs-together-llamaindex/restack_up.mjs b/nextjs-together-llamaindex/restack_up.mjs similarity index 77% rename from examples/nextjs-together-llamaindex/restack_up.mjs rename to nextjs-together-llamaindex/restack_up.mjs index c06d380..6627e6b 100644 --- a/examples/nextjs-together-llamaindex/restack_up.mjs +++ b/nextjs-together-llamaindex/restack_up.mjs @@ -21,15 +21,15 @@ const main = async () => { const frontendNextJs = { name: "nextjs", - dockerFilePath: "examples/nextjs-together-llamaindex/frontend/Dockerfile", - dockerBuildContext: "examples/nextjs-together-llamaindex/frontend", + dockerFilePath: "nextjs-together-llamaindex/frontend/Dockerfile", + dockerBuildContext: "nextjs-together-llamaindex/frontend", environmentVariables: [...restackEngineEnvs], }; const backendNodeJs = { name: "backend", - dockerFilePath: "examples/nextjs-together-llamaindex/backend/Dockerfile", - dockerBuildContext: "examples/nextjs-together-llamaindex/backend", + dockerFilePath: "nextjs-together-llamaindex/backend/Dockerfile", + dockerBuildContext: "nextjs-together-llamaindex/backend", environmentVariables: [ ...restackEngineEnvs, { diff --git a/examples/nextjs/.env.Example b/nextjs/.env.Example similarity index 100% rename from examples/nextjs/.env.Example rename to nextjs/.env.Example diff --git a/examples/nextjs/.eslintrc.json b/nextjs/.eslintrc.json similarity index 100% rename from examples/nextjs/.eslintrc.json rename to nextjs/.eslintrc.json diff --git a/examples/nextjs/.gitignore b/nextjs/.gitignore similarity index 100% rename from examples/nextjs/.gitignore rename to nextjs/.gitignore diff --git a/examples/nextjs/Dockerfile b/nextjs/Dockerfile similarity index 100% rename from examples/nextjs/Dockerfile rename to nextjs/Dockerfile diff --git a/examples/nextjs/README.md b/nextjs/README.md similarity index 94% rename from examples/nextjs/README.md rename to nextjs/README.md index 5d331e3..dce66e0 100644 --- a/examples/nextjs/README.md +++ b/nextjs/README.md @@ -24,7 +24,7 @@ This project uses [`next/font`](https://nextjs.org/docs/app/building-your-applic To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Schedule Restack workflow from NextJS frontend diff --git a/examples/nextjs/next.config.mjs b/nextjs/next.config.mjs similarity index 100% rename from examples/nextjs/next.config.mjs rename to nextjs/next.config.mjs diff --git a/examples/nextjs/package.json b/nextjs/package.json similarity index 100% rename from examples/nextjs/package.json rename to nextjs/package.json diff --git a/examples/nextjs/pnpm-lock.yaml b/nextjs/pnpm-lock.yaml similarity index 100% rename from examples/nextjs/pnpm-lock.yaml rename to nextjs/pnpm-lock.yaml diff --git a/examples/nextjs/postcss.config.mjs b/nextjs/postcss.config.mjs similarity index 100% rename from examples/nextjs/postcss.config.mjs rename to nextjs/postcss.config.mjs diff --git a/examples/nextjs/restack-examples-ts-nextjs-web-ui.png b/nextjs/restack-examples-ts-nextjs-web-ui.png similarity index 100% rename from examples/nextjs/restack-examples-ts-nextjs-web-ui.png rename to nextjs/restack-examples-ts-nextjs-web-ui.png diff --git a/examples/nextjs/restack-examples-ts-nextjs.png b/nextjs/restack-examples-ts-nextjs.png similarity index 100% rename from examples/nextjs/restack-examples-ts-nextjs.png rename to nextjs/restack-examples-ts-nextjs.png diff --git a/examples/nextjs/restack_up.mjs b/nextjs/restack_up.mjs similarity index 89% rename from examples/nextjs/restack_up.mjs rename to nextjs/restack_up.mjs index aa857dd..fae6e4d 100644 --- a/examples/nextjs/restack_up.mjs +++ b/nextjs/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const nextjsApp = { name: "nextjs", - dockerFilePath: "examples/nextjs/Dockerfile", - dockerBuildContext: "examples/nextjs", + dockerFilePath: "nextjs/Dockerfile", + dockerBuildContext: "nextjs", environmentVariables: [...restackEngineEnvs], }; diff --git a/examples/nextjs/src/app/actions/trigger.ts b/nextjs/src/app/actions/trigger.ts similarity index 100% rename from examples/nextjs/src/app/actions/trigger.ts rename to nextjs/src/app/actions/trigger.ts diff --git a/examples/nextjs/src/app/components/Examples.tsx b/nextjs/src/app/components/Examples.tsx similarity index 100% rename from examples/nextjs/src/app/components/Examples.tsx rename to nextjs/src/app/components/Examples.tsx diff --git a/examples/nextjs/src/app/components/examplesList.tsx b/nextjs/src/app/components/examplesList.tsx similarity index 100% rename from examples/nextjs/src/app/components/examplesList.tsx rename to nextjs/src/app/components/examplesList.tsx diff --git a/examples/nextjs/src/app/favicon.ico b/nextjs/src/app/favicon.ico similarity index 100% rename from examples/nextjs/src/app/favicon.ico rename to nextjs/src/app/favicon.ico diff --git a/examples/nextjs/src/app/fonts/GeistMonoVF.woff b/nextjs/src/app/fonts/GeistMonoVF.woff similarity index 100% rename from examples/nextjs/src/app/fonts/GeistMonoVF.woff rename to nextjs/src/app/fonts/GeistMonoVF.woff diff --git a/examples/nextjs/src/app/fonts/GeistVF.woff b/nextjs/src/app/fonts/GeistVF.woff similarity index 100% rename from examples/nextjs/src/app/fonts/GeistVF.woff rename to nextjs/src/app/fonts/GeistVF.woff diff --git a/examples/nextjs/src/app/globals.css b/nextjs/src/app/globals.css similarity index 100% rename from examples/nextjs/src/app/globals.css rename to nextjs/src/app/globals.css diff --git a/examples/nextjs/src/app/layout.tsx b/nextjs/src/app/layout.tsx similarity index 100% rename from examples/nextjs/src/app/layout.tsx rename to nextjs/src/app/layout.tsx diff --git a/examples/nextjs/src/app/page.tsx b/nextjs/src/app/page.tsx similarity index 100% rename from examples/nextjs/src/app/page.tsx rename to nextjs/src/app/page.tsx diff --git a/examples/nextjs/tailwind.config.ts b/nextjs/tailwind.config.ts similarity index 100% rename from examples/nextjs/tailwind.config.ts rename to nextjs/tailwind.config.ts diff --git a/examples/nextjs/tsconfig.json b/nextjs/tsconfig.json similarity index 100% rename from examples/nextjs/tsconfig.json rename to nextjs/tsconfig.json diff --git a/examples/openai/.env.example b/openai/.env.example similarity index 100% rename from examples/openai/.env.example rename to openai/.env.example diff --git a/examples/openai/Dockerfile b/openai/Dockerfile similarity index 100% rename from examples/openai/Dockerfile rename to openai/Dockerfile diff --git a/examples/openai/package.json b/openai/package.json similarity index 100% rename from examples/openai/package.json rename to openai/package.json diff --git a/examples/openai/pnpm-lock.yaml b/openai/pnpm-lock.yaml similarity index 100% rename from examples/openai/pnpm-lock.yaml rename to openai/pnpm-lock.yaml diff --git a/examples/encryption/readme.md b/openai/readme.md similarity index 93% rename from examples/encryption/readme.md rename to openai/readme.md index 94dadf3..6c026fd 100644 --- a/examples/encryption/readme.md +++ b/openai/readme.md @@ -13,7 +13,7 @@ brew install pnpm To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Start services diff --git a/examples/openai/restack_up.mjs b/openai/restack_up.mjs similarity index 90% rename from examples/openai/restack_up.mjs rename to openai/restack_up.mjs index 26d3fbe..95a98b8 100644 --- a/examples/openai/restack_up.mjs +++ b/openai/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/hello/Dockerfile", - dockerBuildContext: "examples/hello", + dockerFilePath: "hello/Dockerfile", + dockerBuildContext: "hello", environmentVariables: [ { name: "OPENAI_API_KEY", diff --git a/examples/openai/scheduleWorkflow.ts b/openai/scheduleWorkflow.ts similarity index 100% rename from examples/openai/scheduleWorkflow.ts rename to openai/scheduleWorkflow.ts diff --git a/examples/openai/src/client.ts b/openai/src/client.ts similarity index 100% rename from examples/openai/src/client.ts rename to openai/src/client.ts diff --git a/examples/openai/src/functions/goodbye.ts b/openai/src/functions/goodbye.ts similarity index 100% rename from examples/openai/src/functions/goodbye.ts rename to openai/src/functions/goodbye.ts diff --git a/examples/openai/src/functions/index.ts b/openai/src/functions/index.ts similarity index 100% rename from examples/openai/src/functions/index.ts rename to openai/src/functions/index.ts diff --git a/examples/openai/src/functions/openai/chat/completionsBase.ts b/openai/src/functions/openai/chat/completionsBase.ts similarity index 100% rename from examples/openai/src/functions/openai/chat/completionsBase.ts rename to openai/src/functions/openai/chat/completionsBase.ts diff --git a/examples/openai/src/functions/openai/chat/completionsStream.ts b/openai/src/functions/openai/chat/completionsStream.ts similarity index 100% rename from examples/openai/src/functions/openai/chat/completionsStream.ts rename to openai/src/functions/openai/chat/completionsStream.ts diff --git a/examples/openai/src/functions/openai/chat/index.ts b/openai/src/functions/openai/chat/index.ts similarity index 100% rename from examples/openai/src/functions/openai/chat/index.ts rename to openai/src/functions/openai/chat/index.ts diff --git a/examples/openai/src/functions/openai/index.ts b/openai/src/functions/openai/index.ts similarity index 100% rename from examples/openai/src/functions/openai/index.ts rename to openai/src/functions/openai/index.ts diff --git a/examples/openai/src/functions/openai/thread/createAssistant.ts b/openai/src/functions/openai/thread/createAssistant.ts similarity index 100% rename from examples/openai/src/functions/openai/thread/createAssistant.ts rename to openai/src/functions/openai/thread/createAssistant.ts diff --git a/examples/openai/src/functions/openai/thread/createMessageOnThread.ts b/openai/src/functions/openai/thread/createMessageOnThread.ts similarity index 100% rename from examples/openai/src/functions/openai/thread/createMessageOnThread.ts rename to openai/src/functions/openai/thread/createMessageOnThread.ts diff --git a/examples/openai/src/functions/openai/thread/createThread.ts b/openai/src/functions/openai/thread/createThread.ts similarity index 100% rename from examples/openai/src/functions/openai/thread/createThread.ts rename to openai/src/functions/openai/thread/createThread.ts diff --git a/examples/openai/src/functions/openai/thread/index.ts b/openai/src/functions/openai/thread/index.ts similarity index 100% rename from examples/openai/src/functions/openai/thread/index.ts rename to openai/src/functions/openai/thread/index.ts diff --git a/examples/openai/src/functions/openai/thread/runThread.ts b/openai/src/functions/openai/thread/runThread.ts similarity index 100% rename from examples/openai/src/functions/openai/thread/runThread.ts rename to openai/src/functions/openai/thread/runThread.ts diff --git a/examples/openai/src/functions/openai/types/events.ts b/openai/src/functions/openai/types/events.ts similarity index 100% rename from examples/openai/src/functions/openai/types/events.ts rename to openai/src/functions/openai/types/events.ts diff --git a/examples/openai/src/functions/openai/types/index.ts b/openai/src/functions/openai/types/index.ts similarity index 100% rename from examples/openai/src/functions/openai/types/index.ts rename to openai/src/functions/openai/types/index.ts diff --git a/examples/openai/src/functions/openai/utils/aggregateStream.ts b/openai/src/functions/openai/utils/aggregateStream.ts similarity index 100% rename from examples/openai/src/functions/openai/utils/aggregateStream.ts rename to openai/src/functions/openai/utils/aggregateStream.ts diff --git a/examples/openai/src/functions/openai/utils/client.ts b/openai/src/functions/openai/utils/client.ts similarity index 100% rename from examples/openai/src/functions/openai/utils/client.ts rename to openai/src/functions/openai/utils/client.ts diff --git a/examples/openai/src/functions/openai/utils/cost.ts b/openai/src/functions/openai/utils/cost.ts similarity index 100% rename from examples/openai/src/functions/openai/utils/cost.ts rename to openai/src/functions/openai/utils/cost.ts diff --git a/examples/openai/src/functions/openai/utils/index.ts b/openai/src/functions/openai/utils/index.ts similarity index 100% rename from examples/openai/src/functions/openai/utils/index.ts rename to openai/src/functions/openai/utils/index.ts diff --git a/examples/openai/src/functions/openai/utils/mergeToolCalls.ts b/openai/src/functions/openai/utils/mergeToolCalls.ts similarity index 100% rename from examples/openai/src/functions/openai/utils/mergeToolCalls.ts rename to openai/src/functions/openai/utils/mergeToolCalls.ts diff --git a/examples/openai/src/services.ts b/openai/src/services.ts similarity index 100% rename from examples/openai/src/services.ts rename to openai/src/services.ts diff --git a/examples/openai/src/workflows/hello.ts b/openai/src/workflows/hello.ts similarity index 100% rename from examples/openai/src/workflows/hello.ts rename to openai/src/workflows/hello.ts diff --git a/examples/openai/src/workflows/index.ts b/openai/src/workflows/index.ts similarity index 100% rename from examples/openai/src/workflows/index.ts rename to openai/src/workflows/index.ts diff --git a/examples/openai/tsconfig.json b/openai/tsconfig.json similarity index 100% rename from examples/openai/tsconfig.json rename to openai/tsconfig.json diff --git a/examples/posthog/.env.example b/posthog/.env.example similarity index 100% rename from examples/posthog/.env.example rename to posthog/.env.example diff --git a/examples/posthog/Dockerfile b/posthog/Dockerfile similarity index 100% rename from examples/posthog/Dockerfile rename to posthog/Dockerfile diff --git a/examples/posthog/package.json b/posthog/package.json similarity index 100% rename from examples/posthog/package.json rename to posthog/package.json diff --git a/examples/posthog/pnpm-lock.yaml b/posthog/pnpm-lock.yaml similarity index 100% rename from examples/posthog/pnpm-lock.yaml rename to posthog/pnpm-lock.yaml diff --git a/examples/posthog/readme.md b/posthog/readme.md similarity index 92% rename from examples/posthog/readme.md rename to posthog/readme.md index 286027f..a204464 100644 --- a/examples/posthog/readme.md +++ b/posthog/readme.md @@ -11,7 +11,7 @@ By default we retrieve all recodings from last 24 hours, so by scheduling the wo To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Install dependencies diff --git a/examples/posthog/restack_up.mjs b/posthog/restack_up.mjs similarity index 90% rename from examples/posthog/restack_up.mjs rename to posthog/restack_up.mjs index 5d310ae..7c5300c 100644 --- a/examples/posthog/restack_up.mjs +++ b/posthog/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/posthog/Dockerfile", - dockerBuildContext: "examples/posthog", + dockerFilePath: "posthog/Dockerfile", + dockerBuildContext: "posthog", environmentVariables: [ ...restackEngineEnvs, ...Object.keys(process.env).map((key) => ({ diff --git a/examples/posthog/scheduleWorkflow.ts b/posthog/scheduleWorkflow.ts similarity index 100% rename from examples/posthog/scheduleWorkflow.ts rename to posthog/scheduleWorkflow.ts diff --git a/examples/posthog/src/client.ts b/posthog/src/client.ts similarity index 100% rename from examples/posthog/src/client.ts rename to posthog/src/client.ts diff --git a/examples/posthog/src/functions/index.ts b/posthog/src/functions/index.ts similarity index 100% rename from examples/posthog/src/functions/index.ts rename to posthog/src/functions/index.ts diff --git a/examples/posthog/src/functions/posthog/index.ts b/posthog/src/functions/posthog/index.ts similarity index 100% rename from examples/posthog/src/functions/posthog/index.ts rename to posthog/src/functions/posthog/index.ts diff --git a/examples/posthog/src/functions/posthog/sessionRecording/blobChunks.ts b/posthog/src/functions/posthog/sessionRecording/blobChunks.ts similarity index 100% rename from examples/posthog/src/functions/posthog/sessionRecording/blobChunks.ts rename to posthog/src/functions/posthog/sessionRecording/blobChunks.ts diff --git a/examples/posthog/src/functions/posthog/sessionRecording/queryEvents.ts b/posthog/src/functions/posthog/sessionRecording/queryEvents.ts similarity index 100% rename from examples/posthog/src/functions/posthog/sessionRecording/queryEvents.ts rename to posthog/src/functions/posthog/sessionRecording/queryEvents.ts diff --git a/examples/posthog/src/functions/posthog/sessionRecording/recordings.ts b/posthog/src/functions/posthog/sessionRecording/recordings.ts similarity index 100% rename from examples/posthog/src/functions/posthog/sessionRecording/recordings.ts rename to posthog/src/functions/posthog/sessionRecording/recordings.ts diff --git a/examples/posthog/src/functions/posthog/sessionRecording/snapshotBlob.ts b/posthog/src/functions/posthog/sessionRecording/snapshotBlob.ts similarity index 100% rename from examples/posthog/src/functions/posthog/sessionRecording/snapshotBlob.ts rename to posthog/src/functions/posthog/sessionRecording/snapshotBlob.ts diff --git a/examples/posthog/src/functions/posthog/sessionRecording/snapshots.ts b/posthog/src/functions/posthog/sessionRecording/snapshots.ts similarity index 100% rename from examples/posthog/src/functions/posthog/sessionRecording/snapshots.ts rename to posthog/src/functions/posthog/sessionRecording/snapshots.ts diff --git a/examples/posthog/src/functions/utils/index.ts b/posthog/src/functions/utils/index.ts similarity index 100% rename from examples/posthog/src/functions/utils/index.ts rename to posthog/src/functions/utils/index.ts diff --git a/examples/posthog/src/functions/utils/sendEventToWorkflow.ts b/posthog/src/functions/utils/sendEventToWorkflow.ts similarity index 100% rename from examples/posthog/src/functions/utils/sendEventToWorkflow.ts rename to posthog/src/functions/utils/sendEventToWorkflow.ts diff --git a/examples/posthog/src/services.ts b/posthog/src/services.ts similarity index 100% rename from examples/posthog/src/services.ts rename to posthog/src/services.ts diff --git a/examples/posthog/src/workflows/chunk.ts b/posthog/src/workflows/chunk.ts similarity index 100% rename from examples/posthog/src/workflows/chunk.ts rename to posthog/src/workflows/chunk.ts diff --git a/examples/posthog/src/workflows/digest.ts b/posthog/src/workflows/digest.ts similarity index 100% rename from examples/posthog/src/workflows/digest.ts rename to posthog/src/workflows/digest.ts diff --git a/examples/posthog/src/workflows/index.ts b/posthog/src/workflows/index.ts similarity index 100% rename from examples/posthog/src/workflows/index.ts rename to posthog/src/workflows/index.ts diff --git a/examples/posthog/src/workflows/recording.ts b/posthog/src/workflows/recording.ts similarity index 100% rename from examples/posthog/src/workflows/recording.ts rename to posthog/src/workflows/recording.ts diff --git a/examples/posthog/tsconfig.json b/posthog/tsconfig.json similarity index 100% rename from examples/posthog/tsconfig.json rename to posthog/tsconfig.json diff --git a/readme.md b/readme.md index c5c9bfd..c3d71d5 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ Restack is an open source framework for building autonomous AI applications in T Start the Restack Engine and Web UI using Docker: ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/engine:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/engine:main ``` Or using Docker Compose: @@ -22,27 +22,32 @@ The Restack Web UI will be available at http://localhost:5233 ### Autonomous AI Examples -- [examples/posthog](examples/posthog) - Analyzes PostHog session recordings and creates Linear digests -- [examples/voice](examples/voice) - Voice processing with Deepgram and OpenAI +- [posthog](posthog) - Analyzes PostHog session recordings and creates Linear digests +- [voice](voice) - Voice processing with Deepgram and OpenAI [Find more autonomous examples](https://docs.restack.io/examples) +## Examples of key Restack functionalities + +- [get-started](get-started) - Basic starter template +- [child-workflows](child-workflows) - Example of parent-child workflow orchestration +- [encryption](encryption) - Example of encrypted data handling in workflows +- [human-loop](human-loop) - Example of human-in-the-loop workflows + ### Examples with Service Provider (OpenAI, Gemini & more) -- [examples/openai](examples/openai) - Basic OpenAI integration example -- [examples/gemini](examples/gemini) - Example using Google's Gemini model -- [examples/composio](examples/composio) - Calendar event creation with AI -- [examples/expresss-together-llamaindex](examples/express-together-llamaindex) - Together AI and LlamaIndex integration with Express -- [examples/nextjs-together-llamaindex](examples/nextjs-together-llamaindex) - Together AI and LlamaIndex integration with Next.js +- [openai](openai) - Basic OpenAI integration example +- [gemini](gemini) - Example using Google's Gemini model +- [composio](composio) - Calendar event creation with AI +- [gotohuman](gotohuman) - Human-in-the-loop example using gotoHuman +- [expresss-together-llamaindex](express-together-llamaindex) - Together AI and LlamaIndex integration with Express +- [nextjs-together-llamaindex](nextjs-together-llamaindex) - Together AI and LlamaIndex integration with Next.js ### Framework Examples +- [nextjs](nextjs) - Integration with Next.js applications +- [express](express) - Basic Express server to schedule restack workflows +- [swagger](swagger) - Express server with Swagger documentation to trigger restack workflow from Swagger UI -- [examples/get-started](examples/get-started) - Basic starter template -- [examples/nextjs](examples/nextjs) - Integration with Next.js applications -- [examples/express](examples/express) - Basic Express server to schedule restack workflows -- [examples/swagger](examples/swagger) - Express server with Swagger documentation to trigger restack workflow from Swagger UI -- [examples/human-loop](examples/human-loop) - Example of human-in-the-loop workflows -- [examples/gotohuman](examples/gotohuman) - Human-in-the-loop example using gotoHuman ## Documentation diff --git a/examples/swagger/.env.example b/swagger/.env.example similarity index 100% rename from examples/swagger/.env.example rename to swagger/.env.example diff --git a/examples/swagger/Dockerfile b/swagger/Dockerfile similarity index 100% rename from examples/swagger/Dockerfile rename to swagger/Dockerfile diff --git a/examples/swagger/package.json b/swagger/package.json similarity index 100% rename from examples/swagger/package.json rename to swagger/package.json diff --git a/examples/swagger/pnpm-lock.yaml b/swagger/pnpm-lock.yaml similarity index 100% rename from examples/swagger/pnpm-lock.yaml rename to swagger/pnpm-lock.yaml diff --git a/examples/swagger/readme.md b/swagger/readme.md similarity index 92% rename from examples/swagger/readme.md rename to swagger/readme.md index 4680a3c..287ff9d 100644 --- a/examples/swagger/readme.md +++ b/swagger/readme.md @@ -1,6 +1,6 @@ # Run Restack in Docker -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main # Open the Desktop UI diff --git a/examples/nextjs-together-llamaindex/backend/restack_up.mjs b/swagger/restack_up.mjs similarity index 89% rename from examples/nextjs-together-llamaindex/backend/restack_up.mjs rename to swagger/restack_up.mjs index 18d3693..7e0e698 100644 --- a/examples/nextjs-together-llamaindex/backend/restack_up.mjs +++ b/swagger/restack_up.mjs @@ -21,8 +21,8 @@ const main = async () => { const expressServer = { name: "express", - dockerFilePath: "examples/express/Dockerfile", - dockerBuildContext: "examples/express", + dockerFilePath: "express/Dockerfile", + dockerBuildContext: "express", environmentVariables: [...restackEngineEnvs], }; diff --git a/examples/swagger/src/client.ts b/swagger/src/client.ts similarity index 100% rename from examples/swagger/src/client.ts rename to swagger/src/client.ts diff --git a/examples/swagger/src/server.ts b/swagger/src/server.ts similarity index 100% rename from examples/swagger/src/server.ts rename to swagger/src/server.ts diff --git a/examples/swagger/src/swagger.ts b/swagger/src/swagger.ts similarity index 100% rename from examples/swagger/src/swagger.ts rename to swagger/src/swagger.ts diff --git a/examples/swagger/swagger-ui-example.png b/swagger/swagger-ui-example.png similarity index 100% rename from examples/swagger/swagger-ui-example.png rename to swagger/swagger-ui-example.png diff --git a/examples/swagger/tsconfig.json b/swagger/tsconfig.json similarity index 100% rename from examples/swagger/tsconfig.json rename to swagger/tsconfig.json diff --git a/examples/voice/.env.example b/voice/.env.example similarity index 100% rename from examples/voice/.env.example rename to voice/.env.example diff --git a/examples/voice/Dockerfile.server b/voice/Dockerfile.server similarity index 100% rename from examples/voice/Dockerfile.server rename to voice/Dockerfile.server diff --git a/examples/voice/Dockerfile.services b/voice/Dockerfile.services similarity index 100% rename from examples/voice/Dockerfile.services rename to voice/Dockerfile.services diff --git a/examples/voice/callWorkflow.ts b/voice/callWorkflow.ts similarity index 100% rename from examples/voice/callWorkflow.ts rename to voice/callWorkflow.ts diff --git a/examples/voice/package.json b/voice/package.json similarity index 100% rename from examples/voice/package.json rename to voice/package.json diff --git a/examples/voice/pnpm-lock.yaml b/voice/pnpm-lock.yaml similarity index 100% rename from examples/voice/pnpm-lock.yaml rename to voice/pnpm-lock.yaml diff --git a/examples/voice/readme.md b/voice/readme.md similarity index 85% rename from examples/voice/readme.md rename to voice/readme.md index 2db2036..dc12cf1 100644 --- a/examples/voice/readme.md +++ b/voice/readme.md @@ -11,7 +11,7 @@ pnpm dev-services To install the Restack Web UI, you can use Docker. ``` -docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main +docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main ``` # Use frontend with browser microphone: diff --git a/examples/voice/restack_up.mjs b/voice/restack_up.mjs similarity index 90% rename from examples/voice/restack_up.mjs rename to voice/restack_up.mjs index 92b94e0..aefb739 100644 --- a/examples/voice/restack_up.mjs +++ b/voice/restack_up.mjs @@ -23,8 +23,8 @@ const main = async () => { const serverApp = { name: serverName, - dockerFilePath: "examples/voice/Dockerfile.server", - dockerBuildContext: "examples/voice", + dockerFilePath: "voice/Dockerfile.server", + dockerBuildContext: "voice", environmentVariables: [ { name: "PORT", @@ -40,8 +40,8 @@ const main = async () => { const servicesApp = { name: "services", - dockerFilePath: "examples/posthog/Dockerfile", - dockerBuildContext: "examples/posthog", + dockerFilePath: "posthog/Dockerfile", + dockerBuildContext: "posthog", environmentVariables: [ { name: "OPENAI_API_KEY", diff --git a/examples/voice/src/client.ts b/voice/src/client.ts similarity index 100% rename from examples/voice/src/client.ts rename to voice/src/client.ts diff --git a/examples/voice/src/functions/erp/checkInventory.ts b/voice/src/functions/erp/checkInventory.ts similarity index 100% rename from examples/voice/src/functions/erp/checkInventory.ts rename to voice/src/functions/erp/checkInventory.ts diff --git a/examples/voice/src/functions/erp/checkPrice.ts b/voice/src/functions/erp/checkPrice.ts similarity index 100% rename from examples/voice/src/functions/erp/checkPrice.ts rename to voice/src/functions/erp/checkPrice.ts diff --git a/examples/voice/src/functions/erp/index.ts b/voice/src/functions/erp/index.ts similarity index 100% rename from examples/voice/src/functions/erp/index.ts rename to voice/src/functions/erp/index.ts diff --git a/examples/voice/src/functions/erp/placeOrder.ts b/voice/src/functions/erp/placeOrder.ts similarity index 100% rename from examples/voice/src/functions/erp/placeOrder.ts rename to voice/src/functions/erp/placeOrder.ts diff --git a/examples/voice/src/functions/erp/tools.ts b/voice/src/functions/erp/tools.ts similarity index 100% rename from examples/voice/src/functions/erp/tools.ts rename to voice/src/functions/erp/tools.ts diff --git a/examples/voice/src/functions/index.ts b/voice/src/functions/index.ts similarity index 100% rename from examples/voice/src/functions/index.ts rename to voice/src/functions/index.ts diff --git a/examples/voice/src/functions/openai/prompt.ts b/voice/src/functions/openai/prompt.ts similarity index 100% rename from examples/voice/src/functions/openai/prompt.ts rename to voice/src/functions/openai/prompt.ts diff --git a/examples/voice/src/functions/utils/index.ts b/voice/src/functions/utils/index.ts similarity index 100% rename from examples/voice/src/functions/utils/index.ts rename to voice/src/functions/utils/index.ts diff --git a/examples/voice/src/functions/utils/sendEventToWorkflow.ts b/voice/src/functions/utils/sendEventToWorkflow.ts similarity index 100% rename from examples/voice/src/functions/utils/sendEventToWorkflow.ts rename to voice/src/functions/utils/sendEventToWorkflow.ts diff --git a/examples/voice/src/server.ts b/voice/src/server.ts similarity index 100% rename from examples/voice/src/server.ts rename to voice/src/server.ts diff --git a/examples/voice/src/services.ts b/voice/src/services.ts similarity index 100% rename from examples/voice/src/services.ts rename to voice/src/services.ts diff --git a/examples/voice/src/workflows/conversation/conversation.ts b/voice/src/workflows/conversation/conversation.ts similarity index 100% rename from examples/voice/src/workflows/conversation/conversation.ts rename to voice/src/workflows/conversation/conversation.ts diff --git a/examples/voice/src/workflows/conversation/events.ts b/voice/src/workflows/conversation/events.ts similarity index 100% rename from examples/voice/src/workflows/conversation/events.ts rename to voice/src/workflows/conversation/events.ts diff --git a/examples/voice/src/workflows/index.ts b/voice/src/workflows/index.ts similarity index 100% rename from examples/voice/src/workflows/index.ts rename to voice/src/workflows/index.ts diff --git a/examples/voice/src/workflows/room/events.ts b/voice/src/workflows/room/events.ts similarity index 100% rename from examples/voice/src/workflows/room/events.ts rename to voice/src/workflows/room/events.ts diff --git a/examples/voice/src/workflows/room/room.ts b/voice/src/workflows/room/room.ts similarity index 100% rename from examples/voice/src/workflows/room/room.ts rename to voice/src/workflows/room/room.ts diff --git a/examples/voice/src/workflows/twilioCall.ts b/voice/src/workflows/twilioCall.ts similarity index 100% rename from examples/voice/src/workflows/twilioCall.ts rename to voice/src/workflows/twilioCall.ts diff --git a/examples/voice/tsconfig.json b/voice/tsconfig.json similarity index 100% rename from examples/voice/tsconfig.json rename to voice/tsconfig.json