pythagora
tsx
pythagora | tsx | |
---|---|---|
37 | 24 | |
1,524 | 8,096 | |
1.2% | 4.9% | |
6.4 | 9.4 | |
6 days ago | 4 days ago | |
JavaScript | TypeScript | |
Apache License 2.0 | MIT License |
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.
pythagora
-
AI Chat Applications with the Metacognition Approach: Tree of Thoughts (ToT)
Product which you can try - https://github.com/Pythagora-io/pythagora, check also video - Open-Source AI Agent Can Build FULL STACK Apps (FREE “Devin” Alternative) (youtube.com)
-
How to kickstart automated test suite when there are 0 tests written and the codebase is already huge
P.S. If you found this post helpful, it would mean a lot to me if you starred the Pythagora Github repo and if you try Pythagora out, please let us know how it went on [email protected].
- Show HN: CLI tool that writes unit tests for Node.js apps with GPT-4
-
I created a CLI tool that writes unit tests with GPT-4 (with one command, I created tests for Lodash repo with 90% code coverage and found 13 bugs)
Thanks, yes, it can, we actually started off with integration tests. Take a look at the integration tests README. They work by recording server activity (db queries, 3rd party API requests, etc.) during the processing of an API request.
- Pythagora creates automated tests for you by analysing server activity
-
I created a dev tool that uses GPT-4 to generate integration tests in Jest by tracking server activity
Recently, I open sourced Pythagora - a dev tool that tracks the server activity and creates integration tests from it. However, many people said that they wanted to analyze better what is inside the tests and to use tests as code documentation. So, I used GPT-4 to export Pythagora tests (which are basically JSON files that contain all captured data) to Jest code which can be reviewed and used for documentation.
-
45 ways to break an API server (negative tests with examples)
I'm working on Pythagora, an open source tool that writes automated integration tests by itself (well, with a bit of help from GPT-4) without you, the dev, having to write a single line of code. Basically, you can get from 0 to 80% code code coverage within 30 minutes (video).
-
What project are you currently working on?
Hey! I'm working on Pythagora (https://github.com/Pythagora-io/pythagora) - it's an open source tool that creates automated integration tests by analyzing server activity without you having to write a single line of code.
-
How Pythagora Reduces Debugging Time and Supercharges Your Development Workflow
Pythagora is an NPM package designed to create automated tests for your Node.js applications by analyzing server activity. It records all requests to your app's endpoints, along with responses and server actions, such as Mongo and Redis queries. Pythagora during testing simulates the server conditions from the time when the request was captured, allowing for consistent and accurate testing across different environments.
-
Creating integration tests for a backend legacy codebase
Finally, if you read this far and would like to support us, please consider starring the Pythagora Github repository here – it would mean the world to us.
tsx
-
Finally, a guide for Node.js and TypeScript and ESM that works
I really enjoy frontend/node/typescript development. I roll my eyes whenever the HN-types complain about CSS or frontend development being a hellhole. Mostly the comments I see seem ignorant or impatient ("Why doesn't this thing work without be bothering to learn it?")
However, the intersection of typescript, nodejs, and ES modules is consistently the most frustrating experience I ever have. Trying to figure out which magic incantation of tsconfig/esbuild/tsc/node options will let me just write code and run it is a fools errand. You might figure something out, and then you try to use Jest and then you descend into madness again.
The biggest tip I can give people is to ditch ts-node and just use (the awkwardly named) tsx https://github.com/privatenumber/tsx, which pretty much just "mostly works" for running Typescript during dev for node.
The problem mostly seems to stem for all the stakeholders being pretty dogmatic to whatever their goals are, rather than the pragmatic option of just meeting people where they are. I really wish the Node, Typescript, Deno/Bun, and maybe some bundler people would come together and figure out how to make this easier for people.
-
ERDIA: TypeORM entity specification documentation tool
If your TypeORM entity is written in TypeScript, you have to run ERDIA using ts-node or tsx as follows.
-
xtsz - a TS / JS file runner with support for HTTP/S imports
Want to import a package / file conveniently from esm.sh or unpkg or directly from a GitHub repo for a one-off script (for example). To do this I created a custom ESBuild plugin to handle HTTP imports - that worked for ,js files. To support running both ESM and CJS, I use tsx.
-
What is your must have npm package on any given project?
I prefer tsx honestly. Nodemon will detect that your using TypeScript and switch from node to ts-node but tsx is a no config necessary version of ts-node that also runs faster. Of course you can configure ts-node to use swc to be faster but then you're playing with config files to get things working.
-
Question about debugging TypeScript
I highly recommend you give this a shot over ts-node
-
Jsx as a general templating language?
Dude I just worked on a PoC a few hours ago. What I did was use ReactDOM's renderToStaticMarkup and tsx to execute the script so I get jsx transpilation on the fly.
-
Thoughts about Deno?
I’ve been trying to adopt Deno into new projects, but I find Node through tsx good enough.
-
Will nodeJs ever have out of the box typescript support?
try tsx. it has support for watch mode and works great with esm module projects.
-
Why is this so hard to do? Help
This is the answer: https://github.com/esbuild-kit/tsx
-
<3 Deno
Have a look at https://github.com/esbuild-kit/tsx
_tsx is a CLI command (alternative to node) for seamlessly running TypeScript & ESM, in both commonjs & module package types.
It's powered by esbuild so it's insanely fast._
What are some alternatives?
mern-ecommerce - :balloon: Fullstack MERN Ecommerce Application
esbuild-runner - ⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild
fastkafka - FastKafka is a powerful and easy-to-use Python library for building asynchronous web services that interact with Kafka topics. Built on top of Pydantic, AIOKafka and AsyncAPI, FastKafka simplifies the process of writing producers and consumers for Kafka topics.
ts-node - TypeScript execution and REPL for node.js
change-case - Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
ts-runtime-comparison - Comparison of Node.js TypeScript runtimes
js-proper-url-join - Like path.join but for a URL
esno - Alias to `tsx`
api
esbuild-node-tsc - Build your Typescript Node.js projects using blazing fast esbuild
pythagora-demo-lodash - A modern JavaScript utility library delivering modularity, performance, & extras.
vite - Next generation frontend tooling. It's fast!