MCPcopy Index your code
hub / github.com/alarner/perk

github.com/alarner/perk @v2.14.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.14.4 ↗ · + Follow
19 symbols 49 edges 9 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Perk

import { server } from "perk";

server({
    rootDirectory: __dirname,
    routes: {
        directory: "./routes",
        excludeRegex: ".*\\.test\\.ts$",
    },
    server: {
        url: "https://api.mywebsite.com",
        port: 3001,
        cors: {},
    },
})
    .then(() => {
        console.log(`Server started on port 3001`);
    })
    .catch((error: Error) => {
        console.error("The server couldn't start up...");
        console.error(error.message);
    });

process.once("SIGUSR2", async function () {
    process.kill(process.pid, "SIGUSR2");
});

Extension points exported contracts — how you extend this code

StringValueObject_T (Interface)
(no doc)
src/types.ts
Bootstrap_T (Interface)
(no doc)
src/types.ts
Server_T (Interface)
(no doc)
src/types.ts
Config_T (Interface)
(no doc)
src/types.ts
RouteMetadata_T (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

handleRequest
called by 6
src/bootstrap.ts
bootstrap
called by 1
src/bootstrap.ts
configBuilder
called by 1
src/configBuilder.ts
server
called by 1
src/server.ts
bootstrapTests
called by 0
src/helpers.ts
get
called by 0
src/helpers.ts
post
called by 0
src/helpers.ts
put
called by 0
src/helpers.ts

Shape

Function 10
Interface 9

Languages

TypeScript100%

Modules by API surface

src/types.ts9 symbols
src/helpers.ts6 symbols
src/bootstrap.ts2 symbols
src/server.ts1 symbols
src/configBuilder.ts1 symbols

For agents

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

⬇ download graph artifact