What Can Be Built With Street Framework

Street is a general-purpose TypeScript backend framework comparable in scope to Express, Fastify, NestJS, Spring Boot, ASP.NET Core, and Laravel — with a TypeScript-first, memory-conscious, and security-focused design that makes it suitable for production workloads across every industry vertical.

This page shows what you can build, how Street’s architecture maps to each domain, and which framework features carry the most weight in each context.


Framework at a glance

Before diving into use cases, here is the full capability surface Street brings to every project:

Capability What it provides
HTTP server Native node:http, compiled-regex router, middleware pipeline, request timeout
Dependency injection IoC container, constructor injection, singleton registry, circular dep detection
PostgreSQL Wire protocol v3, SCRAM-SHA-256, connection pool, streaming rows, migrations
JWT HMAC-SHA256, timingSafeEqual, alg/typ enforcement, exp/nbf/iat
Sessions AES-256-GCM, random 96-bit IV, auth tag validation, entropy-checked keys
Rate limiting Sliding-window, BigInt nanosecond precision, 100K IP cap, per-key bounds
WebSockets Bounded connection pool, heartbeat, typed event emitter, 512 KB payload cap
SSE Keep-alive, heartbeat, CR/LF-safe field serialization, backpressure
Multipart Streaming to disk, per-field 64 KB cap, listener cleanup
Webhooks HMAC-SHA256 signatures, SSRF blocklist, DNS rebinding protection, retry
Clustering node:cluster coordinator, IPC heartbeat, auto-restart, graceful shutdown
Telemetry Heap profiling, P50/P99 latency, bounded ring buffer, health endpoint
LRU cache TTL, O(1) eviction, periodic sweep, destroy on shutdown
XSS sanitizer Recursive deep sanitization, depth/key/array bounds, null-byte stripping
Security headers CSP, HSTS, COOP, CORP, X-Frame-Options, Referrer-Policy
CORS Origin allowlist, Vary: Origin, preflight handling
CSRF Timing-safe token comparison, session-backed, safe-method exemption
Vault scrypt KEK derivation (N=131072), AES-256-GCM secret encryption at rest
OpenAPI 3.1 Auto-generated from @ApiOperation decorators
CLI street create, street dev, street generate, street migrate:create

1. Web Applications

Description

Traditional and modern web applications — from server-rendered dashboards to single-page app backends — need a reliable HTTP layer, session management, file handling, and database access. Street handles all of these natively without reaching for third-party middleware.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
Browser / SPA
    │
    ▼
Street HTTP Server
    ├── securityHeaders + corsMiddleware + csrfMiddleware
    ├── SessionManager (AES-256-GCM cookies)
    ├── RateLimiter (per-IP sliding window)
    ├── Router → Controllers → Services
    ├── MultipartParser (file uploads → disk)
    ├── PgPool → PostgreSQL
    └── SseConnection (live notifications)

Street features used

Benefits

Example project ideas

Project Key Street features
Admin dashboard backend Sessions, RBAC with requireRoles, PostgreSQL, SSE for live stats
E-commerce storefront API JWT auth, file uploads (product images), rate limiting, OpenAPI
Blog / CMS backend Multipart uploads, PostgreSQL full-text search, SSE for draft previews
Portfolio / personal site API Lightweight HTTP server, PostgreSQL, OpenAPI
Survey / form platform CSRF middleware, validation decorators, PostgreSQL, file attachments

2. Mobile Backends

Description

Mobile apps (iOS, Android, React Native, Flutter) need a stateless JSON API with fast authentication, push-notification triggers, file upload endpoints, and real-time data sync. Street’s JWT-first design and WebSocket support make it a natural fit.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
Mobile Client
    │  (HTTPS + Bearer JWT)
    ▼
Street HTTP Server
    ├── authMiddleware (JWT verification)
    ├── requireRoles (RBAC)
    ├── RateLimiter (per-device IP)
    ├── Router → Controllers
    ├── MultipartParser (avatar / media uploads)
    ├── StreetWebSocketServer (real-time sync)
    ├── WebhookDispatcher (push notification triggers)
    └── PgPool → PostgreSQL

