anime1-core
v0.2.0
Published
Engine for browsing and downloading from anime1.me. No UI, no runtime dependencies.
Readme
anime1-core
The engine behind anime1-cli. It reads the anime1.me catalogue, resolves episode video URLs, and downloads them. There is no UI and no runtime dependencies, so you can build your own front end on top of it.
Install
npm install anime1-coreNeeds Node.js 20 or newer.
Use
import { fetchCatalog, fetchEpisodes, resolveSource, downloadSource } from 'anime1-core';
const catalogue = await fetchCatalog();
const series = catalogue.find((a) => a.title.includes('Sunshine'));
const episodes = await fetchEpisodes(series.catId);
const source = await resolveSource(episodes[0].apiReq);
await downloadSource(source, './ep1.mp4', {
connections: 6,
onProgress: ({ received, total }) => {
if (total) process.stdout.write(`\r${((received / total) * 100).toFixed(1)}%`);
},
});See the main project for the CLI, the full docs, and the legal notes.
License
MIT. See LICENSE.
