
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@texturehq/device
Advanced tools
A type-safe TypeScript client for working with device data in the Texture platform. This package provides strongly-typed interfaces and utilities for querying and validating device information, manufacturers, and device models.
npm install @texturehq/device
# or
yarn add @texturehq/device
import { getManufacturers, getManufacturer, Manufacturer } from "@texturehq/device";
// Get all manufacturers
const listManufacturers = async () => {
const response = await getManufacturers();
const manufacturers: Manufacturer[] = response.manufacturers;
// Work with strongly-typed manufacturer data
manufacturers.forEach(manufacturer => {
console.log(manufacturer.name, manufacturer.slug);
});
};
// Get a specific manufacturer
const getSpecificManufacturer = async () => {
const manufacturer = await getManufacturer({ slug: "bmw" });
console.log(manufacturer.name, manufacturer.supportedRegions);
};
import { getDeviceModels, getDeviceModel, DeviceModel } from "@texturehq/device";
// Get all device models
const listDeviceModels = async () => {
const response = await getDeviceModels();
const models: DeviceModel[] = response.deviceModels;
// Access strongly-typed model information
models.forEach(model => {
console.log(model.name, model.manufacturer, model.capabilities);
});
};
// Get a specific device model
const getSpecificModel = async () => {
const model = await getDeviceModel({ slug: "i4-edrive40" });
console.log(model.name, model.specifications);
};
The package exports several TypeScript interfaces for working with device data:
Manufacturer - Represents a device manufacturerDeviceModel - Represents a specific model from a manufacturerDevice - Represents an individual device instanceDeviceCapability - Describes what a device can doRegion - Represents supported geographical regionsManufacturersResponse - Response structure for manufacturer queriesDeviceModelsResponse - Response structure for device model queriesAll API methods can throw the following errors:
import { DeviceError } from "@texturehq/device";
try {
const manufacturer = await getManufacturer({ slug: "invalid-slug" });
} catch (error) {
if (error instanceof DeviceError) {
// Handle device-specific errors
console.error(error.message, error.code);
} else {
// Handle other errors
console.error("Unexpected error", error);
}
}
For more details on using this package and integrating with Texture's device ecosystem, consult our documentation or contact us.
MIT
FAQs
A type-safe client for validating device data
The npm package @texturehq/device receives a total of 220 weekly downloads. As such, @texturehq/device popularity was classified as not popular.
We found that @texturehq/device demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.