Our great sponsors
|6 days ago||9 days ago|
|Apache License 2.0||Apache License 2.0|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Ten Years of TypeScript
8 projects | news.ycombinator.com | 1 Oct 2022
> But they admitted namespaces, enums
And decorators. But this was very early on and they won’t ever do it again unless there’s a drastic change on principle and probably a reorg of global proportion. They categorically reject anything with runtime implications now, and to the point of decorators are actively working to align them with the standard as it’s approaching stability.
> and interfaces into the language (the latter becoming more and more confusing as type aliases got more expressive) […] Is "as", "is", or "satisfies" expression-level?
No. All of this is completely separate from the runtime and on a standards course to be treated effectively as comments.
> But the enums!
I’m one of the minority who actually likes TS enums, but I strongly suspect they’ll be deprecated, alongside namespaces, as soon as there’s general consensus around types as comments. The TypeScript team considers these mistakes and would very much like to be able to drop them. I’d welcome that too even though I quite like enums.
The fact is TS has considerable backwards compatibility expectations, and aligning their mistakes with their goals is great on principle but something which would require thousands upon thousands of hours of labor for people to accommodate.
You can snipe all you want, but if you think it’s that easy to resolve maybe I can direct you to https://github.com/microsoft/TypeScript/pulls
I’m not affiliated with the team in any way but I’m almost totally certain they’d welcome a contribution that gets them closer to their stated principles where historical designs are entrenched, without breaking workflows for thousands of people and interrupting releases for millions.8 projects | news.ycombinator.com | 1 Oct 2022
TypeScript has lots of great features and a few bizarrely bad ones. It’s great in spite of itself.
I’m curious, how many people are using TSC only for type-checking, and a different system (eg esbuild or ts-node) to actually compile/bundle/execute their code?
I think TypeScript would be even stronger if they focused fully on type-checking, and relaxed some of those dogmatic restrictions (and the many, many confusing config options) imposed by the JS code generator.
[AskJS] Do you consider ESM to have more benefits than drawbacks in node?
Because it's implicit, CJS creates a bunch of resolution issues with Typescript, to the point where if you want to code for the browser, you can't easily can't and have to either recompile with something like webpack to rewrite the module resolution, or add .js to all your TS imports, which already looks weird (you'd think you're importing the .ts files). sip.js has that issue.
Announcing TypeScript 4.9 Beta
2 projects | reddit.com/r/typescript | 24 Sep 2022
Peço ajuda numa oportunidade do trabalho
3 projects | reddit.com/r/brdev | 23 Sep 2022
11 projects | news.ycombinator.com | 23 Sep 2022
You can't actually narrow `unknown` down to a structure yet, as you have no way to test whether `property in unknown` or not.
Well, until this is released! https://github.com/microsoft/TypeScript/pull/50666
How To Choose The Right Framework For Your Next Node.js App.
8 projects | dev.to | 23 Sep 2022
TypeScript ready: we work hard to maintain a TypeScript type declaration file so we can support the growing TypeScript community.
Learn how to unleash the full potential of the type system of TypeScript
11 projects | news.ycombinator.com | 20 Sep 2022
Write typesafe APIs with zodios
2 projects | dev.to | 17 Sep 2022
Decorator creating with API
2 projects | reddit.com/r/typescript | 17 Sep 2022
What is SSR and when should you use it.
3 projects | dev.to | 30 Sep 2022
Improve UX. With SSR you get a faster time-to-content, now that we don’t need to wait till we download all of the JS files and then execute them a user with slower internet speed will get to see the webpage content much quicker. Another benefit is that the data on the initial load is loaded on the server as well which is likely a faster connection to the database than most client connections. These benefits tend to result in better Web Vitals as well which brings me to the next bug benefit of SSR.
Making a fast website is SUPER EASY 😏
2 projects | dev.to | 19 Sep 2022
Also in terms of search engine optimization, core web vitals became an official Google ranking factor in 2021.
"Most accurate" speed testing tool?
2 projects | reddit.com/r/TechSEO | 8 Sep 2022
The most accurate way would be to implement web-vitals on your site to capture real user data, which would then be available in GA - see the GitHub for more details here: https://github.com/GoogleChrome/web-vitals
We measured the SSR performance of 6 JS frameworks - here's what we found
3 projects | dev.to | 4 Sep 2022
All metrics (except TTFB) are based on Google's initiative: Web vitals. Google made these metrics to provide unified guidance for quality signals.
Performance Metrics - WebPerf#0
2 projects | dev.to | 18 Aug 2022
Build an uNFT marketplace with Next.js, Cosmic and Stripe integration
6 projects | dev.to | 12 Jul 2022
Bonus features include deploying to Vercel, dark and light mode and using Lighthouse to measure the performance of the website’s core web vitals metrics, which dramatically increases the user's experience and website visibility in SEO search results (this app's Lighthouse score displayed below).
Code Splitting with React Router v6, React Lazy and Suspense (in simple terms)
5 projects | dev.to | 2 Jul 2022
When building an application it is important to keep the bundle size as small as possible. This is because a large file can take pretty long for the browser to paint or load, especially in areas with poor internet connectivity, negatively affecting your web vitals and user experience. For small applications, this is not an issue. But as the size of your application grows and the number of libraries and frameworks used increases, there is a need to split the bundle on the client side. This is called client side Code Splitting.
Don’t just learn another frontend framework... focus on this instead
3 projects | reddit.com/r/Frontend | 28 Jun 2022
It could be the difference between a purchase flow drop off or sale. Want to keep learning ? 👉 https://web.dev/vitals
Show HN: A Swiss army knife for testing HTTP from the terminal
5 projects | news.ycombinator.com | 10 May 2022
Understanding SEO and Web Vitals for your NextJS site and how to improve them?
13 projects | dev.to | 1 May 2022
💡 I have just summarised the core web vitals based on content found at https://web.dev/vitals/. My primary goal is to highlight how I improved my core web vitals and this is a prerequisite to that. If you want to learn more about web vitals in details, there is comprehensive content found at https://web.dev which i would strongly recommend. You can also refer NextJS learn.
What are some alternatives?
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
zod - TypeScript-first schema validation with static type inference
zx - A tool for writing better scripts
rescript-compiler - The compiler for ReScript.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Yup - Dead simple Object schema validation
fp-ts - Functional programming in TypeScript
linaria - Zero-runtime CSS in JS library
gray-matter - Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time