npm emoji

Posts tagged with :npm:

reesericci
@reesericci0
:scratch: :shipitparrot: SCRATCH SHIP: SSH FOR SCRATCH!!!:scratch: :shipitparrot: The past week I've been working on getting SSH over WebSockets working to allow for building SSH apps with TurboWarp, a Scratch fork with custom extensions. It required me to write Go code compiled for WebAssembly to get a full client working, but it does work! Introducing, turbowarp.sh - building blocks for SSH apps in Scratch. It allows you to connect to any Linux server provided it has a WebSocket tunnel to SSH (see websocat/websockify) like Nest! You can execute commands, have full programming control flow with Scratch, and more! You can try this extension today at turbowarp.org/editor?extension=https://cdn.jsdelivr.net/npm/turbowarp.sh/dist/bundle.min.js ,or by loading bundle.min.js in the turbowarp.sh package through a NPM CDN (like jsdelivr) from the "Custom Extensions" tile. Git: sr.ht/~reesericci/turbowarp.sh NPM: www.npmjs.com/package/turbowarp.sh
https://scrapbook-into-the-redwoods.s3.amazonaws.com/b7f7fc31-4b75-4f87-8a45-352ccfabd193-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/5e0c01ba-d8eb-43f7-9133-0198c5401a86-image.pnghttps://imgutil.s3.us-east-2.amazonaws.com/dc2026edfd9eb8e3fb7625e27617881dabd275cd65a21dd4e3a07e14eb2c2aee/fc289a90-1ad0-4759-a2cd-a058d6c2f809.png
jzaleta
@jzaleta0
I finally finished my confetti thing for #angelhacks-site! :angelhacks: github.com/hackclub/angelhacks3/pull/8 :pr: This is my first time working with Next.js :nextjs: and I wanted to see if I could code something with it without reading any docs! *How?* • Well, first I had an error, I couldn't start the dev environment! :pensive-wobble: To fix this I (somehow) installed next globally and that allowed my package.json :npm: to run next build • After that, I wrote the confetti code and implement it on a React :react: component but I also don't know any react so it didn't work :eggsdee: • So I added the confetti code into the already existing PhotoGallery component! :yay: Everything looked good, but then I got this error: ReferenceError: document is not defined :errors: • To fix that, I run my code client side after watching a small tutorial and it ended up like this:
import Masonry from 'react-masonry-css'
import styles from './PhotoGallery.module.scss'
import { Nunito } from 'next/font/google'
import { useEffect } from 'react'

const nunito = Nunito({
  weight: ['400', '800'],
  subsets: ['latin']
})

export function Button({ children, fontSize = '7rem', ...props }) {
  const handleClick = () => {
    import('js-confetti').then(({ default: Confetti }) => {
      const confetti = new Confetti()
      confetti.addConfetti({
        emojis: ['🎮', '👾', '🕹️', '💻', '📸', '🎧', '🎨', '🪽']
      })
    })
  }

  return (
    <button className={styles.button} onClick={handleClick} {...props}>
      <span className={styles.shadow} />
      <span className={styles.edge} />
      <span
        style={{ fontSize }}
        className={`${styles.front} ${nunito.className}`}>
        {children}
      </span>
    </button>
  )
}

function Image({ src, text }) {
  return (
    <div className={styles.photo}>
      <img src={src} width="auto" />
      <p>{text}</p>
    </div>
  )
}