Street features used

Benefits

Example project ideas

Project Key Street features
Social media app backend JWT, WebSocket (feed updates), multipart (photo upload), PostgreSQL
Fitness tracker API JWT, PostgreSQL (time-series workouts), SSE (live workout feed)
Food delivery app backend WebSocket (order tracking), rate limiting, PostgreSQL, webhooks
Ride-sharing backend WebSocket (driver location), JWT, PostgreSQL, clustering
Mobile banking app API JWT, AES-256-GCM sessions, rate limiting, vault, PostgreSQL

3. REST APIs & GraphQL Gateways

Description

Street is purpose-built for API development. Its decorator-based routing, built-in validation, automatic OpenAPI generation, and parameterized query layer eliminate the boilerplate that dominates API projects in other frameworks.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
API Consumers (web, mobile, third-party)
    │
    ▼
Street HTTP Server
    ├── corsMiddleware (origin allowlist)
    ├── authMiddleware (JWT)
    ├── RateLimiter
    ├── @Controller → @Get / @Post / @Put / @Delete
    ├── @Validate (request schema enforcement)
    ├── Services → PgPool
    └── /openapi.json (auto-generated spec)

Street features used

Benefits

Example project ideas

Project Key Street features
Public REST API (SaaS product) OpenAPI, JWT, rate limiting, CORS, PostgreSQL
Internal microservice API DI container, PostgreSQL, health endpoint, clustering
GraphQL gateway (schema stitching) HTTP server as transport layer, JWT, PostgreSQL for resolvers
Webhook receiver API HMAC signature verification, PostgreSQL event log, rate limiting
API versioning layer Router with /v1/, /v2/ prefixes, OpenAPI per version

4. Microservices

Description

Microservice architectures decompose a system into small, independently deployable services. Street’s minimal footprint, fast startup, DI container, and clustering support make each service lean and self-contained. Its native PostgreSQL driver means no shared ORM layer between services.

Typical architecture

1
2
3
4
5
6
7
8
API Gateway / Load Balancer
    │
    ├── Street Service A (users)      ─── PostgreSQL DB A
    ├── Street Service B (orders)     ─── PostgreSQL DB B
    ├── Street Service C (inventory)  ─── PostgreSQL DB C
    └── Street Service D (notifications) ─── WebhookDispatcher
              │
              └── Inter-service: HTTP webhooks (HMAC-signed)

Street features used

Benefits

Example project ideas

Project Key Street features
User service JWT, PostgreSQL, migrations, health endpoint
Order processing service PostgreSQL transactions, webhooks (payment triggers), clustering
Notification service WebhookDispatcher (outbound), SSE (inbound push to clients)
File storage service MultipartParser, streaming to object storage, PostgreSQL metadata
Auth service JWT signing/verification, scrypt password hashing, vault, rate limiting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Minimal microservice — ~30 lines
import { streetApp, PgPool, TelemetryTracker,
         securityHeaders, RateLimiter } from '@streetjs/core';

const pool = new PgPool({ host: process.env['PG_HOST']!, /* ... */ });
const telemetry = new TelemetryTracker();
const limiter = new RateLimiter({ windowMs: 60_000, maxRequests: 500 });

const app = streetApp({ port: 3000 });
app.use(securityHeaders);
app.use(limiter.middleware());
app.registerController(OrderController);

await pool.initialize();
await app.listen();

5. Real-Time Systems

Description

Real-time systems — live dashboards, collaborative tools, notification hubs, live sports scores, trading tickers — require persistent connections, low-latency message delivery, and robust connection lifecycle management. Street provides both WebSocket and SSE transports with built-in heartbeat and bounded connection pools.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
Clients
    │  WebSocket (bidirectional)   │  SSE (server-push)
    ▼                              ▼
