Skip to content

Instantly share code, notes, and snippets.

View AmirSa12's full-sized avatar

AmirHossein Sakhravi AmirSa12

View GitHub Profile

The Story of pkg.pr.new: Development with Continuous Releases

What is pkg.pr.new?

pkg.pr.new, also known as "Continuous Releases," is an innovative tool that revolutionizes how developers access and test unreleased package features. At its core, pkg.pr.new automatically generates preview releases for each commit and pull request in your repository without publishing anything to NPM.

The concept is elegantly simple yet powerful: whenever a commit is pushed or a pull request is created, pkg.pr.new creates an instantly usable version of the package that can be installed directly from a unique URL. This allows users and contributors to test new features or bug fixes without waiting for the official release cycle or even having access to NPM publishing rights.

A typical installation command looks like this:

@AmirSa12
AmirSa12 / SearchBoxN.jsx
Last active March 3, 2025 03:40
Search Results Using Context
import React, { useContext } from 'react'
import { FaSearch } from 'react-icons/fa'
import axios from 'axios'
import { useState } from 'react'
import { useEffect } from 'react'
import { Link } from 'react-router-dom'
import ResultContext from '../../pages/result-context'
function SearchBoxN({searchBox}) {
// Genres issue Fix + Syles
// ADD THE CODE BELOW
const genStyles = {
color: 'black',
fontSize: '15px',
borderRadius: '20px',
border: '1px solid black',
padding: '4px',