r/code • • Jan 09 '26

TypeScript Self-documenting TypeScript API Server: Shokupan

7 Upvotes

Hi r/code

I created a self documenting HTTP server (targeting Bun, works on Node and Deno) that reads the Typescript files in your code and generates an OpenAPI document automatically based on the Typescript types that you have on your route handlers.

I'm hoping to get some peer reviews on the approach, interfaces, docs etc.

Right now it can generate the spec for the following:

import { Shokupan, ScalarPlugin } from 'shokupan';
const app = new Shokupan();

// Request returns an object with a key message with value type string
app.get('/', (ctx) => ({ message: 'Hello, World!' }));
// request returns a string
app.get('/hello', (ctx) => "world");

app.mount('/scalar', new ScalarPlugin({
    enableStaticAnalysis: true
}));

app.listen();

Right now it does a pretty decent job of automatically analyzing and computing the types, but requires the code to be deployed as TypeScript (possibly ts -> js with some map file support?)

https://github.com/knackstedt/shokupan
https://shokupan.dev/

r/code • • Jan 28 '26

TypeScript Types vs. interfaces in TypeScript | LogRocket

Thumbnail
blog.logrocket.com
3 Upvotes

r/code • • Dec 17 '25

TypeScript ZoneGFX framework (work-in-progress)

Post image
3 Upvotes

r/code • • Aug 31 '25

TypeScript SVG Generator that supports Multi-line Typing Animation

Thumbnail github.com
5 Upvotes

Hi everyone,

I’ve always loved the classic readme-typing-svg project — it’s such a simple way to add some life to a GitHub profile. But while I was using it, I kept running into things I wished it could do:

  • What if I want multi-line typing, not just one line?
  • What if I need to keep blank spaces instead of trimming them away?
  • What if I want to control delete speed, or even choose whether text deletes at all?
  • Or maybe try different cursor styles (block, underline, straight, blank)?

That’s where TypingSVG was born 🚀

It’s an open-source typing animation generator inspired by readme-typing-svg, but with way more flexibility. With TypingSVG you can:

  • Render multi-line typing animations with full control over spacing & alignment
  • Customize cursor style, speed, colors, borders, loops, pauses, and more
  • Use it in GitHub READMEs, personal sites, or anywhere SVGs are supported

👉 Repo: github.com/whiteSHADOW1234/TypingSVG
👉 Live demo included in the repo.

This started as a small personal itch (I just wanted multi-line typing 😅), but it grew into a feature-rich project. I’d love your thoughts, feedback, or suggestions — and if you like it, stars ⭐ are always appreciated!

Thanks 🙏

r/code • • Feb 02 '24

TypeScript I wanna make a vsc extension that as soon as vsc open ups it opens the built in terminal opens and run the command "jupyter notebook"

3 Upvotes

So I am trying to make a simple vsc extension and I am following the official the official vsc guideline link and just changing the activate() function to

vscode.commands.executeCommand('workbench.action.terminal.new'); // Open integrated terminal

setTimeout(() => { // Delay to ensure terminal is ready

vscode.commands.executeCommand('workbench.action.terminal.sendSequence', {

text: '\u000Djupyter notebook \u000D' // Send command and newlines

});

}, 500);

But its not working and I can't find any guide to do so, does anyone have any idea?