Drift is a self-hostable Gist and paste service. Built with Next.js 13 and React Server Components.
DriftNote is a self-hostable Gist clone that is currently being refactored to Next.js 13 app directory and React Server Components. It is in beta but fully functional, allowing users to host their own instances. Drift is built with Next.js 13, React Server Components, shadcn/ui, and Prisma.
pnpm i
to install dependencies.pnpm dev
in the client directory.pnpm prisma
or pnpm exec prisma
.pnpm build
to build production code.pnpm start
.DRIFT_URL
: URL of the Drift instance.DATABASE_URL
: URL to connect to the PostgreSQL database.WELCOME_CONTENT
: Markdown string displayed on the homepage.ENABLE_ADMIN
: First account created is an administrator account.REGISTRATION_PASSWORD
: Password required for account registration.NODE_ENV
: Defaults to development or production.GITHUB_CLIENT_ID
: Client ID for GitHub OAuth.GITHUB_CLIENT_SECRET
: Client secret for GitHub OAuth.NEXTAUTH_URL
: URL of the Drift instance.CREDENTIAL_AUTH
: Whether to allow username/password authentication.For detailed setup using pm2, Docker, or running with systemd, refer to the original documentation.
DriftNote is a self-hostable Gist clone refactored with Next.js 13 and React Server Components. It offers key features such as self-hosting options, modern technology stack, functionality, customizable environment variables, and support for deployment using pm2 or Docker. Users can easily set up Drift with detailed installation instructions and configuration options.