
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@vepler/safety-types
Advanced tools
This TypeScript library provides comprehensive type definitions for the Vepler Safety Service API. The service offers location-based crime statistics, safety metrics, and neighbourhood watch data across England and Wales. Our API enables developers to query crime data by geographic area, analyze crime trends over time, calculate crime scores, and access neighbourhood watch scheme information.
The type library follows a route-based organisation structure, with each API endpoint having dedicated request and response types. This approach ensures type safety, improved developer experience, and seamless integration with the Vepler Safety Service.
src/types/public/
βββ routes/
β βββ catalog/
β β βββ index.ts
β β βββ get-catalog.ts
β βββ crime/
β β βββ index.ts
β β βββ get-area-stats.ts
β β βββ get-category-stats.ts
β β βββ get-crime-data.ts
β βββ geography/
β β βββ index.ts
β β βββ get-metrics.ts
β βββ neighborhood-watch/
β β βββ index.ts
β β βββ get-by-area.ts
β β βββ get-by-location.ts
β β βββ get-scheme-details.ts
β βββ index.ts
βββ index.ts
βββ README.md
// Namespace import (recommended)
import { CatalogTypes, CrimeTypes, GeographyTypes, NeighborhoodWatchTypes } from '@vepler/safety-types';
// Specific import
import { GetCatalogQueryParams, GetCatalogResponse } from '@vepler/safety-types/routes/catalog';
// Direct route import
import { GetMetricsQueryParams, GetMetricsResponse } from '@vepler/safety-types/routes/geography';
β’ Route-based organisation: Each API route has its own namespace with dedicated request/response types β’ Consistent naming: All types follow {EndpointName}QueryParams and {EndpointName}Response conventions β’ Error handling: Standardised {RouteName}ErrorResponse types for each route namespace β’ Type safety: Explicit TypeScript interfaces with comprehensive JSDoc documentation β’ Modern standards: Current API specifications with clean, consistent interfaces β’ Extensibility: Modular structure allows easy addition of new routes and endpoints
β’ Route isolation: Types are organised by API route, making them easier to locate and maintain β’ Namespace clarity: Import exactly what you need without type name conflicts β’ IntelliSense support: Full autocomplete and type checking in modern IDEs β’ Documentation: Rich JSDoc comments provide context and usage examples β’ Stable contracts: Well-defined API interfaces ensure consistent integration experience β’ Build safety: TypeScript compilation failures prevent deployment of broken type definitions β’ Validation ready: Types designed to work seamlessly with runtime validation libraries β’ Future-proof: Scalable structure ready for new API endpoints and features
Build the types library:
pnpm build:types
Import in your project:
import { GeographyTypes } from '@vepler/safety-types';
// or
import { GetMetricsQueryParams } from '@vepler/safety-types/routes/geography';
FAQs
TypeScript type definitions for Vepler Safety Service API
We found that @vepler/safety-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.