deno.json
{
"den.ooo": "https://den.ooo/npm/[email protected]"
}
npm i den.ooo
import { Registry } from 'den.ooo'
import { GitHub, GitLab, NPM } from 'den.ooo/resolvers'
const registry = new Registry({
resolvers: [
GitHub,
GitLab,
NPM
],
... // see below for more detailed customization
})
// Deno
await registry.serve()
// Cloudflare Workers
export default registry
-
domain
string - The domain of your server, e.g.den.ooo
. -
versionCache
- Provide simple set and get functions that the proxy can use to cache versions of modules to reduce requests to third-party APIs. Where the data is stored is up to you. -
fileCache
- Provide simple set and get functions that the proxy can use to cache JavaScript, TypeScript and WebAssembly files. Where and for how long the data is stored is up to you. -
features
aliases
Record<string, string>typesHeader
booleanimportMapResolution
boolean
If you're interested in deploying your own version of den.ooo, feel free to take inspiration from the below examples, or if you don't want to waste too much time, use our starter template for Railway instead.
-
โ๏ธ Cloudflare Workers
-
๐ฆ Deno