so i was just using a simple API utility helper in my projects when i need
feats:
- Unified API wrapper: A single, strongly-typed interface for all HTTP methods (GET, POST, PUT, PATCH, DELETE, or your provided method). so no more repetitive fetch boilerplate.
- Type-safe requests and responses: uses TypeScript generics to ensure compile-time safety for both request bodies and responses.
- Structured error handling: Provides a custom
- Flexible content-type: Defaults to application/json but allows overrides for any content-type. Works with Blob, FormData, ArrayBuffer, and strings.
- Query parameter support: Accepts a query object and automatically serializes it into a URL query string.
- Base URL support: Easily prepend a base URL to relative endpoints to avoid repeating paths.
- Timeout support: Abort requests automatically using a timeoutMs option.
it's like 168 lines of code. so you can just copy and put it in some file.
repo:
- https://github.com/AmanuelCh/rest-fetch
#MyProjects #rest_fetch
fetch requests, and thought it'd be helpful if i enhance it and let others use it too. so if you have a usecase for it or not using tanstack, check it outfeats:
- Unified API wrapper: A single, strongly-typed interface for all HTTP methods (GET, POST, PUT, PATCH, DELETE, or your provided method). so no more repetitive fetch boilerplate.
- Type-safe requests and responses: uses TypeScript generics to ensure compile-time safety for both request bodies and responses.
- Structured error handling: Provides a custom
ApiError with message, status, code, and optional details for consistent error management.- Flexible content-type: Defaults to application/json but allows overrides for any content-type. Works with Blob, FormData, ArrayBuffer, and strings.
- Query parameter support: Accepts a query object and automatically serializes it into a URL query string.
- Base URL support: Easily prepend a base URL to relative endpoints to avoid repeating paths.
- Timeout support: Abort requests automatically using a timeoutMs option.
it's like 168 lines of code. so you can just copy and put it in some file.
repo:
- https://github.com/AmanuelCh/rest-fetch
#MyProjects #rest_fetch
❤8🔥1
Mira
so i was just using a simple API utility helper in my projects when i need fetch requests, and thought it'd be helpful if i enhance it and let others use it too. so if you have a usecase for it or not using tanstack, check it out feats: - Unified API wrapper:…
A little copying is better than a little dependency.
⚡5
i'll either steal my bro's car this year or die trying. done with the taxis 😭
Please open Telegram to view this post
VIEW IN TELEGRAM
😁22😢1
This media is not supported in your browser
VIEW IN TELEGRAM
taking pics at 3am 💐
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9🔥5⚡1
brain decides to sleep.
also brain: your_top_10_cannon_events (deluxe edition).mp4
we need to chill tf out bro😭
also brain: your_top_10_cannon_events (deluxe edition).mp4
we need to chill tf out bro
Please open Telegram to view this post
VIEW IN TELEGRAM
😭8😁3
ladies and gents, it's Friday once again. if you work remote, and don't go to school, you don't relate
😭3
so, i saw this post earlier, and thought of building a cool bot. what if you can create Spotify playlists right from telegram. you can forward songs to it and it will add the songs to the configured Spotify playlist. you can also add the bot as an admin in channels and playlist will be created automatically. well, ended up building SpotGram 🫶 . i have currently implemented the following features:
- song identification from audio files and Spotify search
- add songs to playlist right from telegram
- create and manage multiple Spotify playlists
- SQLite database with automatic migrations
currently it uses Spotify OAuth and it downloads audio files and extracts metadata. then uses the Spotify Web API to search for tracks and manage playlists. and stores user tokens and song history in SQLite. if it becomes any useful, i'll deploy it. main feats once it becomes stable:
- automatic channel monitoring: new songs and existing ones will be automatically added to your active playlist
- robust batch processing: it can handle a bunch of audio files gracefully
- advanced song identification, shazam integration, analytics and stuff
#MyProjects
- song identification from audio files and Spotify search
- add songs to playlist right from telegram
- create and manage multiple Spotify playlists
- SQLite database with automatic migrations
currently it uses Spotify OAuth and it downloads audio files and extracts metadata. then uses the Spotify Web API to search for tracks and manage playlists. and stores user tokens and song history in SQLite. if it becomes any useful, i'll deploy it. main feats once it becomes stable:
- automatic channel monitoring: new songs and existing ones will be automatically added to your active playlist
- robust batch processing: it can handle a bunch of audio files gracefully
- advanced song identification, shazam integration, analytics and stuff
#MyProjects
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥12❤3
This media is not supported in your browser
VIEW IN TELEGRAM
in the meantime, building some stuff too. will be done by next week hopefully
🔥10
maybe she would find me cool if i told her i had 600 subs on an app with no feed algorithm 😔
Please open Telegram to view this post
VIEW IN TELEGRAM
😁14❤13
Mira
who even takes pictures at 4am
saving the city once again.
yes, we do take pictures at this time
yes, we do take pictures at this time
🔥10❤7❤🔥1