StreetWebSocketServer          SseConnection
    ├── authFn (JWT on upgrade)    ├── heartbeat timer
    ├── heartbeat (ping/pong)      ├── CR/LF-safe serialization
    ├── maxConnections cap         └── cleanup on disconnect
    ├── broadcast()
    └── StreetSocket (typed events)
              │
              ▼
         PgPool → PostgreSQL (event source)
         TelemetryTracker (connection metrics)

Street features used

Benefits

Example project ideas

Project Key Street features
Live sports scores platform WebSocket broadcast, PostgreSQL, SSE for score tickers
Collaborative document editor WebSocket (operational transforms), JWT auth, PostgreSQL
Real-time analytics dashboard SSE (metric stream), TelemetryTracker, PostgreSQL
Live auction platform WebSocket (bid events), rate limiting, PostgreSQL transactions
Chat application WebSocket rooms, JWT, PostgreSQL message history, file uploads
Stock price ticker SSE, PostgreSQL, rate limiting, clustering

6. Gaming Backends

Description

Game backends handle player authentication, matchmaking, leaderboards, inventory, in-game purchases, and real-time game state synchronization. They demand low latency, high concurrency, and strict rate limiting to prevent cheating and abuse.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Game Clients (web, mobile, desktop)
    │
    ▼
Street HTTP Server (REST API)
    ├── JWT auth (player sessions)
    ├── RateLimiter (anti-cheat, anti-abuse)
    ├── PgPool → PostgreSQL (player data, leaderboards)
    └── LruCache (hot leaderboard data)

Street WebSocket Server (game state)
    ├── authFn (JWT on upgrade)
    ├── StreetSocket (per-player event stream)
    ├── broadcast (game events to room)
    └── heartbeat (detect disconnected players)

WebhookDispatcher
    └── Payment provider webhooks (in-game purchases)

Street features used

Benefits

Example project ideas

Project Key Street features
Multiplayer game server WebSocket, JWT, rate limiting, clustering, PostgreSQL
Leaderboard service LRU cache, PostgreSQL, REST API, OpenAPI
Player inventory system PostgreSQL, JWT, parameterized queries, migrations
Matchmaking service WebSocket, PostgreSQL, rate limiting, health endpoint
In-game store backend JWT, webhooks (payment), PostgreSQL transactions, vault
Game analytics pipeline SSE, TelemetryTracker, PostgreSQL, streaming queries

7. Fintech Platforms

Description

Fintech platforms — payment processors, lending platforms, investment apps, crypto exchanges — operate under strict regulatory requirements and face adversarial traffic. They need ACID transactions, cryptographic audit trails, tamper-proof webhooks, and defense-in-depth security at every layer.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Client Apps / Partner APIs
    │  (mTLS or JWT)
    ▼
Street HTTP Server
    ├── securityHeaders + HSTS
    ├── authMiddleware (JWT, short expiry)
    ├── requireRoles (RBAC: user / analyst / admin)
    ├── RateLimiter (per-IP + per-user)
    ├── csrfMiddleware
    ├── xssMiddleware
    ├── Router → Controllers → Services
    │       └── PgPool.transaction() (ACID)
    ├── WebhookDispatcher (payment events, HMAC-signed)
    └── Vault (KEK-encrypted secrets at rest)

Street features used

Benefits

Example project ideas

Project Key Street features
Payment processing API PostgreSQL transactions, vault, JWT, webhooks, rate limiting
Peer-to-peer lending platform ACID transactions, JWT, RBAC, PostgreSQL, audit log
Crypto exchange backend WebSocket (order book), PostgreSQL, rate limiting, clustering
Personal finance tracker JWT, PostgreSQL, OpenAPI, SSE (budget alerts)
Invoice and billing system PostgreSQL, webhooks (payment confirmation), JWT, OpenAPI
KYC / AML compliance service Vault (PII encryption), PostgreSQL, rate limiting, audit trail
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ACID fund transfer — never leaves partial state
await pool.transaction(async (conn) => {
  await conn.query(
    'UPDATE accounts SET balance = balance - $1 WHERE id = $2 AND balance >= $1',
    [amount, fromAccountId]
  );
  await conn.query(
    'UPDATE accounts SET balance = balance + $1 WHERE id = $2',
    [amount, toAccountId]
  );
  await conn.query(
    'INSERT INTO ledger (from_id, to_id, amount, ts) VALUES ($1, $2, $3, NOW())',
    [fromAccountId, toAccountId, amount]
  );
});

