News for hackers. Stuff that matters.

velut

Re:Firefox Address Bar Tips on Monday July 10, 2023 @04:59PM (#36672880)
I don't think so. I use Sidebery and their recommended approach is to edit userChrome.css. It's not too bad and works well. See https://github.com/mbnuqw/sidebery/wiki/Firefox-Styles-Snipp....
Re:Firefox Address Bar Tips on Monday July 10, 2023 @11:11AM (#36667589)
The search input provided by a website. You can try with the one in the footer of Hacker News and it works. See https://imgur.com/oxqMw6D
Re:Firefox Address Bar Tips on Monday July 10, 2023 @10:45AM (#36667245)
Right click inside a search box. There should be the option "Add a Keyword for this search".
Re:Firefox Address Bar Tips on Monday July 10, 2023 @10:15AM (#36666784)
You can press Ctrl+K or type a `?` before the search query and Firefox will use your default search engine without expanding the bookmark macro.
Re:Firefox Address Bar Tips on Monday July 10, 2023 @10:12AM (#36666737)
This is one of my favorite features that I use daily.

I use the URL "https://www.google.com/search?q=site:ycombinator.com+%s" to search content from HN, and "https://www.google.com/search?q=site:reddit.com+%s" to search on Reddit. I also have "https://www.npmjs.com/package/%s" to directly go to a package page on npm.

Re:Companies must stop using Google Analytics on Tuesday July 04, 2023 @10:11AM (#36586959)
I recently deployed a static website on Bunny.net using their object storage and their CDN and they make available logs in this format https://docs.bunny.net/docs/cdn-log-format.
Hi,

This is a simple web app that I created to add grids and stylize images and pixel art, for an example see [1].

I used Sveltekit for the website, DaisyUI/Tailwind for the styling, Superforms to handle user inputs and custom code using the canvas API for rendering images.

You can check out the repository at: https://github.com/velut/gridify.it.

[1]: https://www.gridify.it/examples/06.jpg

Re:Sunsetting Atom on Saturday June 11, 2022 @09:37AM (#31704327)
I made a website that uses bookmarklets just for that.

https://www.videospeedup.com/

Hi,

I'm the author of the website mentioned by zebracanevra that does just that.

When a user requests the documentation for a package hosted on npm, a lambda function (Vercel/AWS) runs the analysis process using the TypeScript compiler.

The TS compiler is slow though and this process can take several seconds to finish for packages of medium and larger sizes (you can see the exact time at the bottom of a generated documentation page).

Thank you!

Yes, I use prism-react-renderer for syntax highlighting.

I did not know about Shiki, but I'll look into it.

Thank you for your question, I don't have experience with Docusaurus but I'll try to list a few ideas, let me know if it can help you.

If you only need raw package metatada (signatures, docs...) that Docusaurus will render somehow at build time you may use my extractor which outputs a plain Javascript object with the collected information (see https://github.com/jsdocs-io/extractor/blob/main/test/packag...).

If you need pre-rendered docs that Docusaurus will embed in a page you may implement something like a React component (see https://github.com/jsdocs-io/web/blob/main/src/components/pa...) and use the raw metadata as component props.

If you need a pre-rendered page that Docusaurus will collect, you may want to look into https://www.npmjs.com/package/@microsoft/api-extractor which can directly output Markdown files (as well as JSON files) but requires some initial setup to get working.

Thank you for your kind words!

Your LSIF approach sounds interesting, I'll look into it.

Another documentation host I know of is https://hexdocs.pm/ for Elixir packages.

Hi HN,

After working on a mixed Go/Javascript project and wishing there was something similar to GoDoc for npm packages, I started working on jsDocs.io with the objective of it being the easiest way to generate and view the public API and documentation of npm packages.

Currently, jsDocs.io supports packages that contain Typescript source files (.ts) or definition files (.d.ts); you can check out some packages below.

The project is open source and available on GitHub at https://github.com/jsdocs-io

I'm happy to answer your questions.

https://www.jsdocs.io/package/query-registry

https://www.jsdocs.io/package/faastjs

https://www.jsdocs.io/package/got

Re:Show HN: GoDoc for NPM Packages on Monday December 21, 2020 @12:46PM (#25497292)
Hi, thanks for your feedback.

Javascript-only packages are not currently supported but Typescript packages or @types packages are.

For example check the faastjs[1] package, you can see plenty of information about its API.

[1]: https://www.jsdocs.io/package/faastjs/v/5.3.8