MCPcopy Index your code
hub / github.com/denosaurs/rutt

github.com/denosaurs/rutt @0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.0 ↗ · + Follow
9 symbols 17 edges 6 files 0 documented · 0% updated 21mo ago0.3.0 · 2024-09-18★ 623 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rutt

Rutt is a tiny http router designed for use with deno and deno deploy. It is written in about 200 lines of code and is pretty fast, using an extended type of the web-standard URLPatterns to provide fast and easy route matching.

import { router } from "jsr:@denosaurs/rutt";

await Deno.serve(
  router({
    "/": (_req) => new Response("Hello world!", { status: 200 }),
  }),
).finished;

Usage with deno serve

import { router } from "jsr:@denosaurs/rutt";

export default {
  fetch: router({
    "/hello/:name": (_req, _, { name }) =>
      new Response(`Hello ${name}`, { status: 200 }),
  }),
};

Projects using rutt

Maintainers

Contribution

Pull request, issues and feedback are very welcome. Code style is formatted with deno fmt and commit messages are done following Conventional Commits spec.

Licence

Copyright 2022-2024, the denosaurs team. All rights reserved. MIT license.

Extension points exported contracts — how you extend this code

Routes (Interface)
(no doc)
mod.ts
InternalRoute (Interface)
(no doc)
mod.ts
RouterOptions (Interface)
(no doc)
mod.ts

Core symbols most depended-on inside this repo

router
called by 18
mod.ts
joinPaths
called by 1
mod.ts
buildInternalRoutes
called by 1
mod.ts
defaultOtherHandler
called by 0
mod.ts
defaultErrorHandler
called by 0
mod.ts
defaultUnknownMethodHandler
called by 0
mod.ts

Shape

Function 6
Interface 3

Languages

TypeScript100%

Modules by API surface

mod.ts9 symbols

For agents

$ claude mcp add rutt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page