8. Banking Systems

Description

Core banking systems require the highest levels of data integrity, auditability, regulatory compliance, and security. They handle account management, transaction processing, loan origination, and regulatory reporting — all with strict SLA requirements and zero tolerance for data loss.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Internal Banking Applications
    │  (mTLS + JWT, internal network only)
    ▼
Street HTTP Server (internal API)
    ├── securityHeaders (HSTS, CSP, COOP)
    ├── authMiddleware (JWT, role-based)
    ├── requireRoles (teller / manager / auditor / admin)
    ├── RateLimiter (per-employee, per-branch)
    ├── csrfMiddleware
    ├── Router → Controllers → Services
    │       └── PgPool.transaction() (ACID, serializable isolation)
    ├── StreetMigrationRunner (schema versioning)
    ├── Vault (KEK-encrypted PII and credentials)
    └── TelemetryTracker (SLA monitoring)

ClusterCoordinator
    └── Multi-core primary + workers (zero-downtime rolling restart)

Street features used

Benefits

Example project ideas

Project Key Street features
Core banking API ACID transactions, vault (PII), RBAC, migrations, clustering
Account management service PostgreSQL, JWT, RBAC, OpenAPI, health endpoint
Loan origination system ACID transactions, vault, RBAC, PostgreSQL, audit log
Regulatory reporting API PostgreSQL streaming queries, JWT, rate limiting
Branch teller application backend JWT, RBAC, CSRF, sessions, PostgreSQL
Fraud detection service Rate limiting, PostgreSQL, SSE (real-time alerts), telemetry

9. IoT Platforms

Description

IoT platforms ingest telemetry from thousands or millions of devices, store time-series data, trigger automations, and push configuration updates back to devices. They need high-throughput ingestion, efficient connection management, and reliable outbound messaging.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
IoT Devices (sensors, actuators, gateways)
    │  (HTTPS REST or WebSocket)
    ▼
Street HTTP Server (ingestion API)
    ├── authMiddleware (device JWT or API key)
    ├── RateLimiter (per-device-ID)
    ├── Router → TelemetryController
    │       └── PgPool (time-series insert)
    └── WebhookDispatcher (automation triggers)

Street WebSocket Server (device command channel)
    ├── authFn (device certificate / JWT)
    ├── StreetSocket (per-device bidirectional channel)
    └── broadcast (fleet-wide config push)

SseConnection
    └── Dashboard clients (live device feed)

Street features used

Benefits

Example project ideas

Project Key Street features
Smart home hub backend WebSocket (device commands), PostgreSQL, SSE (dashboard), webhooks
Industrial sensor platform High-throughput REST ingestion, PostgreSQL, rate limiting, clustering
Fleet management system WebSocket (GPS stream), PostgreSQL, SSE (live map), JWT
Agricultural monitoring REST ingestion, PostgreSQL time-series, SSE (alerts), webhooks
Smart city infrastructure Clustering, PostgreSQL, WebSocket, rate limiting, telemetry
Energy management platform PostgreSQL, SSE (live consumption), webhooks (threshold alerts)

10. Healthcare Systems

Description

Healthcare systems handle protected health information (PHI) under regulations like HIPAA, GDPR, and HL7 FHIR. They require end-to-end encryption, strict access control, comprehensive audit logging, and zero-downtime deployments. Street’s vault mode, RBAC, and ACID transactions address these requirements directly.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Clinical Applications / Patient Portal
    │  (HTTPS + JWT)
    ▼
