An adapter allowing access to the niyaniya.moe data source.
- Install the
@riffyh/adapter-niyaniyapackage.
bun add @riffyh/adapter-niyaniya- Add the adapter to your server configuration.
import { niyaniya } from "@riffyh/adapter-niyaniya";
import type { Config } from "@riffyh/commons";
const config: Config = {
dataSources: [
niyaniya({
crt: "<crt key>",
userAgent: "<browser user agent>",
}),
],
};
export default config;- Type:
string - Required: Yes
Specifies the crt key for niyaniya.moe. You can obtain this key by monitoring network traffic in your browser's DevTools. The crt token should appear in the query parameters of certain requests (try navigating through a couple of galleries to find it).
Note: This key may need to be rotated periodically.
- Type:
string - Required: Yes
The browser user agent used when obtaining the crt token. You can sniff this from the fetch request headers or by running navigator.userAgent in your browser's DevTools console.