Skip to content

techanvil/chrysalis

Repository files navigation

Notes

Zenhub Dependency Graph

https://chrysalis.techanvil.com/zenhub-dependency-graph

This currently requires the use of npm link in order to build with the integrated Zenhub Dependency Graph.

The zenhub-dependency-graph repository is a Git submodule of this repo.

# Clone the repo with --recurse-submodules
git clone --recurse-submodules https://github.com/techanvil/chrysalis.git
# Or, if you have already cloned it:
git submodule update --init

npm link ./zenhub-dependency-graph
cd ./zenhub-dependency-graph
npm link ./chrysalis/node_modules/react

# Pulling changes for a clone of this repo:
git pull --recurse-submodules

# Pulling zenhub-dependency-graph changes into this repo:
git submodule update --remote
git add zenhub-dependency-graph && git commit

Docker

docker build -t chrysalis-docker .
docker run -p 3000:3000 chrysalis-docker

Configuration

Create an .env file with the following configuration:

NEXTAUTH_URL=https://external-hostname.com # Public facing address (used to determine hostname for auth).
AUTH_SECRET=abc123 # Secret for auth encryption. See https://authjs.dev/getting-started/installation#setup-environment
AUTH_TRUST_HOST=true # Set to true if you are using a reverse proxy.
AUTH_GOOGLE_ID=abc123.apps.googleusercontent.com # Google API client ID. See https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid
AUTH_GOOGLE_SECRET=abc123 # Google secret from client ID.

GEMINI_API_KEY=abc123 # Gemini API key. See https://ai.google.dev/gemini-api/docs/api-key
CHRYSALIS_MAX_ROUGH_CHAT_SESSION_SIZE=1048576 # Max approximate size in bytes of a given chat history before it will be reset.
CHRYSALIS_MAX_CHAT_SESSIONS=100 # Max number of active chat sessions. When the limit is reached the least recently active chat will be reset.
CHRYSALIS_ALLOWED_DOMAINS=foo.com,bar.org # Optional, comma separated list of domains. If specified, only users at these domains will be allowed to authenticate.

# This ZenHub configuration is only needed for the /zenhub/epic page (under construction), not for the Zenhub Dependency Graph.
ZENHUB_WORKSPACE_ID=abc123 # The workspace ID needs to be specified for now.
ZENHUB_ENDPOINT_URL=https://api.zenhub.com/public/graphql/
ZENHUB_API_KEY=zh_abc123 # ZenHub GraphQL API key. See https://developers.zenhub.com/graphql-api-docs/getting-started/index.html#authentication

# Conversely, the NEXT_PUBLIC prefixed variable is needed for the Zenhub Dependency Graph.
NEXT_PUBLIC_ZENHUB_ENDPOINT_URL=https://api.zenhub.com/public/graphql/

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published