Street HTTP Server
    ├── securityHeaders (HSTS, CSP, COOP)
    ├── authMiddleware (JWT, short expiry)
    ├── requireRoles (patient / nurse / doctor / admin)
    ├── csrfMiddleware
    ├── xssMiddleware
    ├── Router → Controllers → Services
    │       └── PgPool.transaction() (ACID)
    ├── Vault (PHI encryption at rest)
    ├── StreetMigrationRunner (auditable schema changes)
    └── WebhookDispatcher (HL7 FHIR event notifications)

Street features used

Benefits

Example project ideas

Project Key Street features
Electronic health record (EHR) API Vault (PHI), RBAC, ACID transactions, migrations, audit log
Patient portal backend JWT, sessions, CSRF, PostgreSQL, SSE (appointment reminders)
Telemedicine platform WebSocket (video signaling), JWT, PostgreSQL, rate limiting
Lab results service Vault, JWT, RBAC, PostgreSQL, webhooks (HL7 notifications)
Appointment scheduling system PostgreSQL, JWT, SSE (real-time availability), CSRF
Medical device data ingestion REST API, rate limiting, PostgreSQL, clustering

11. Education Platforms

Description

Education platforms — LMS systems, online course platforms, coding bootcamps, assessment tools — serve diverse user populations (students, instructors, administrators) with different access levels, real-time collaboration needs, and large media assets.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
Students / Instructors / Admins
    │
    ▼
Street HTTP Server
    ├── authMiddleware (JWT)
    ├── requireRoles (student / instructor / admin)
    ├── RateLimiter (quiz submission rate limiting)
    ├── MultipartParser (assignment uploads, video)
    ├── Router → Controllers → Services
    │       └── PgPool → PostgreSQL
    ├── StreetWebSocketServer (live classroom)
    ├── SseConnection (progress notifications)
    └── WebhookDispatcher (grade webhooks to SIS)

Street features used

Benefits

Example project ideas

Project Key Street features
LMS backend (Moodle alternative) JWT, RBAC, PostgreSQL, file uploads, SSE, webhooks
Online coding platform WebSocket (live code execution), JWT, PostgreSQL, rate limiting
Video course platform Multipart uploads, PostgreSQL, LRU cache, JWT, SSE
Assessment and quiz engine Rate limiting, PostgreSQL, JWT, RBAC, CSRF
Student progress tracker PostgreSQL, SSE (live progress), JWT, OpenAPI
Virtual classroom WebSocket, JWT, PostgreSQL, clustering

12. Media Platforms

Description

Media platforms — video streaming services, podcast hosts, image galleries, news aggregators, live streaming backends — handle large binary assets, high read throughput, real-time viewer counts, and content delivery pipelines. Street’s streaming multipart parser and WebSocket broadcast are central here.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
Content Creators / Viewers
    │
    ▼
Street HTTP Server
    ├── authMiddleware (JWT)
    ├── RateLimiter (upload rate, API calls)
    ├── MultipartParser (video / audio / image upload → object storage)
    ├── Router → Controllers → Services
    │       └── PgPool → PostgreSQL (metadata, comments, likes)
    ├── StreetWebSocketServer (live viewer count, live chat)
    ├── SseConnection (notification feed)
    ├── LruCache (hot content metadata)
    └── WebhookDispatcher (CDN purge, transcoding triggers)

Street features used

Benefits

Example project ideas

Project Key Street features
Video hosting platform Multipart uploads, PostgreSQL, LRU cache, webhooks (transcoding)
Podcast hosting backend Multipart uploads, PostgreSQL, SSE (new episode alerts), JWT
Live streaming platform WebSocket (live chat, viewer count), JWT, PostgreSQL, clustering
Photo sharing platform Multipart uploads, PostgreSQL, LRU cache, JWT, rate limiting
News aggregator API PostgreSQL, LRU cache, SSE (breaking news), OpenAPI
Music streaming backend PostgreSQL, JWT, LRU cache, rate limiting, SSE

13. Enterprise Software

Description

