An open API service indexing awesome lists of open source software.

https://github.com/typed-sigterm/un-oj

Unified Online Judge information collector.
https://github.com/typed-sigterm/un-oj

acm competitive-programming icpc oi olympiad-in-informatics online-judge unified

Last synced: 4 months ago
JSON representation

Unified Online Judge information collector.

Awesome Lists containing this project

README

          


UnOJ


JSR



Unified information collector of online competitive programming platforms.

## Usage

Install `un-oj` from NPM, or `@un-oj/core` from JSR.

```ts
import Codeforces from '@un-oj/core/platforms/codeforces'; // If installed from JSR
// import Codeforces from 'un-oj/platforms/codeforces'; // If installed from NPM

const cf = new Codeforces();
console.log(await cf.getProblem('1A'));
```

Currently supported platforms:

- [AtCoder](https://jsr.io/@un-oj/core/doc/platforms/atcoder) (`/platforms/atcoder`)
- [Codeforces](https://jsr.io/@un-oj/core/doc/platforms/codeforces) (`/platforms/codeforces`)
- [Hydro](https://jsr.io/@un-oj/core/doc/platforms/hydro) (`/platforms/hydro`)
- [LeetCode](https://jsr.io/@un-oj/core/doc/platforms/leetcode) (`/platforms/leetcode`)
- [Lyrio](https://jsr.io/@un-oj/core/doc/platforms/lyrio) (LibreOJ) (`/platforms/lyrio`)
- [Luogu](https://jsr.io/@un-oj/core/doc/platforms/luogu) (`/platforms/luogu`)
- [MXOJ](https://jsr.io/@un-oj/core/doc/platforms/mxoj) (`/platforms/mxoj`)

Documents are available on [JSR](https://jsr.io/@un-oj/core/doc).

## Compataility

UnOJ uses internal APIs, or parses HTML from some OJ, which may be changed at
any time. If you encountered any problems, feel free to open an issue.

## Acknowledgements

- [洛谷 API 文档](https://0f-0b.github.io/luogu-api-docs/)