export default function PhotoGallery() {
  useEffect(() => {}, [])
  return (
    <div className={styles.photoGallery}>
      <div className={styles.photos}>
This was very fun to work with, and definitely I need to properly learn Next.js on the future. :salute:
KaiPereira-U04HJGA76H2
@KaiPereira-U04HJGA76H20
Made a fun little npx package today: www.npmjs.com/package/create-mern-ts-next-app. It let's you create a full MERN app using the command npx create-mern-ts-next-app app (Don't mind the crazy name lol [on a side note, I'm only slightly sure it works for everyone XD]). I was kinda bored in robotics class so I just cooked this up today. You can check out the code here: github.com/KaiPereira/create-mern-app-kaipereira (for the executable) and here for the template: github.com/KaiPereira/template-for-create-mern-app
https://cloud-96h7el1mz-hack-club-bot.vercel.app/0image.png
wom emoji
npm emoji
typescript emoji
jzaleta
@jzaleta0
Today I selected the Dalle-2 images I'll use for the profile picture workshop! I generated them with the app some time ago. I also finished a V1 version of the code, but it stopped working because some errors on the package.json file :npm: . Also I made my own .gitignore file for this project!
https://cloud-l6y7d1002-hack-club-bot.vercel.app/0exploration-cabin.pnghttps://cloud-2y2fpa3kn-hack-club-bot.vercel.app/0forest-astronaut.pnghttps://cloud-ez9snnzl2-hack-club-bot.vercel.app/0grassland-robot.png
jzaleta
@jzaleta0
Today I learned a bit more on how npm :npm: works, made a small test site with Astro :astro: to understand deployment and changed my VScode theme to Vitesse! :vsc:
https://cloud-dx4ws4x97-hack-club-bot.vercel.app/0captura_de_pantalla_2023-01-08_a_la_s__22.15.07.png
goose-honk-technologist emoji
npm emoji
wom emoji
vsc emoji
matthew
@matthew0
day 10 of #10-days-in-public: i'm currently running a purdue hackers hack night!!! for this hack night i changed the current time to display in lightning time ⚡ i imported my own npm package for the first time ever, which felt super duper weird. i also started working writing the explainer blog post, which is coming along nicely but i'm still not ready to share unfortunately :flooshed: i had a lot of fun working on this. it felt so good to be put back in a creative state, and #10-days-in-public really helped. thanks for the support :hug: @zrl can i have fudge now plz
https://cloud-eb5uzk7mb-hack-club-bot.vercel.app/0screen_shot_2022-10-14_at_8.13.55_pm.pnghttps://cloud-ovs2pd2xm-hack-club-bot.vercel.app/0screen_shot_2022-10-14_at_8.14.12_pm.png
matthew
@matthew0
day 5 of #10-days-in-public: @purduehackers/time version 0.1 is out, now featuring some basic docs and an overhauled api! while writing them i thought of a few more thing this package needs. will probably add those tomorrow. i want to start setting up an mdx blog soon & start writing a blog post about lightning time. hoping to do that asap this week, maybe when i'm back home.
https://cloud-5mlor3795-hack-club-bot.vercel.app/0screen_shot_2022-10-10_at_12.28.16_am.png
matthew
@matthew0
day 4 of #10-days-in-public: i've been working on a raycast extension for lightning time ⚡ i didn't do very much today, but i closed an issue on the raycast extension. tiny update: charges now appear in the lightning time string, and a new action was added to allow you to copy the string without the charges. tomorrow probably also won't be a super productive day, but i expect to update the npm package to allow users to change the default color representation.
https://cloud-884ex1ox2-hack-club-bot.vercel.app/0screen_shot_2022-10-08_at_11.53.35_pm.png
matthew
@matthew0
day 3 of #10-days-in-public: today is a travel day so i didn't get a lot done, but i've been making the raycast extension for lightning time that i made a couple days ago better. today i fiddled with regex to make the validation for commands that require you to input a string better. yesterday i added the hex codes for each color when rendering a lightning time string, which i like a lot because it's actually such a cool way to visualize how the colors are generated. (can you see it?) this weekend, i want to finalize the api structure for my npm package, set up a blog for purdue hackers, and start writing the explainer blog post. i would like to ship lightning time before the end of #10-days-in-public :D
https://cloud-kn38byb9o-hack-club-bot.vercel.app/0screen_shot_2022-10-07_at_4.07.40_pm.png
matthew
@matthew0
Day 2 of #10-days-in-public: my npm package is now functional & you can play around with it! massive breaking changes will be made in the coming days but i'm glad there's something up now. www.npmjs.com/package/@purduehackers/time
https://cloud-fw6yqy79e-hack-club-bot.vercel.app/0screen_shot_2022-10-06_at_3.08.57_pm.png
matthew
@matthew0
day 1 of #10-days-in-public: i published an npm package! but don't install it because it doesn't work yet, because i don't know what i'm doing and did it wrong. i have to go to bed but i'll figure out how to make it work tomorrow
https://cloud-3gv8vuaok-hack-club-bot.vercel.app/0screen_shot_2022-10-06_at_2.05.31_am.png
Skyascii
@Skyascii0
Published my very first NPM package, feeling great!
https://cloud-cvb2db0mf-hack-club-bot.vercel.app/0image.png
npm emoji
alex
@alex0
meant to sleep an hour ago 😭 i really need to stop staying up. having fun with reinstalling a broken npm :(
https://cloud-dsftkhq32-hack-club-bot.vercel.app/0image.png
belle
@belle0
hey fwens :wave-pikachu: hope your day is going amazing! today i did math past papers and had a really exciting meeting for a project that i'm working on :)) also, i figured out some adulting stuff like rent and making meals and stuff :flushded:. (attached is the design i created for the ama w/ feross – i'm so excited for the event!!)
https://cloud-h4m812w5f-hack-club-bot.vercel.app/0feross.png
hack-club emoji
js emoji
npm emoji
wom emoji
figma emoji
ian
@ian0
medium sized ship 🚢 Some background: I make a ton of small projects, and end up having to build my own API routes just for a small backend functionality. Parsing, validating, and responding to the requests takes a while to implement and takes time from the project I’m trying to make. That’s why I built <http://github.com/yodalightsabr/function-apis|function-apis>. function-apis is a small express middleware that lets you define functions to automatically be available to the client. With as little as 11 lines of code, you can make an async request to the server and function-apis will handle the HTTP request behind the scenes. :github: github.com/yodalightsabr/function-apis :npm: npmjs.com/package/function-apis also: I think my next project will be an NPM package name finder, because I tried like 20 different package names and they were all taken. :peefest: edit: the package `available` seems to work
https://cloud-b8312og10-hack-club-bot.vercel.app/0image.png
ian
@ian0
🤞 Hopefully NPM gives me access to the conflict package name, because that just so happens to be what my almost finished framework is called, and the conflict package has been empty for 3 years, now with a deprecation message of “lol” :peefest:
https://cloud-7edt7vh0k-hack-club-bot.vercel.app/0image.png
npm emoji
wom emoji
ian
@ian0
I finally learned npm link, how to make exports like module/export, and making cli tools with package.json’s bin
https://cloud-8516avx78-hack-club-bot.vercel.app/0image.png
beachball emoji
js emoji
npm emoji
wom emoji
ArcadeWise
@ArcadeWise0
HELLO I AM BACK WITH A 🚢 ITS COOL YALL WANNA SEE??? Introducing: Dialect! A programming language for people who want to not actually write functional :haskell: code but wanna feel like it. Wanna install the compiler? Run 💻 npm i -g dialect-lang and you can use dialup, the dialect compiler! OR visit raleighwi.se/dialect and run it in your browser :chrome:! You can write webapps with it, or just write code. It compiles down to :js: and I've built a basic stdlib. Feel free to ask questions on how to use it here :) Oh and also here's the source: github.com/l3gacyb3ta/dialect
https://cloud-fjvqmhzoe-hack-club-bot.vercel.app/0image.png
ian
@ian0
I uploaded terminal games to npm so you can now install it and play it wherever
https://cloud-c9bns2uiu-hack-club-bot.vercel.app/0image.png
npm emoji
aom-21 emoji
ian
@ian0
https://cloud-9gy01q111-hack-club-bot.vercel.app/0image.png
aom-21 emoji
raycast emoji
github emoji
npm emoji
ian
@ian0
https://cloud-pwy6pr7m4-hack-club-bot.vercel.app/0image.png
ian
@ian0
Medium-sized ship!! :shipitparrot: 🚢 I just published an NPM package for logging in Node.js. I always thought that the console was boring and that it was hard to find what I needed, so I started working on Stump.js. The finished version has support for enabling/disabling debug mode as well as Discord webhook support. :github: GitHub: github.com/YodaLightsabr/stumpjs :npm: NPM: www.npmjs.com/package/stump.js
https://cloud-hvca02jvk-hack-club-bot.vercel.app/0image.png
ian
@ian0
Made an NPM module for getting Google Form responses
https://cloud-hi0h5v6tq-hack-club-bot.vercel.app/0image.png
npm emoji
google emoji
ultrafastparrot emoji
spring-of-making emoji
yoda emoji
matthewvandyke08
@matthewvandyke080
Using an npm package to create a typerwriter effect for the coming soon text
https://cloud-fpzgrcpyi-hack-club-bot.vercel.app/0screen_shot_2021-06-06_at_9.36.45_pm.png
npm emoji
spring-of-making emoji
christina695
@christina6950
Studied the code of a friend on GitHub, and tried to learn from how she built something, and then try it out myself. ran an NPM install for the first time
https://cloud-eif2jq50r-hack-club-bot.vercel.app/0screen_shot_2021-03-09_at_9.04.39_am.png https://cloud-eif2jq50r-hack-club-bot.vercel.app/1screen_shot_2021-03-09_at_9.05.38_am.png
sporeball
@sporeball0
the argument parser went somewhere! go get it on npm if you want (npm i --save yeow)
https://cloud-9zfw724to-hack-club-bot.vercel.app/0image__2_.png
wom emoji
npm emoji
ella
@ella0
i followed the npm package workshop and published an npm package :npm:
https://cloud-mqfp06r8y.vercel.app/0screen_shot_2021-01-30_at_12.52.56_pm.png
js emoji
wom emoji
npm emoji
ultrafastparrot emoji
safin.singh
@safin.singh0
I've been struggling to put together large-ish completed projects lately so I decided to just go all out and see how much I can get done in a day-ish. I just finished up ankylos (github.com/safinsingh/ankylos) a modular bootstrapper thing for node projects. Here's what it does: 1. Grab a preset to clone from. This will be copied to whatever destination you specify via a tarball from NPM 2. run ankylos bootstrap to read from the ankylos.config.js in the preset. this tells ankylos what plugins to install and configure. for example, the next preset automatically installs and configures the 'editorconfig', 'eslint', 'github', 'husky', 'markdownlint', 'pnpm', 'prettier', 'renovate', and 'vscode' plugins. it'll also send instructions for build scripts to set, dependencies, etc. ankylos will take care of the explicit dependencies in the preset first. then, it'll install your plugins (ive made like 10 of them for convenience) and install your plugin's dependencies (these are stages 1 & 2 of the bootstrap phase) 3. ankylos prompt you for project metadata and will insert your custom build scripts along with this metadata into a fully-filled out and templated package.json file. finally, ankylos will walk through each of your plugins and apply/copy the files specifies in ankylos.config.js 4. from there, pnpm install will bump you in to your new, modular, automatically-bootstrapped, linted, formatted, &lt;insert a bunch more buzzwords&gt; project! i only had enough time to create a next and node preset so be sure to check those out. anyway, i'm glad i was able to follow through with this and i hope y'all like it! p.s: you can check out all 16, yes, 16 projects from the ankylos monorepo on its dedicated npm org: www.npmjs.com/org/ankylos. anyway, i'll try my best to maintain this (it's in my best interest too so thats good) if anyone else decides to use it
https://cloud-g3j9puxcx.vercel.app/0image.png
sampoder
@sampoder0
I’m really proud that I worked this out!! Published smth on :npm:
https://cloud-by78qkrcv.vercel.app/0screenshot_2020-12-27_at_10.51.55_am.png
react emoji
npm emoji
jediparrot emoji
js emoji
wom emoji
rishi
@rishi0
Yellow hellow everyone! It’s the first day of winter break, and now that all my school stuff’s finished (having handed in what might, in hindsight, have been one of the worst essays of my life), I’ve found myself quite pretty bored! I’m going to be challenging myself to build one cool thing every day (and maybe ship it either here or in #rishi if it’s smaller), so here’s the first one! I’ve found myself working with asynchronous hooks in React a lot; whether that be to fetch data or just do timed stuff client-side, the normal integrations just don’t really cut it for me. That’s why I built my own library for those kinds of hooks! @rishiosaur/async is built in Typescript, and has some awesome documentation as a result (Typedoc really comin thru), and has two hooks that I use a lot in my daily React life: usePromiseEffect and useAsyncEffect, both of which are modelled to look like idiomatic React (I’ve attached an example of their usage down below). :githubparrot: You can find the Github repo over at z.rishi.cx/g/async (feel free to star!), :npm: The NPM package over at www.npmjs.com/package/@rishiosaur/async, 🏗️ And the documentation over at async.rishi.cx!
https://cloud-6m79kebkk.vercel.app/0screen_shot_2020-12-22_at_10.27.16_am.png
christina695
@christina6950
Cloned a github repo, ran an npm install, and then modified the file in data.json- first time for all 3!
https://cloud-n5k252jb8.vercel.app/0screen_shot_2020-12-01_at_1.00.40_am.png https://cloud-n5k252jb8.vercel.app/1screen_shot_2020-12-01_at_1.00.01_am.png
sampoder
@sampoder0
https://cloud-cu034q5fr.vercel.app/0screenshot_2020-10-10_at_1.02.14_pm.png
npm emoji
arek123113
@arek1231130
Trying to fix some angular npm errors
https://cloud-bw7uqevgy.vercel.app/0tryingtofix.png
summer-of-making emoji
npm emoji
caleb
@caleb0
I'm gonna try to get @scrappy to react with as many emojis as possible, for no particular reason. When we arrived in space, there were shouts of "yay!" and "hooray!" I wanted to sleep, but the sunset was much too captivating. As I struggled to paint a representation of the masterpiece, my art was cut short by a reminder of our predicament. Our ship's Linux core had been damaged by a rain storm. Upon further inspection, is appeared as though the Rust installation on our ship's robot had been corrupted. We debated which language to replace it with; "Golang!" Matt said. "Swift!" Linus shouted. "Deno!" "JavaScript!" We decided on rewriting the robot's code using minecraft redstone (that way we didn't have to use npm). 15 years later, once we finished, we pushed to the GitHub repository. But wait! The robot's hardware was also severely crippled. We had to 3d print some parts, after getting the models from Google.
https://cloud-8g1w2hstl.vercel.app/0image.png
muirrum
@muirrum0
Learned my lesson about rolling my own CSS aha, and Hack Night helped me remember why I despise NPM and node
https://cloud-8sunadapy.vercel.app/0screenshot-2020-08-23-080348.png
npm emoji
summer-of-making emoji
chetansain86
@chetansain860
Downloads are increasing tremendously
https://cloud-4kgg1vxax.vercel.app/0img_20200720_225729.jpg
npm emoji
summer-of-making emoji
chetansain86
@chetansain860
Published another npm package "newsletter_hook".
https://cloud-1d2jxbtm6.vercel.app/0img_20200714_233402.jpg
summer-of-making emoji
npm emoji
caleb
@caleb0
Just published my first npm package 🎉 Formal ship to come...
https://cloud-duxnctw7w.vercel.app/0ibdwac.png
npm emoji
summer-of-making emoji
yay emoji