Enterprise software — ERP systems, CRM platforms, HR management, supply chain tools — serves large internal user bases with complex permission hierarchies, integration requirements, and strict audit trails. Street’s DI container, RBAC, and ACID transactions map directly to enterprise patterns.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Enterprise Users (web, desktop clients)
    │  (SSO JWT or SAML-to-JWT bridge)
    ▼
Street HTTP Server
    ├── securityHeaders
    ├── authMiddleware (JWT from SSO)
    ├── requireRoles (employee / manager / director / admin)
    ├── csrfMiddleware
    ├── Router → Controllers → Services (DI container)
    │       └── PgPool.transaction() (ACID)
    ├── StreetMigrationRunner (schema versioning)
    ├── Vault (sensitive config at rest)
    ├── TelemetryTracker (SLA monitoring)
    └── WebhookDispatcher (ERP integration events)

Street features used

Benefits

Example project ideas

Project Key Street features
ERP backend ACID transactions, RBAC, DI container, migrations, vault, telemetry
CRM platform PostgreSQL, JWT, RBAC, OpenAPI, webhooks (Salesforce sync)
HR management system Vault (PII), RBAC, PostgreSQL, CSRF, migrations
Supply chain management ACID transactions, PostgreSQL, webhooks, clustering
Project management tool PostgreSQL, JWT, WebSocket (live updates), SSE, RBAC
Document management system Multipart uploads, PostgreSQL, JWT, RBAC, LRU cache

14. AI Infrastructure

Description

AI infrastructure backends — model serving APIs, training job orchestrators, vector database proxies, RAG pipelines, AI agent frameworks — need high-throughput request handling, streaming response delivery, and reliable job queuing. Street’s SSE streaming and PostgreSQL integration make it a strong foundation for AI-adjacent services.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
AI Clients (web apps, agents, notebooks)
    │
    ▼
Street HTTP Server
    ├── authMiddleware (JWT or API key)
    ├── RateLimiter (per-user token budget)
    ├── Router → InferenceController
    │       ├── SseConnection (streaming token output)
    │       ├── PgPool (conversation history, embeddings)
    │       └── WebhookDispatcher (async job completion)
    ├── MultipartParser (document / image upload for RAG)
    └── LruCache (embedding cache, prompt cache)

Street features used

Benefits

Example project ideas

Project Key Street features
LLM inference API SSE (token streaming), JWT, rate limiting, PostgreSQL (history)
RAG pipeline backend Multipart (doc upload), PostgreSQL (pgvector), LRU cache, JWT
AI agent orchestrator WebSocket (agent events), PostgreSQL (state), webhooks, clustering
Embedding service REST API, LRU cache, PostgreSQL, rate limiting, OpenAPI
AI-powered search backend PostgreSQL (pgvector), JWT, rate limiting, SSE (streaming results)
Model fine-tuning job API Multipart (dataset upload), PostgreSQL (job queue), webhooks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Streaming LLM response via SSE
@Get('/chat/stream')
async streamChat(ctx: StreetContext): Promise<void> {
  const sse = createSse(ctx.res);
  const prompt = ctx.query['q'] ?? '';

  // Stream tokens from your inference engine
  for await (const token of inferenceEngine.stream(prompt)) {
    sse.send({ event: 'token', data: { text: token } });
  }

  sse.send({ event: 'done', data: { finish_reason: 'stop' } });
  sse.close();
}

15. Cybersecurity Platforms

Description

Cybersecurity platforms — SIEM systems, vulnerability scanners, threat intelligence feeds, SOC dashboards, penetration testing tools, and security automation platforms — need high-throughput event ingestion, real-time alerting, tamper-proof audit logs, and strict access control. Street’s security-first design makes it uniquely suited here.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
Security Agents / Sensors / SIEM Integrations
    │  (HTTPS + HMAC-signed payloads)
    ▼
