Source: Jolli-sample-repos/url-shortener Last Updated: 4/8/2026
Tech Stack
Technologies and packages powering the URL shortener.
Core Dependencies
Runtime packages required for the application.
| Package | Version | Purpose |
|---|---|---|
| Express | 4.18.2 | Web framework, routing |
| TypeScript | 5.3.3 | Type safety, compiled to ES2020 |
| nanoid | 3.3.7 | 6-char URL-safe IDs (62^6 combinations) |
| Zod | 3.22.4 | Runtime schema validation |
| CORS | 2.8.5 | Cross-origin requests |
Dev Tools
npm scripts for development workflow.
// package.json scripts
{
"dev": "nodemon src/index.ts", // Auto-reload with ts-node
"build": "tsc", // Compile to dist/
"start": "node dist/index.js" // Run compiled
}OpenAPI
API documentation generation from code annotations.
// swagger.ts - JSDoc annotations in routes.ts generate spec
/**
* @openapi
* /api/v1/urls:
* post:
* summary: Create short URL
*/Served leveraging Docusaurus OpenAPI Docs