Skip to content

Instantly share code, notes, and snippets.

View C-L-STARK's full-sized avatar
🎯
Focusing

C.L.STARK C-L-STARK

🎯
Focusing
View GitHub Profile
@C-L-STARK
C-L-STARK / WebGL-WebGPU-frameworks-libraries.md
Created October 11, 2024 10:08 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@C-L-STARK
C-L-STARK / chat.ts
Created September 19, 2024 07:58 — forked from AnsonT/chat.ts
Stream OpenAI response though NextJS API route
import { NextApiRequest, NextApiResponse } from 'next'
import { Readable } from 'node:stream'
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
const { authorization } = req.headers
if (!authorization || authorization !== process.env.AUTHORIZATION_HEADER) {
return res.status(401).json({ error: 'Unauthorized' })
}
const openAIUrl = process.env.OPENAI_URL as string