Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Typescript client wrapper for 4chan api

3IMAD69/4chan-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4chan-ts

A modern and typed 4chan API wrapper written in TypeScript.

This package provides simple access to 4chan's public JSON API, supporting boards, threads, and posts with full type safety.

✨ Features

  • 🌀 Supports all public endpoints of the 4chan API
  • ⚡ Built in TypeScript for type safety and modern dev experience
  • 🧪 Lightweight
  • 🚀 Bun-first, Node/npm-compatible

📦 Installation

Using Bun

bun add 4chan-ts

Using [NPM]

npm install 4chan-ts

Quick Start

import { FourChanClient } from "4chan-ts";


(async ()=>{
  const chan = new FourChanClient();

  const {data , error} = await chan.getBoards();
  if (error)
  {
    console.error(error);
    return ;
  }
  console.log(data); // const data: BoardList
})()

About

Typescript client wrapper for 4chan api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published