Street HTTP Server (event ingestion)
    ├── authMiddleware (JWT, short expiry)
    ├── requireRoles (analyst / engineer / admin)
    ├── RateLimiter (per-agent, per-source)
    ├── Router → EventController
    │       └── PgPool (event store, IOC database)
    ├── StreetWebSocketServer (SOC live feed)
    ├── SseConnection (alert stream to dashboard)
    ├── WebhookDispatcher (SIEM / ticketing integrations)
    └── Vault (API keys for threat intel feeds)

Street features used

Benefits

Example project ideas

Project Key Street features
SIEM event ingestion API Rate limiting, PostgreSQL, JWT, webhooks, clustering
SOC real-time dashboard WebSocket, SSE, JWT, RBAC, PostgreSQL
Threat intelligence platform Vault (API keys), PostgreSQL, JWT, LRU cache, OpenAPI
Vulnerability scanner backend REST API, PostgreSQL, JWT, RBAC, webhooks (ticket creation)
Security automation platform Webhooks, PostgreSQL, JWT, rate limiting, clustering
Incident response system ACID transactions, RBAC, PostgreSQL, SSE (live timeline)

16. Government Systems

Description

Government systems — citizen portals, permit management, tax filing platforms, public records APIs, emergency services backends — operate under strict compliance frameworks (FedRAMP, FISMA, GDPR, WCAG) and require the highest levels of security, auditability, and availability.

Typical architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Citizens / Government Staff
    │  (HTTPS + MFA-backed JWT)
    ▼
Street HTTP Server
    ├── securityHeaders (HSTS preload, CSP, COOP, CORP)
    ├── authMiddleware (JWT from identity provider)
    ├── requireRoles (citizen / clerk / supervisor / admin)
    ├── csrfMiddleware
    ├── xssMiddleware
    ├── RateLimiter (per-citizen, per-IP)
    ├── Router → Controllers → Services (DI)
    │       └── PgPool.transaction() (ACID)
    ├── StreetMigrationRunner (auditable schema changes)
    ├── Vault (PII encryption at rest)
    ├── MultipartParser (document submissions)
    ├── TelemetryTracker (uptime SLA monitoring)
    └── ClusterCoordinator (high availability)

Street features used

Benefits

Example project ideas

Project Key Street features
Citizen portal backend Vault (PII), RBAC, CSRF, XSS, HSTS, PostgreSQL, multipart
Permit management system ACID transactions, RBAC, migrations, PostgreSQL, file uploads
Tax filing platform Vault (PII), CSRF, RBAC, PostgreSQL, rate limiting, clustering
Public records API JWT, OpenAPI, PostgreSQL, rate limiting, CORS
Emergency services dispatch WebSocket (real-time dispatch), PostgreSQL, clustering, telemetry
Benefits administration system Vault, RBAC, ACID transactions, PostgreSQL, migrations, audit log

Framework comparison

Street is positioned as a general-purpose production backend framework comparable to the following:

Framework Language Street advantage
Express JavaScript TypeScript-first, memory bounds, built-in security, native PostgreSQL
Fastify JavaScript/TypeScript Built-in auth, sessions, WebSocket, PostgreSQL — no plugin ecosystem needed
NestJS TypeScript Lighter DI, no class-validator/class-transformer dependency, native wire protocol
Spring Boot Java Same production-grade features, Node.js ecosystem, faster cold start
ASP.NET Core C# TypeScript-first, no runtime license, same security depth
Laravel PHP Statically typed, memory-safe, no ORM overhead, native async
Django Python Async-native, TypeScript types, no GIL, horizontal scaling via clustering
Gin / Echo Go Richer built-in feature set (auth, sessions, WebSocket, migrations)

Street does not require you to assemble a security stack from separate packages. JWT, sessions, rate limiting, XSS sanitization, CSRF protection, security headers, CORS, vault encryption, and HMAC-signed webhooks are all included and integrated.


Choosing Street for your project

Use Street when you need:

1
2
3
npm install -g @streetjs/cli
street create my-project
cd my-project && npm install && street dev

Street is MIT-licensed and runs on Node.js 20+. See the Getting Started guide to scaffold your first project in under 60 seconds.