Code Monkey home page Code Monkey logo

reproxy's Introduction

header

๐Ÿ’ป Japanese minimalistic engineer who loves small tools to make daily life fun.
๐Ÿž๏ธ Sometimes drawing pixel art.

read.cv-image posts-image misskey-image
dotpict-image monkeytype-image credly-image



๐Ÿ’ช Skills

go-image typescript-image deno-image docker-image lua-image zsh-image
html-image css-image javascript-image markdown-image



๐Ÿ”จ Development Environments

๐Ÿ’ป Hardware

macbook-air-image magic-mouse-image iphone-12-mini-image


๐Ÿงฐ Software

โŒจ๏ธ CLI Tools

homebrew-image mise-image powerlevel10k-image sheldon-image ghq-image vim-image

๐Ÿ–ฑ๏ธ GUI Apps

iterm2-image cw-image vs-code-image
arc-image notion-image 1password-image



๐Ÿ“Š GitHub Stats

GitHub Stats Most Used Languages

reproxy's People

Contributors

5ouma avatar dependabot[bot] avatar github-actions[bot] avatar pre-commit-ci[bot] avatar

Watchers

 avatar

reproxy's Issues

Dynamic file type support

โœ๏ธ Describe the feature

Currently, it responds to the request with contents as text/plain so they must be code files. However, some people might specify non-text files such as images or videos, so it should detect the file type and change the response MIME type.

โœ”๏ธŽ Confirm these checks

๐Ÿ—’๏ธ Additional Information

reproxy/src/router.ts

Lines 4 to 14 in 1bb2d1f

export const router = new Router();
router
.get("/", async <R extends string>(ctx: RouterContext<R>) => {
ctx.response.type = "text/plain";
if (!redirect(ctx, ctx.request.userAgent)) await getContent(ctx);
})
.get("/:ref", async <R extends string>(ctx: RouterContext<R>) => {
const ref: string | undefined = ctx.params.ref;
ctx.response.type = "text/plain";
if (!redirect(ctx, ctx.request.userAgent, ref)) await getContent(ctx, ref);
});

Publish a release when merging to the main branch

โœ๏ธ Describe the feature

Currently, I publish a release manually, but it's better to have an auto-release method.

  • Publish a GitHub Releases
  • Publish to JSR

โœ”๏ธŽ Confirm these checks

๐Ÿ—’๏ธ Additional Information

No response

Add document comments

โœ๏ธ Describe the feature

Writing code is much easier with JSDoc.
It's also good for JSR.

โœ”๏ธŽ Confirm these checks

๐Ÿ—’๏ธ Additional Information

No response

Rearrange the directory structure

โœ๏ธ Describe the feature

Currently, this repo has src and test directories in the root directory.
However, having test codes in the same directory in src like Go projects might be good.

โœ”๏ธŽ Confirm these checks

๐Ÿ—’๏ธ Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.